From 7fc7d60f57dda6c1c29f295cf7c9895b349b78fc Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Tue, 19 Oct 2021 15:44:27 +0000 Subject: [PATCH 01/23] chore: release 0.6.3-SNAPSHOT (#303) :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-admin-bom/pom.xml | 8 ++++---- google-analytics-admin/pom.xml | 4 ++-- grpc-google-analytics-admin-v1alpha/pom.xml | 4 ++-- pom.xml | 8 ++++---- proto-google-analytics-admin-v1alpha/pom.xml | 4 ++-- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- versions.txt | 6 +++--- 8 files changed, 19 insertions(+), 19 deletions(-) diff --git a/google-analytics-admin-bom/pom.xml b/google-analytics-admin-bom/pom.xml index 887b0c5e..b8ec4035 100644 --- a/google-analytics-admin-bom/pom.xml +++ b/google-analytics-admin-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-admin-bom - 0.6.2 + 0.6.3-SNAPSHOT pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-admin - 0.6.2 + 0.6.3-SNAPSHOT com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.6.2 + 0.6.3-SNAPSHOT com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.6.2 + 0.6.3-SNAPSHOT diff --git a/google-analytics-admin/pom.xml b/google-analytics-admin/pom.xml index cac3968f..6f0ed58d 100644 --- a/google-analytics-admin/pom.xml +++ b/google-analytics-admin/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-admin - 0.6.2 + 0.6.3-SNAPSHOT jar Google Analytics Admin https://github.com/googleapis/java-analytics-admin @@ -11,7 +11,7 @@ com.google.analytics google-analytics-admin-parent - 0.6.2 + 0.6.3-SNAPSHOT google-analytics-admin diff --git a/grpc-google-analytics-admin-v1alpha/pom.xml b/grpc-google-analytics-admin-v1alpha/pom.xml index b72cf583..d225e387 100644 --- a/grpc-google-analytics-admin-v1alpha/pom.xml +++ b/grpc-google-analytics-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.6.2 + 0.6.3-SNAPSHOT grpc-google-analytics-admin-v1alpha GRPC library for grpc-google-analytics-admin-v1alpha com.google.analytics google-analytics-admin-parent - 0.6.2 + 0.6.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index 35644ccd..1eb1e1ae 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-admin-parent pom - 0.6.2 + 0.6.3-SNAPSHOT Google Analytics Admin Parent https://github.com/googleapis/java-analytics-admin @@ -61,17 +61,17 @@ com.google.analytics google-analytics-admin - 0.6.2 + 0.6.3-SNAPSHOT com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.6.2 + 0.6.3-SNAPSHOT com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.6.2 + 0.6.3-SNAPSHOT diff --git a/proto-google-analytics-admin-v1alpha/pom.xml b/proto-google-analytics-admin-v1alpha/pom.xml index fe63c95e..3af8e655 100644 --- a/proto-google-analytics-admin-v1alpha/pom.xml +++ b/proto-google-analytics-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.6.2 + 0.6.3-SNAPSHOT proto-google-analytics-admin-v1alpha PROTO library for proto-google-analytics-admin-v1alpha com.google.analytics google-analytics-admin-parent - 0.6.2 + 0.6.3-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 0e69b0cd..17c1fa29 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-admin - 0.6.2 + 0.6.3-SNAPSHOT diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index b7265cc1..20d4ffe5 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -27,7 +27,7 @@ com.google.analytics google-analytics-admin - 0.6.2 + 0.6.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index 8f66b95a..049dcd78 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-admin:0.6.2:0.6.2 -grpc-google-analytics-admin-v1alpha:0.6.2:0.6.2 -proto-google-analytics-admin-v1alpha:0.6.2:0.6.2 +google-analytics-admin:0.6.2:0.6.3-SNAPSHOT +grpc-google-analytics-admin-v1alpha:0.6.2:0.6.3-SNAPSHOT +proto-google-analytics-admin-v1alpha:0.6.2:0.6.3-SNAPSHOT From 4cfbf3b3e0bc93292fdf6e80aa662356399db047 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:30 +0000 Subject: [PATCH 02/23] fix(java): java 17 dependency arguments (#1266) (#307) --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/dependencies.sh | 10 ++++------ README.md | 6 +++--- 3 files changed, 8 insertions(+), 10 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) diff --git a/README.md b/README.md index f58d0211..1c1b8c37 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-admin - 0.6.1 + 0.6.2 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -implementation 'com.google.analytics:google-analytics-admin:0.6.1' +implementation 'com.google.analytics:google-analytics-admin:0.6.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.6.1" +libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.6.2" ``` ## Authentication From 3d3726db76a6763b3c7a2dd7132b0fefbfe7c6ac 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 13:39:28 -0400 Subject: [PATCH 03/23] feat: add `GetDataRetentionSettings`, `UpdateDataRetentionSettings` methods to the API (#269) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: add `GetDataRetentionSettings`, `UpdateDataRetentionSettings` methods to the API feat: add `GetDisplayVideo360AdvertiserLink`, `ListDisplayVideo360AdvertiserLinks`, `CreateDisplayVideo360AdvertiserLink`, `DeleteDisplayVideo360AdvertiserLink` methods to the API feat: add `GetDisplayVideo360AdvertiserLinkProposal`, `ListDisplayVideo360AdvertiserLinkProposals`,`DeleteDisplayVideo360AdvertiserLinkProposal`, `CancelDisplayVideo360AdvertiserLinkProposal` methods to the API feat: add `LinkProposalStatusDetails`, `DisplayVideo360AdvertiserLinkProposal`, `DisplayVideo360AdvertiserLink` `LinkProposalState`, `LinkProposalInitiatingProduct`, `ServiceLevel`, `DataRetentionSettings` types to the API feat: add `service_level` field to `Property` type feat: add `display_video_360_advertiser_link`, `display_video_360_advertiser_link_proposal`, `data_retention_settings` fields to `ChangeHistoryChange.resource` oneof field. feat: add `custom` output only field to `ConversionEvent` type feat: change `measurement_unit` field to mutable in `CustomMetric` type fix!: remove `UpdateFirebaseLink` method from the API fix!: rename `is_deletable` field of `ConversionEvent` type to `deletable` fix!: rename `email_address` field of `GoogleAdsLink` type to `creator_email_address` fix!: remove `maximum_user_access` field from `FirebaseLink` type fix!: remove `MaximumUserAccess` enum from the API PiperOrigin-RevId: 392540180 Source-Link: https://github.com/googleapis/googleapis/commit/9e617db5033d24bb8a47d6ac0d48de33b6f9ab16 Source-Link: https://github.com/googleapis/googleapis-gen/commit/61da03bd21c6e7ccff75acbcb293ddb601b42818 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNjFkYTAzYmQyMWM2ZTdjY2ZmNzVhY2JjYjI5M2RkYjYwMWI0MjgxOCJ9 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * chore: squash owlbot commits Co-authored-by: Owl Bot Co-authored-by: Neenu1995 Co-authored-by: Chanseok Oh --- .../clirr-ignored-differences.xml | 19 + .../v1alpha/AnalyticsAdminServiceClient.java | 2117 +++++++++++-- .../AnalyticsAdminServiceSettings.java | 255 +- .../admin/v1alpha/gapic_metadata.json | 42 +- .../stub/AnalyticsAdminServiceStub.java | 127 +- .../AnalyticsAdminServiceStubSettings.java | 698 ++++- .../stub/GrpcAnalyticsAdminServiceStub.java | 660 +++- .../AnalyticsAdminServiceClientTest.java | 1452 +++++++-- .../MockAnalyticsAdminServiceImpl.java | 306 +- .../clirr-ignored-differences.xml | 14 + .../v1alpha/AnalyticsAdminServiceGrpc.java | 2671 ++++++++++++++--- .../clirr-ignored-differences.xml | 38 + .../admin/v1alpha/AnalyticsAdminProto.java | 1540 ++++++---- ...Video360AdvertiserLinkProposalRequest.java | 719 +++++ ...dvertiserLinkProposalRequestOrBuilder.java | 56 + ...ideo360AdvertiserLinkProposalResponse.java | 851 ++++++ ...vertiserLinkProposalResponseOrBuilder.java | 71 + ...Video360AdvertiserLinkProposalRequest.java | 716 +++++ ...dvertiserLinkProposalRequestOrBuilder.java | 56 + .../admin/v1alpha/ChangeHistoryChange.java | 1205 ++++++++ .../v1alpha/ChangeHistoryResourceType.java | 22 + .../admin/v1alpha/ConversionEvent.java | 170 +- .../v1alpha/ConversionEventOrBuilder.java | 24 +- ...Video360AdvertiserLinkProposalRequest.java | 1035 +++++++ ...dvertiserLinkProposalRequestOrBuilder.java | 97 + ...eDisplayVideo360AdvertiserLinkRequest.java | 998 ++++++ ...ideo360AdvertiserLinkRequestOrBuilder.java | 97 + .../analytics/admin/v1alpha/CustomMetric.java | 28 +- .../admin/v1alpha/CustomMetricOrBuilder.java | 8 +- .../admin/v1alpha/DataRetentionSettings.java | 1151 +++++++ .../v1alpha/DataRetentionSettingsName.java | 169 ++ .../DataRetentionSettingsOrBuilder.java | 96 + ...Video360AdvertiserLinkProposalRequest.java | 716 +++++ ...dvertiserLinkProposalRequestOrBuilder.java | 56 + ...eDisplayVideo360AdvertiserLinkRequest.java | 686 +++++ ...ideo360AdvertiserLinkRequestOrBuilder.java | 56 + .../DisplayVideo360AdvertiserLink.java | 1998 ++++++++++++ .../DisplayVideo360AdvertiserLinkName.java | 208 ++ ...isplayVideo360AdvertiserLinkOrBuilder.java | 245 ++ ...DisplayVideo360AdvertiserLinkProposal.java | 2536 ++++++++++++++++ ...layVideo360AdvertiserLinkProposalName.java | 219 ++ ...deo360AdvertiserLinkProposalOrBuilder.java | 320 ++ .../analytics/admin/v1alpha/FirebaseLink.java | 166 - .../admin/v1alpha/FirebaseLinkOrBuilder.java | 27 - .../GetDataRetentionSettingsRequest.java | 684 +++++ ...DataRetentionSettingsRequestOrBuilder.java | 60 + ...Video360AdvertiserLinkProposalRequest.java | 699 +++++ ...dvertiserLinkProposalRequestOrBuilder.java | 56 + ...tDisplayVideo360AdvertiserLinkRequest.java | 684 +++++ ...ideo360AdvertiserLinkRequestOrBuilder.java | 56 + .../admin/v1alpha/GoogleAdsLink.java | 372 +-- .../admin/v1alpha/GoogleAdsLinkOrBuilder.java | 54 +- .../admin/v1alpha/IndustryCategory.java | 2 +- ...ava => LinkProposalInitiatingProduct.java} | 124 +- .../admin/v1alpha/LinkProposalState.java | 282 ++ .../v1alpha/LinkProposalStatusDetails.java | 993 ++++++ .../LinkProposalStatusDetailsOrBuilder.java | 109 + ...ideo360AdvertiserLinkProposalsRequest.java | 1007 +++++++ ...vertiserLinkProposalsRequestOrBuilder.java | 104 + ...deo360AdvertiserLinkProposalsResponse.java | 1290 ++++++++ ...ertiserLinkProposalsResponseOrBuilder.java | 119 + ...DisplayVideo360AdvertiserLinksRequest.java | 983 ++++++ ...deo360AdvertiserLinksRequestOrBuilder.java | 102 + ...isplayVideo360AdvertiserLinksResponse.java | 1251 ++++++++ ...eo360AdvertiserLinksResponseOrBuilder.java | 118 + .../analytics/admin/v1alpha/Property.java | 166 + .../admin/v1alpha/PropertyOrBuilder.java | 29 + .../admin/v1alpha/ResourcesProto.java | 582 ++-- .../analytics/admin/v1alpha/ServiceLevel.java | 176 ++ ...> UpdateDataRetentionSettingsRequest.java} | 405 +-- ...ataRetentionSettingsRequestOrBuilder.java} | 30 +- ...eDisplayVideo360AdvertiserLinkRequest.java | 1112 +++++++ ...ideo360AdvertiserLinkRequestOrBuilder.java | 112 + .../admin/v1alpha/analytics_admin.proto | 352 ++- .../analytics/admin/v1alpha/resources.proto | 267 +- 75 files changed, 34465 insertions(+), 2656 deletions(-) create mode 100644 google-analytics-admin/clirr-ignored-differences.xml create mode 100644 grpc-google-analytics-admin-v1alpha/clirr-ignored-differences.xml create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponseOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsName.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkName.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalName.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequestOrBuilder.java rename proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/{MaximumUserAccess.java => LinkProposalInitiatingProduct.java} (50%) create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalState.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetails.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetailsOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponseOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponse.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponseOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ServiceLevel.java rename proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/{UpdateFirebaseLinkRequest.java => UpdateDataRetentionSettingsRequest.java} (62%) rename proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/{UpdateFirebaseLinkRequestOrBuilder.java => UpdateDataRetentionSettingsRequestOrBuilder.java} (68%) create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequestOrBuilder.java diff --git a/google-analytics-admin/clirr-ignored-differences.xml b/google-analytics-admin/clirr-ignored-differences.xml new file mode 100644 index 00000000..983d63da --- /dev/null +++ b/google-analytics-admin/clirr-ignored-differences.xml @@ -0,0 +1,19 @@ + + + + + 7002 + com/google/analytics/admin/v1alpha/AnalyticsAdminService* + * *FirebaseLink*(*) + + + 7002 + com/google/analytics/admin/v1alpha/stub/AnalyticsAdminService* + * *FirebaseLink*(*) + + + 7002 + com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub* + * *FirebaseLink*(*) + + \ No newline at end of file diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java index 2067e7a5..26934953 100644 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java @@ -3877,87 +3877,6 @@ public final UnaryCallable createFireba return stub.createFirebaseLinkCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a FirebaseLink on a property - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   FirebaseLink firebaseLink = FirebaseLink.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   FirebaseLink response =
-   *       analyticsAdminServiceClient.updateFirebaseLink(firebaseLink, updateMask);
-   * }
-   * }
- * - * @param firebaseLink Required. The Firebase link to update. - * @param updateMask Required. The list of fields to be updated. Field names must be in snake case - * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire - * entity, use one path with the string "*" to match all fields. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final FirebaseLink updateFirebaseLink(FirebaseLink firebaseLink, FieldMask updateMask) { - UpdateFirebaseLinkRequest request = - UpdateFirebaseLinkRequest.newBuilder() - .setFirebaseLink(firebaseLink) - .setUpdateMask(updateMask) - .build(); - return updateFirebaseLink(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a FirebaseLink on a property - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateFirebaseLinkRequest request =
-   *       UpdateFirebaseLinkRequest.newBuilder()
-   *           .setFirebaseLink(FirebaseLink.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   FirebaseLink response = analyticsAdminServiceClient.updateFirebaseLink(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 FirebaseLink updateFirebaseLink(UpdateFirebaseLinkRequest request) { - return updateFirebaseLinkCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates a FirebaseLink on a property - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateFirebaseLinkRequest request =
-   *       UpdateFirebaseLinkRequest.newBuilder()
-   *           .setFirebaseLink(FirebaseLink.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateFirebaseLinkCallable().futureCall(request);
-   *   // Do something.
-   *   FirebaseLink response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable updateFirebaseLinkCallable() { - return stub.updateFirebaseLinkCallable(); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a FirebaseLink on a property @@ -6236,201 +6155,122 @@ public final ListConversionEventsPagedResponse listConversionEvents( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates a CustomDimension. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   CustomDimension customDimension = CustomDimension.newBuilder().build();
-   *   CustomDimension response =
-   *       analyticsAdminServiceClient.createCustomDimension(parent, customDimension);
-   * }
-   * }
- * - * @param parent Required. Example format: properties/1234 - * @param customDimension Required. The CustomDimension to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final CustomDimension createCustomDimension( - PropertyName parent, CustomDimension customDimension) { - CreateCustomDimensionRequest request = - CreateCustomDimensionRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setCustomDimension(customDimension) - .build(); - return createCustomDimension(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a CustomDimension. + * Look up a single DisplayVideo360AdvertiserLink * *

Sample code: * *

{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = CustomDimensionName.of("[PROPERTY]").toString();
-   *   CustomDimension customDimension = CustomDimension.newBuilder().build();
-   *   CustomDimension response =
-   *       analyticsAdminServiceClient.createCustomDimension(parent, customDimension);
+   *   DisplayVideo360AdvertiserLinkName name =
+   *       DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]");
+   *   DisplayVideo360AdvertiserLink response =
+   *       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLink(name);
    * }
    * }
* - * @param parent Required. Example format: properties/1234 - * @param customDimension Required. The CustomDimension to create. + * @param name Required. The name of the DisplayVideo360AdvertiserLink to get. Example format: + * properties/1234/displayVideo360AdvertiserLink/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomDimension createCustomDimension( - String parent, CustomDimension customDimension) { - CreateCustomDimensionRequest request = - CreateCustomDimensionRequest.newBuilder() - .setParent(parent) - .setCustomDimension(customDimension) + public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink( + DisplayVideo360AdvertiserLinkName name) { + GetDisplayVideo360AdvertiserLinkRequest request = + GetDisplayVideo360AdvertiserLinkRequest.newBuilder() + .setName(name == null ? null : name.toString()) .build(); - return createCustomDimension(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a CustomDimension. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateCustomDimensionRequest request =
-   *       CreateCustomDimensionRequest.newBuilder()
-   *           .setParent(CustomDimensionName.of("[PROPERTY]").toString())
-   *           .setCustomDimension(CustomDimension.newBuilder().build())
-   *           .build();
-   *   CustomDimension response = analyticsAdminServiceClient.createCustomDimension(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 CustomDimension createCustomDimension(CreateCustomDimensionRequest request) { - return createCustomDimensionCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a CustomDimension. - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateCustomDimensionRequest request =
-   *       CreateCustomDimensionRequest.newBuilder()
-   *           .setParent(CustomDimensionName.of("[PROPERTY]").toString())
-   *           .setCustomDimension(CustomDimension.newBuilder().build())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createCustomDimensionCallable().futureCall(request);
-   *   // Do something.
-   *   CustomDimension response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - createCustomDimensionCallable() { - return stub.createCustomDimensionCallable(); + return getDisplayVideo360AdvertiserLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a CustomDimension on a property. + * Look up a single DisplayVideo360AdvertiserLink * *

Sample code: * *

{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   CustomDimension customDimension = CustomDimension.newBuilder().build();
-   *   FieldMask updateMask = FieldMask.newBuilder().build();
-   *   CustomDimension response =
-   *       analyticsAdminServiceClient.updateCustomDimension(customDimension, updateMask);
+   *   String name =
+   *       DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+   *           .toString();
+   *   DisplayVideo360AdvertiserLink response =
+   *       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLink(name);
    * }
    * }
* - * @param customDimension The CustomDimension to update - * @param updateMask Required. The list of fields to be updated. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to match all - * fields. + * @param name Required. The name of the DisplayVideo360AdvertiserLink to get. Example format: + * properties/1234/displayVideo360AdvertiserLink/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final CustomDimension updateCustomDimension( - CustomDimension customDimension, FieldMask updateMask) { - UpdateCustomDimensionRequest request = - UpdateCustomDimensionRequest.newBuilder() - .setCustomDimension(customDimension) - .setUpdateMask(updateMask) - .build(); - return updateCustomDimension(request); + public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink(String name) { + GetDisplayVideo360AdvertiserLinkRequest request = + GetDisplayVideo360AdvertiserLinkRequest.newBuilder().setName(name).build(); + return getDisplayVideo360AdvertiserLink(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a CustomDimension on a property. + * Look up a single DisplayVideo360AdvertiserLink * *

Sample code: * *

{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateCustomDimensionRequest request =
-   *       UpdateCustomDimensionRequest.newBuilder()
-   *           .setCustomDimension(CustomDimension.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *   GetDisplayVideo360AdvertiserLinkRequest request =
+   *       GetDisplayVideo360AdvertiserLinkRequest.newBuilder()
+   *           .setName(
+   *               DisplayVideo360AdvertiserLinkName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+   *                   .toString())
    *           .build();
-   *   CustomDimension response = analyticsAdminServiceClient.updateCustomDimension(request);
+   *   DisplayVideo360AdvertiserLink response =
+   *       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLink(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 CustomDimension updateCustomDimension(UpdateCustomDimensionRequest request) { - return updateCustomDimensionCallable().call(request); + public final DisplayVideo360AdvertiserLink getDisplayVideo360AdvertiserLink( + GetDisplayVideo360AdvertiserLinkRequest request) { + return getDisplayVideo360AdvertiserLinkCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Updates a CustomDimension on a property. + * Look up a single DisplayVideo360AdvertiserLink * *

Sample code: * *

{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   UpdateCustomDimensionRequest request =
-   *       UpdateCustomDimensionRequest.newBuilder()
-   *           .setCustomDimension(CustomDimension.newBuilder().build())
-   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *   GetDisplayVideo360AdvertiserLinkRequest request =
+   *       GetDisplayVideo360AdvertiserLinkRequest.newBuilder()
+   *           .setName(
+   *               DisplayVideo360AdvertiserLinkName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+   *                   .toString())
    *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.updateCustomDimensionCallable().futureCall(request);
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient
+   *           .getDisplayVideo360AdvertiserLinkCallable()
+   *           .futureCall(request);
    *   // Do something.
-   *   CustomDimension response = future.get();
+   *   DisplayVideo360AdvertiserLink response = future.get();
    * }
    * }
*/ - public final UnaryCallable - updateCustomDimensionCallable() { - return stub.updateCustomDimensionCallable(); + public final UnaryCallable + getDisplayVideo360AdvertiserLinkCallable() { + return stub.getDisplayVideo360AdvertiserLinkCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CustomDimensions on a property. + * Lists all DisplayVideo360AdvertiserLinks on a property. * *

Sample code: * @@ -6438,8 +6278,8 @@ public final CustomDimension updateCustomDimension(UpdateCustomDimensionRequest * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { * PropertyName parent = PropertyName.of("[PROPERTY]"); - * for (CustomDimension element : - * analyticsAdminServiceClient.listCustomDimensions(parent).iterateAll()) { + * for (DisplayVideo360AdvertiserLink element : + * analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(parent).iterateAll()) { * // doThingsWith(element); * } * } @@ -6448,26 +6288,29 @@ public final CustomDimension updateCustomDimension(UpdateCustomDimensionRequest * @param parent Required. Example format: properties/1234 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final ListCustomDimensionsPagedResponse listCustomDimensions(PropertyName parent) { - ListCustomDimensionsRequest request = - ListCustomDimensionsRequest.newBuilder() + public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks( + PropertyName parent) { + ListDisplayVideo360AdvertiserLinksRequest request = + ListDisplayVideo360AdvertiserLinksRequest.newBuilder() .setParent(parent == null ? null : parent.toString()) .build(); - return listCustomDimensions(request); + return listDisplayVideo360AdvertiserLinks(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CustomDimensions on a property. + * Lists all DisplayVideo360AdvertiserLinks on a property. * *

Sample code: * *

{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = CustomDimensionName.of("[PROPERTY]").toString();
-   *   for (CustomDimension element :
-   *       analyticsAdminServiceClient.listCustomDimensions(parent).iterateAll()) {
+   *   String parent =
+   *       DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+   *           .toString();
+   *   for (DisplayVideo360AdvertiserLink element :
+   *       analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
    * }
@@ -6476,29 +6319,33 @@ public final ListCustomDimensionsPagedResponse listCustomDimensions(PropertyName
    * @param parent Required. Example format: properties/1234
    * @throws com.google.api.gax.rpc.ApiException if the remote call fails
    */
-  public final ListCustomDimensionsPagedResponse listCustomDimensions(String parent) {
-    ListCustomDimensionsRequest request =
-        ListCustomDimensionsRequest.newBuilder().setParent(parent).build();
-    return listCustomDimensions(request);
+  public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks(
+      String parent) {
+    ListDisplayVideo360AdvertiserLinksRequest request =
+        ListDisplayVideo360AdvertiserLinksRequest.newBuilder().setParent(parent).build();
+    return listDisplayVideo360AdvertiserLinks(request);
   }
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD.
   /**
-   * Lists CustomDimensions on a property.
+   * Lists all DisplayVideo360AdvertiserLinks on a property.
    *
    * 

Sample code: * *

{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   ListCustomDimensionsRequest request =
-   *       ListCustomDimensionsRequest.newBuilder()
-   *           .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+   *   ListDisplayVideo360AdvertiserLinksRequest request =
+   *       ListDisplayVideo360AdvertiserLinksRequest.newBuilder()
+   *           .setParent(
+   *               DisplayVideo360AdvertiserLinkName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+   *                   .toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
-   *   for (CustomDimension element :
-   *       analyticsAdminServiceClient.listCustomDimensions(request).iterateAll()) {
+   *   for (DisplayVideo360AdvertiserLink element :
+   *       analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(request).iterateAll()) {
    *     // doThingsWith(element);
    *   }
    * }
@@ -6507,59 +6354,69 @@ public final ListCustomDimensionsPagedResponse listCustomDimensions(String paren
    * @param request 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 ListCustomDimensionsPagedResponse listCustomDimensions(
-      ListCustomDimensionsRequest request) {
-    return listCustomDimensionsPagedCallable().call(request);
+  public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360AdvertiserLinks(
+      ListDisplayVideo360AdvertiserLinksRequest request) {
+    return listDisplayVideo360AdvertiserLinksPagedCallable().call(request);
   }
 
   // AUTO-GENERATED DOCUMENTATION AND METHOD.
   /**
-   * Lists CustomDimensions on a property.
+   * Lists all DisplayVideo360AdvertiserLinks on a property.
    *
    * 

Sample code: * *

{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   ListCustomDimensionsRequest request =
-   *       ListCustomDimensionsRequest.newBuilder()
-   *           .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+   *   ListDisplayVideo360AdvertiserLinksRequest request =
+   *       ListDisplayVideo360AdvertiserLinksRequest.newBuilder()
+   *           .setParent(
+   *               DisplayVideo360AdvertiserLinkName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+   *                   .toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.listCustomDimensionsPagedCallable().futureCall(request);
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient
+   *           .listDisplayVideo360AdvertiserLinksPagedCallable()
+   *           .futureCall(request);
    *   // Do something.
-   *   for (CustomDimension element : future.get().iterateAll()) {
+   *   for (DisplayVideo360AdvertiserLink element : future.get().iterateAll()) {
    *     // doThingsWith(element);
    *   }
    * }
    * }
*/ - public final UnaryCallable - listCustomDimensionsPagedCallable() { - return stub.listCustomDimensionsPagedCallable(); + public final UnaryCallable< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksPagedResponse> + listDisplayVideo360AdvertiserLinksPagedCallable() { + return stub.listDisplayVideo360AdvertiserLinksPagedCallable(); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Lists CustomDimensions on a property. + * Lists all DisplayVideo360AdvertiserLinks on a property. * *

Sample code: * *

{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   ListCustomDimensionsRequest request =
-   *       ListCustomDimensionsRequest.newBuilder()
-   *           .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+   *   ListDisplayVideo360AdvertiserLinksRequest request =
+   *       ListDisplayVideo360AdvertiserLinksRequest.newBuilder()
+   *           .setParent(
+   *               DisplayVideo360AdvertiserLinkName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+   *                   .toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
    *   while (true) {
-   *     ListCustomDimensionsResponse response =
-   *         analyticsAdminServiceClient.listCustomDimensionsCallable().call(request);
-   *     for (CustomDimension element : response.getResponsesList()) {
+   *     ListDisplayVideo360AdvertiserLinksResponse response =
+   *         analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinksCallable().call(request);
+   *     for (DisplayVideo360AdvertiserLink element : response.getResponsesList()) {
    *       // doThingsWith(element);
    *     }
    *     String nextPageToken = response.getNextPageToken();
@@ -6572,7 +6429,1369 @@ public final ListCustomDimensionsPagedResponse listCustomDimensions(
    * }
    * }
*/ - public final UnaryCallable + public final UnaryCallable< + ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse> + listDisplayVideo360AdvertiserLinksCallable() { + return stub.listDisplayVideo360AdvertiserLinksCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper + * authorization both on the Google Analytics property and on the Display & Video 360 + * advertiser. Users who do not have access to the Display & Video 360 advertiser should + * instead seek to create a DisplayVideo360LinkProposal. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink =
+   *       DisplayVideo360AdvertiserLink.newBuilder().build();
+   *   DisplayVideo360AdvertiserLink response =
+   *       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLink(
+   *           parent, displayVideo360AdvertiserLink);
+   * }
+   * }
+ * + * @param parent Required. Example format: properties/1234 + * @param displayVideo360AdvertiserLink Required. The DisplayVideo360AdvertiserLink to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink( + PropertyName parent, DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink) { + CreateDisplayVideo360AdvertiserLinkRequest request = + CreateDisplayVideo360AdvertiserLinkRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink) + .build(); + return createDisplayVideo360AdvertiserLink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper + * authorization both on the Google Analytics property and on the Display & Video 360 + * advertiser. Users who do not have access to the Display & Video 360 advertiser should + * instead seek to create a DisplayVideo360LinkProposal. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String parent =
+   *       DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+   *           .toString();
+   *   DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink =
+   *       DisplayVideo360AdvertiserLink.newBuilder().build();
+   *   DisplayVideo360AdvertiserLink response =
+   *       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLink(
+   *           parent, displayVideo360AdvertiserLink);
+   * }
+   * }
+ * + * @param parent Required. Example format: properties/1234 + * @param displayVideo360AdvertiserLink Required. The DisplayVideo360AdvertiserLink to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink( + String parent, DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink) { + CreateDisplayVideo360AdvertiserLinkRequest request = + CreateDisplayVideo360AdvertiserLinkRequest.newBuilder() + .setParent(parent) + .setDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink) + .build(); + return createDisplayVideo360AdvertiserLink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper + * authorization both on the Google Analytics property and on the Display & Video 360 + * advertiser. Users who do not have access to the Display & Video 360 advertiser should + * instead seek to create a DisplayVideo360LinkProposal. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CreateDisplayVideo360AdvertiserLinkRequest request =
+   *       CreateDisplayVideo360AdvertiserLinkRequest.newBuilder()
+   *           .setParent(
+   *               DisplayVideo360AdvertiserLinkName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+   *                   .toString())
+   *           .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
+   *           .build();
+   *   DisplayVideo360AdvertiserLink response =
+   *       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLink(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 DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink( + CreateDisplayVideo360AdvertiserLinkRequest request) { + return createDisplayVideo360AdvertiserLinkCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a DisplayVideo360AdvertiserLink. This can only be utilized by users who have proper + * authorization both on the Google Analytics property and on the Display & Video 360 + * advertiser. Users who do not have access to the Display & Video 360 advertiser should + * instead seek to create a DisplayVideo360LinkProposal. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CreateDisplayVideo360AdvertiserLinkRequest request =
+   *       CreateDisplayVideo360AdvertiserLinkRequest.newBuilder()
+   *           .setParent(
+   *               DisplayVideo360AdvertiserLinkName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+   *                   .toString())
+   *           .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient
+   *           .createDisplayVideo360AdvertiserLinkCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   DisplayVideo360AdvertiserLink response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + createDisplayVideo360AdvertiserLinkCallable() { + return stub.createDisplayVideo360AdvertiserLinkCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a DisplayVideo360AdvertiserLink on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DisplayVideo360AdvertiserLinkName name =
+   *       DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]");
+   *   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLink(name);
+   * }
+   * }
+ * + * @param name Required. The name of the DisplayVideo360AdvertiserLink to delete. Example format: + * properties/1234/displayVideo360AdvertiserLinks/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLinkName name) { + DeleteDisplayVideo360AdvertiserLinkRequest request = + DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteDisplayVideo360AdvertiserLink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a DisplayVideo360AdvertiserLink on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String name =
+   *       DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+   *           .toString();
+   *   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLink(name);
+   * }
+   * }
+ * + * @param name Required. The name of the DisplayVideo360AdvertiserLink to delete. Example format: + * properties/1234/displayVideo360AdvertiserLinks/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDisplayVideo360AdvertiserLink(String name) { + DeleteDisplayVideo360AdvertiserLinkRequest request = + DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder().setName(name).build(); + deleteDisplayVideo360AdvertiserLink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a DisplayVideo360AdvertiserLink on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DeleteDisplayVideo360AdvertiserLinkRequest request =
+   *       DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder()
+   *           .setName(
+   *               DisplayVideo360AdvertiserLinkName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+   *                   .toString())
+   *           .build();
+   *   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLink(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDisplayVideo360AdvertiserLink( + DeleteDisplayVideo360AdvertiserLinkRequest request) { + deleteDisplayVideo360AdvertiserLinkCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a DisplayVideo360AdvertiserLink on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DeleteDisplayVideo360AdvertiserLinkRequest request =
+   *       DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder()
+   *           .setName(
+   *               DisplayVideo360AdvertiserLinkName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient
+   *           .deleteDisplayVideo360AdvertiserLinkCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteDisplayVideo360AdvertiserLinkCallable() { + return stub.deleteDisplayVideo360AdvertiserLinkCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a DisplayVideo360AdvertiserLink on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink =
+   *       DisplayVideo360AdvertiserLink.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   DisplayVideo360AdvertiserLink response =
+   *       analyticsAdminServiceClient.updateDisplayVideo360AdvertiserLink(
+   *           displayVideo360AdvertiserLink, updateMask);
+   * }
+   * }
+ * + * @param displayVideo360AdvertiserLink The DisplayVideo360AdvertiserLink to update + * @param updateMask Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to match all + * fields. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DisplayVideo360AdvertiserLink updateDisplayVideo360AdvertiserLink( + DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink, FieldMask updateMask) { + UpdateDisplayVideo360AdvertiserLinkRequest request = + UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder() + .setDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink) + .setUpdateMask(updateMask) + .build(); + return updateDisplayVideo360AdvertiserLink(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a DisplayVideo360AdvertiserLink on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   UpdateDisplayVideo360AdvertiserLinkRequest request =
+   *       UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder()
+   *           .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   DisplayVideo360AdvertiserLink response =
+   *       analyticsAdminServiceClient.updateDisplayVideo360AdvertiserLink(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 DisplayVideo360AdvertiserLink updateDisplayVideo360AdvertiserLink( + UpdateDisplayVideo360AdvertiserLinkRequest request) { + return updateDisplayVideo360AdvertiserLinkCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a DisplayVideo360AdvertiserLink on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   UpdateDisplayVideo360AdvertiserLinkRequest request =
+   *       UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder()
+   *           .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient
+   *           .updateDisplayVideo360AdvertiserLinkCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   DisplayVideo360AdvertiserLink response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + updateDisplayVideo360AdvertiserLinkCallable() { + return stub.updateDisplayVideo360AdvertiserLinkCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single DisplayVideo360AdvertiserLinkProposal. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DisplayVideo360AdvertiserLinkProposalName name =
+   *       DisplayVideo360AdvertiserLinkProposalName.of(
+   *           "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]");
+   *   DisplayVideo360AdvertiserLinkProposal response =
+   *       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(name);
+   * }
+   * }
+ * + * @param name Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. Example + * format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal( + DisplayVideo360AdvertiserLinkProposalName name) { + GetDisplayVideo360AdvertiserLinkProposalRequest request = + GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getDisplayVideo360AdvertiserLinkProposal(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single DisplayVideo360AdvertiserLinkProposal. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String name =
+   *       DisplayVideo360AdvertiserLinkProposalName.of(
+   *               "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+   *           .toString();
+   *   DisplayVideo360AdvertiserLinkProposal response =
+   *       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(name);
+   * }
+   * }
+ * + * @param name Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. Example + * format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal( + String name) { + GetDisplayVideo360AdvertiserLinkProposalRequest request = + GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder().setName(name).build(); + return getDisplayVideo360AdvertiserLinkProposal(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single DisplayVideo360AdvertiserLinkProposal. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetDisplayVideo360AdvertiserLinkProposalRequest request =
+   *       GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+   *           .setName(
+   *               DisplayVideo360AdvertiserLinkProposalName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+   *                   .toString())
+   *           .build();
+   *   DisplayVideo360AdvertiserLinkProposal response =
+   *       analyticsAdminServiceClient.getDisplayVideo360AdvertiserLinkProposal(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 DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserLinkProposal( + GetDisplayVideo360AdvertiserLinkProposalRequest request) { + return getDisplayVideo360AdvertiserLinkProposalCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single DisplayVideo360AdvertiserLinkProposal. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetDisplayVideo360AdvertiserLinkProposalRequest request =
+   *       GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+   *           .setName(
+   *               DisplayVideo360AdvertiserLinkProposalName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient
+   *           .getDisplayVideo360AdvertiserLinkProposalCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   DisplayVideo360AdvertiserLinkProposal response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + getDisplayVideo360AdvertiserLinkProposalCallable() { + return stub.getDisplayVideo360AdvertiserLinkProposalCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DisplayVideo360AdvertiserLinkProposals on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   for (DisplayVideo360AdvertiserLinkProposal element :
+   *       analyticsAdminServiceClient
+   *           .listDisplayVideo360AdvertiserLinkProposals(parent)
+   *           .iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Example format: properties/1234 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDisplayVideo360AdvertiserLinkProposalsPagedResponse + listDisplayVideo360AdvertiserLinkProposals(PropertyName parent) { + ListDisplayVideo360AdvertiserLinkProposalsRequest request = + ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listDisplayVideo360AdvertiserLinkProposals(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DisplayVideo360AdvertiserLinkProposals on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String parent =
+   *       DisplayVideo360AdvertiserLinkProposalName.of(
+   *               "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+   *           .toString();
+   *   for (DisplayVideo360AdvertiserLinkProposal element :
+   *       analyticsAdminServiceClient
+   *           .listDisplayVideo360AdvertiserLinkProposals(parent)
+   *           .iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Example format: properties/1234 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDisplayVideo360AdvertiserLinkProposalsPagedResponse + listDisplayVideo360AdvertiserLinkProposals(String parent) { + ListDisplayVideo360AdvertiserLinkProposalsRequest request = + ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder().setParent(parent).build(); + return listDisplayVideo360AdvertiserLinkProposals(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DisplayVideo360AdvertiserLinkProposals on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListDisplayVideo360AdvertiserLinkProposalsRequest request =
+   *       ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder()
+   *           .setParent(
+   *               DisplayVideo360AdvertiserLinkProposalName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (DisplayVideo360AdvertiserLinkProposal element :
+   *       analyticsAdminServiceClient
+   *           .listDisplayVideo360AdvertiserLinkProposals(request)
+   *           .iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListDisplayVideo360AdvertiserLinkProposalsPagedResponse + listDisplayVideo360AdvertiserLinkProposals( + ListDisplayVideo360AdvertiserLinkProposalsRequest request) { + return listDisplayVideo360AdvertiserLinkProposalsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DisplayVideo360AdvertiserLinkProposals on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListDisplayVideo360AdvertiserLinkProposalsRequest request =
+   *       ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder()
+   *           .setParent(
+   *               DisplayVideo360AdvertiserLinkProposalName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient
+   *           .listDisplayVideo360AdvertiserLinkProposalsPagedCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   for (DisplayVideo360AdvertiserLinkProposal element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> + listDisplayVideo360AdvertiserLinkProposalsPagedCallable() { + return stub.listDisplayVideo360AdvertiserLinkProposalsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists DisplayVideo360AdvertiserLinkProposals on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListDisplayVideo360AdvertiserLinkProposalsRequest request =
+   *       ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder()
+   *           .setParent(
+   *               DisplayVideo360AdvertiserLinkProposalName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListDisplayVideo360AdvertiserLinkProposalsResponse response =
+   *         analyticsAdminServiceClient
+   *             .listDisplayVideo360AdvertiserLinkProposalsCallable()
+   *             .call(request);
+   *     for (DisplayVideo360AdvertiserLinkProposal element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse> + listDisplayVideo360AdvertiserLinkProposalsCallable() { + return stub.listDisplayVideo360AdvertiserLinkProposalsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a DisplayVideo360AdvertiserLinkProposal. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal =
+   *       DisplayVideo360AdvertiserLinkProposal.newBuilder().build();
+   *   DisplayVideo360AdvertiserLinkProposal response =
+   *       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal(
+   *           parent, displayVideo360AdvertiserLinkProposal);
+   * }
+   * }
+ * + * @param parent Required. Example format: properties/1234 + * @param displayVideo360AdvertiserLinkProposal Required. The + * DisplayVideo360AdvertiserLinkProposal to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal( + PropertyName parent, + DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal) { + CreateDisplayVideo360AdvertiserLinkProposalRequest request = + CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setDisplayVideo360AdvertiserLinkProposal(displayVideo360AdvertiserLinkProposal) + .build(); + return createDisplayVideo360AdvertiserLinkProposal(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a DisplayVideo360AdvertiserLinkProposal. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String parent =
+   *       DisplayVideo360AdvertiserLinkProposalName.of(
+   *               "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+   *           .toString();
+   *   DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal =
+   *       DisplayVideo360AdvertiserLinkProposal.newBuilder().build();
+   *   DisplayVideo360AdvertiserLinkProposal response =
+   *       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal(
+   *           parent, displayVideo360AdvertiserLinkProposal);
+   * }
+   * }
+ * + * @param parent Required. Example format: properties/1234 + * @param displayVideo360AdvertiserLinkProposal Required. The + * DisplayVideo360AdvertiserLinkProposal to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal( + String parent, DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal) { + CreateDisplayVideo360AdvertiserLinkProposalRequest request = + CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + .setParent(parent) + .setDisplayVideo360AdvertiserLinkProposal(displayVideo360AdvertiserLinkProposal) + .build(); + return createDisplayVideo360AdvertiserLinkProposal(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a DisplayVideo360AdvertiserLinkProposal. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CreateDisplayVideo360AdvertiserLinkProposalRequest request =
+   *       CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+   *           .setParent(
+   *               DisplayVideo360AdvertiserLinkProposalName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+   *                   .toString())
+   *           .setDisplayVideo360AdvertiserLinkProposal(
+   *               DisplayVideo360AdvertiserLinkProposal.newBuilder().build())
+   *           .build();
+   *   DisplayVideo360AdvertiserLinkProposal response =
+   *       analyticsAdminServiceClient.createDisplayVideo360AdvertiserLinkProposal(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 DisplayVideo360AdvertiserLinkProposal createDisplayVideo360AdvertiserLinkProposal( + CreateDisplayVideo360AdvertiserLinkProposalRequest request) { + return createDisplayVideo360AdvertiserLinkProposalCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a DisplayVideo360AdvertiserLinkProposal. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CreateDisplayVideo360AdvertiserLinkProposalRequest request =
+   *       CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+   *           .setParent(
+   *               DisplayVideo360AdvertiserLinkProposalName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+   *                   .toString())
+   *           .setDisplayVideo360AdvertiserLinkProposal(
+   *               DisplayVideo360AdvertiserLinkProposal.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient
+   *           .createDisplayVideo360AdvertiserLinkProposalCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   DisplayVideo360AdvertiserLinkProposal response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + createDisplayVideo360AdvertiserLinkProposalCallable() { + return stub.createDisplayVideo360AdvertiserLinkProposalCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on + * cancelled proposals. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DisplayVideo360AdvertiserLinkProposalName name =
+   *       DisplayVideo360AdvertiserLinkProposalName.of(
+   *           "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]");
+   *   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLinkProposal(name);
+   * }
+   * }
+ * + * @param name Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. Example + * format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDisplayVideo360AdvertiserLinkProposal( + DisplayVideo360AdvertiserLinkProposalName name) { + DeleteDisplayVideo360AdvertiserLinkProposalRequest request = + DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteDisplayVideo360AdvertiserLinkProposal(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on + * cancelled proposals. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String name =
+   *       DisplayVideo360AdvertiserLinkProposalName.of(
+   *               "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+   *           .toString();
+   *   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLinkProposal(name);
+   * }
+   * }
+ * + * @param name Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. Example + * format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDisplayVideo360AdvertiserLinkProposal(String name) { + DeleteDisplayVideo360AdvertiserLinkProposalRequest request = + DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder().setName(name).build(); + deleteDisplayVideo360AdvertiserLinkProposal(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on + * cancelled proposals. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DeleteDisplayVideo360AdvertiserLinkProposalRequest request =
+   *       DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+   *           .setName(
+   *               DisplayVideo360AdvertiserLinkProposalName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+   *                   .toString())
+   *           .build();
+   *   analyticsAdminServiceClient.deleteDisplayVideo360AdvertiserLinkProposal(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteDisplayVideo360AdvertiserLinkProposal( + DeleteDisplayVideo360AdvertiserLinkProposalRequest request) { + deleteDisplayVideo360AdvertiserLinkProposalCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a DisplayVideo360AdvertiserLinkProposal on a property. This can only be used on + * cancelled proposals. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DeleteDisplayVideo360AdvertiserLinkProposalRequest request =
+   *       DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+   *           .setName(
+   *               DisplayVideo360AdvertiserLinkProposalName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient
+   *           .deleteDisplayVideo360AdvertiserLinkProposalCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteDisplayVideo360AdvertiserLinkProposalCallable() { + return stub.deleteDisplayVideo360AdvertiserLinkProposalCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Approves a DisplayVideo360AdvertiserLinkProposal. The DisplayVideo360AdvertiserLinkProposal + * will be deleted and a new DisplayVideo360AdvertiserLink will be created. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ApproveDisplayVideo360AdvertiserLinkProposalRequest request =
+   *       ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+   *           .setName(
+   *               DisplayVideo360AdvertiserLinkProposalName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+   *                   .toString())
+   *           .build();
+   *   ApproveDisplayVideo360AdvertiserLinkProposalResponse response =
+   *       analyticsAdminServiceClient.approveDisplayVideo360AdvertiserLinkProposal(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 ApproveDisplayVideo360AdvertiserLinkProposalResponse + approveDisplayVideo360AdvertiserLinkProposal( + ApproveDisplayVideo360AdvertiserLinkProposalRequest request) { + return approveDisplayVideo360AdvertiserLinkProposalCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Approves a DisplayVideo360AdvertiserLinkProposal. The DisplayVideo360AdvertiserLinkProposal + * will be deleted and a new DisplayVideo360AdvertiserLink will be created. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ApproveDisplayVideo360AdvertiserLinkProposalRequest request =
+   *       ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+   *           .setName(
+   *               DisplayVideo360AdvertiserLinkProposalName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient
+   *           .approveDisplayVideo360AdvertiserLinkProposalCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   ApproveDisplayVideo360AdvertiserLinkProposalResponse response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + ApproveDisplayVideo360AdvertiserLinkProposalRequest, + ApproveDisplayVideo360AdvertiserLinkProposalResponse> + approveDisplayVideo360AdvertiserLinkProposalCallable() { + return stub.approveDisplayVideo360AdvertiserLinkProposalCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels a DisplayVideo360AdvertiserLinkProposal. Cancelling can mean either: - Declining a + * proposal initiated from Display & Video 360 - Withdrawing a proposal initiated from Google + * Analytics After being cancelled, a proposal will eventually be deleted automatically. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CancelDisplayVideo360AdvertiserLinkProposalRequest request =
+   *       CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+   *           .setName(
+   *               DisplayVideo360AdvertiserLinkProposalName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+   *                   .toString())
+   *           .build();
+   *   DisplayVideo360AdvertiserLinkProposal response =
+   *       analyticsAdminServiceClient.cancelDisplayVideo360AdvertiserLinkProposal(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 DisplayVideo360AdvertiserLinkProposal cancelDisplayVideo360AdvertiserLinkProposal( + CancelDisplayVideo360AdvertiserLinkProposalRequest request) { + return cancelDisplayVideo360AdvertiserLinkProposalCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Cancels a DisplayVideo360AdvertiserLinkProposal. Cancelling can mean either: - Declining a + * proposal initiated from Display & Video 360 - Withdrawing a proposal initiated from Google + * Analytics After being cancelled, a proposal will eventually be deleted automatically. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CancelDisplayVideo360AdvertiserLinkProposalRequest request =
+   *       CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
+   *           .setName(
+   *               DisplayVideo360AdvertiserLinkProposalName.of(
+   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient
+   *           .cancelDisplayVideo360AdvertiserLinkProposalCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   DisplayVideo360AdvertiserLinkProposal response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable< + CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + cancelDisplayVideo360AdvertiserLinkProposalCallable() { + return stub.cancelDisplayVideo360AdvertiserLinkProposalCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a CustomDimension. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   CustomDimension customDimension = CustomDimension.newBuilder().build();
+   *   CustomDimension response =
+   *       analyticsAdminServiceClient.createCustomDimension(parent, customDimension);
+   * }
+   * }
+ * + * @param parent Required. Example format: properties/1234 + * @param customDimension Required. The CustomDimension to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CustomDimension createCustomDimension( + PropertyName parent, CustomDimension customDimension) { + CreateCustomDimensionRequest request = + CreateCustomDimensionRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCustomDimension(customDimension) + .build(); + return createCustomDimension(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a CustomDimension. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String parent = CustomDimensionName.of("[PROPERTY]").toString();
+   *   CustomDimension customDimension = CustomDimension.newBuilder().build();
+   *   CustomDimension response =
+   *       analyticsAdminServiceClient.createCustomDimension(parent, customDimension);
+   * }
+   * }
+ * + * @param parent Required. Example format: properties/1234 + * @param customDimension Required. The CustomDimension to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CustomDimension createCustomDimension( + String parent, CustomDimension customDimension) { + CreateCustomDimensionRequest request = + CreateCustomDimensionRequest.newBuilder() + .setParent(parent) + .setCustomDimension(customDimension) + .build(); + return createCustomDimension(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a CustomDimension. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CreateCustomDimensionRequest request =
+   *       CreateCustomDimensionRequest.newBuilder()
+   *           .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+   *           .setCustomDimension(CustomDimension.newBuilder().build())
+   *           .build();
+   *   CustomDimension response = analyticsAdminServiceClient.createCustomDimension(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 CustomDimension createCustomDimension(CreateCustomDimensionRequest request) { + return createCustomDimensionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a CustomDimension. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CreateCustomDimensionRequest request =
+   *       CreateCustomDimensionRequest.newBuilder()
+   *           .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+   *           .setCustomDimension(CustomDimension.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.createCustomDimensionCallable().futureCall(request);
+   *   // Do something.
+   *   CustomDimension response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createCustomDimensionCallable() { + return stub.createCustomDimensionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a CustomDimension on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CustomDimension customDimension = CustomDimension.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   CustomDimension response =
+   *       analyticsAdminServiceClient.updateCustomDimension(customDimension, updateMask);
+   * }
+   * }
+ * + * @param customDimension The CustomDimension to update + * @param updateMask Required. The list of fields to be updated. Omitted fields will not be + * updated. To replace the entire entity, use one path with the string "*" to match all + * fields. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CustomDimension updateCustomDimension( + CustomDimension customDimension, FieldMask updateMask) { + UpdateCustomDimensionRequest request = + UpdateCustomDimensionRequest.newBuilder() + .setCustomDimension(customDimension) + .setUpdateMask(updateMask) + .build(); + return updateCustomDimension(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a CustomDimension on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   UpdateCustomDimensionRequest request =
+   *       UpdateCustomDimensionRequest.newBuilder()
+   *           .setCustomDimension(CustomDimension.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   CustomDimension response = analyticsAdminServiceClient.updateCustomDimension(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 CustomDimension updateCustomDimension(UpdateCustomDimensionRequest request) { + return updateCustomDimensionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a CustomDimension on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   UpdateCustomDimensionRequest request =
+   *       UpdateCustomDimensionRequest.newBuilder()
+   *           .setCustomDimension(CustomDimension.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.updateCustomDimensionCallable().futureCall(request);
+   *   // Do something.
+   *   CustomDimension response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateCustomDimensionCallable() { + return stub.updateCustomDimensionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CustomDimensions on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   for (CustomDimension element :
+   *       analyticsAdminServiceClient.listCustomDimensions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Example format: properties/1234 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCustomDimensionsPagedResponse listCustomDimensions(PropertyName parent) { + ListCustomDimensionsRequest request = + ListCustomDimensionsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCustomDimensions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CustomDimensions on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String parent = CustomDimensionName.of("[PROPERTY]").toString();
+   *   for (CustomDimension element :
+   *       analyticsAdminServiceClient.listCustomDimensions(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. Example format: properties/1234 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCustomDimensionsPagedResponse listCustomDimensions(String parent) { + ListCustomDimensionsRequest request = + ListCustomDimensionsRequest.newBuilder().setParent(parent).build(); + return listCustomDimensions(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CustomDimensions on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListCustomDimensionsRequest request =
+   *       ListCustomDimensionsRequest.newBuilder()
+   *           .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (CustomDimension element :
+   *       analyticsAdminServiceClient.listCustomDimensions(request).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCustomDimensionsPagedResponse listCustomDimensions( + ListCustomDimensionsRequest request) { + return listCustomDimensionsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CustomDimensions on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListCustomDimensionsRequest request =
+   *       ListCustomDimensionsRequest.newBuilder()
+   *           .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.listCustomDimensionsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (CustomDimension element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listCustomDimensionsPagedCallable() { + return stub.listCustomDimensionsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CustomDimensions on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListCustomDimensionsRequest request =
+   *       ListCustomDimensionsRequest.newBuilder()
+   *           .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListCustomDimensionsResponse response =
+   *         analyticsAdminServiceClient.listCustomDimensionsCallable().call(request);
+   *     for (CustomDimension element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable listCustomDimensionsCallable() { return stub.listCustomDimensionsCallable(); } @@ -7303,6 +8522,196 @@ public final UnaryCallable getCustomMetric return stub.getCustomMetricCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the singleton data retention settings for this property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]");
+   *   DataRetentionSettings response = analyticsAdminServiceClient.getDataRetentionSettings(name);
+   * }
+   * }
+ * + * @param name Required. The name of the settings to lookup. Format: + * properties/{property}/dataRetentionSettings Example: + * "properties/1000/dataRetentionSettings" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataRetentionSettings getDataRetentionSettings(DataRetentionSettingsName name) { + GetDataRetentionSettingsRequest request = + GetDataRetentionSettingsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getDataRetentionSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the singleton data retention settings for this property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String name = DataRetentionSettingsName.of("[PROPERTY]").toString();
+   *   DataRetentionSettings response = analyticsAdminServiceClient.getDataRetentionSettings(name);
+   * }
+   * }
+ * + * @param name Required. The name of the settings to lookup. Format: + * properties/{property}/dataRetentionSettings Example: + * "properties/1000/dataRetentionSettings" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataRetentionSettings getDataRetentionSettings(String name) { + GetDataRetentionSettingsRequest request = + GetDataRetentionSettingsRequest.newBuilder().setName(name).build(); + return getDataRetentionSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the singleton data retention settings for this property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetDataRetentionSettingsRequest request =
+   *       GetDataRetentionSettingsRequest.newBuilder()
+   *           .setName(DataRetentionSettingsName.of("[PROPERTY]").toString())
+   *           .build();
+   *   DataRetentionSettings response =
+   *       analyticsAdminServiceClient.getDataRetentionSettings(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 DataRetentionSettings getDataRetentionSettings( + GetDataRetentionSettingsRequest request) { + return getDataRetentionSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns the singleton data retention settings for this property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetDataRetentionSettingsRequest request =
+   *       GetDataRetentionSettingsRequest.newBuilder()
+   *           .setName(DataRetentionSettingsName.of("[PROPERTY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.getDataRetentionSettingsCallable().futureCall(request);
+   *   // Do something.
+   *   DataRetentionSettings response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getDataRetentionSettingsCallable() { + return stub.getDataRetentionSettingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the singleton data retention settings for this property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DataRetentionSettings dataRetentionSettings = DataRetentionSettings.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   DataRetentionSettings response =
+   *       analyticsAdminServiceClient.updateDataRetentionSettings(
+   *           dataRetentionSettings, updateMask);
+   * }
+   * }
+ * + * @param dataRetentionSettings Required. The settings to update. The `name` field is used to + * identify the settings to be updated. + * @param updateMask Required. The list of fields to be updated. Field names must be in snake case + * (e.g., "field_to_update"). Omitted fields will not be updated. To replace the entire + * entity, use one path with the string "*" to match all fields. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final DataRetentionSettings updateDataRetentionSettings( + DataRetentionSettings dataRetentionSettings, FieldMask updateMask) { + UpdateDataRetentionSettingsRequest request = + UpdateDataRetentionSettingsRequest.newBuilder() + .setDataRetentionSettings(dataRetentionSettings) + .setUpdateMask(updateMask) + .build(); + return updateDataRetentionSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the singleton data retention settings for this property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   UpdateDataRetentionSettingsRequest request =
+   *       UpdateDataRetentionSettingsRequest.newBuilder()
+   *           .setDataRetentionSettings(DataRetentionSettings.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   DataRetentionSettings response =
+   *       analyticsAdminServiceClient.updateDataRetentionSettings(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 DataRetentionSettings updateDataRetentionSettings( + UpdateDataRetentionSettingsRequest request) { + return updateDataRetentionSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the singleton data retention settings for this property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   UpdateDataRetentionSettingsRequest request =
+   *       UpdateDataRetentionSettingsRequest.newBuilder()
+   *           .setDataRetentionSettings(DataRetentionSettings.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.updateDataRetentionSettingsCallable().futureCall(request);
+   *   // Do something.
+   *   DataRetentionSettings response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateDataRetentionSettingsCallable() { + return stub.updateDataRetentionSettingsCallable(); + } + @Override public final void close() { stub.close(); @@ -8417,6 +9826,206 @@ protected ListConversionEventsFixedSizeCollection createCollection( } } + public static class ListDisplayVideo360AdvertiserLinksPagedResponse + extends AbstractPagedListResponse< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksResponse, + DisplayVideo360AdvertiserLink, + ListDisplayVideo360AdvertiserLinksPage, + ListDisplayVideo360AdvertiserLinksFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksResponse, + DisplayVideo360AdvertiserLink> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDisplayVideo360AdvertiserLinksPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDisplayVideo360AdvertiserLinksPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDisplayVideo360AdvertiserLinksPagedResponse( + ListDisplayVideo360AdvertiserLinksPage page) { + super(page, ListDisplayVideo360AdvertiserLinksFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDisplayVideo360AdvertiserLinksPage + extends AbstractPage< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksResponse, + DisplayVideo360AdvertiserLink, + ListDisplayVideo360AdvertiserLinksPage> { + + private ListDisplayVideo360AdvertiserLinksPage( + PageContext< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksResponse, + DisplayVideo360AdvertiserLink> + context, + ListDisplayVideo360AdvertiserLinksResponse response) { + super(context, response); + } + + private static ListDisplayVideo360AdvertiserLinksPage createEmptyPage() { + return new ListDisplayVideo360AdvertiserLinksPage(null, null); + } + + @Override + protected ListDisplayVideo360AdvertiserLinksPage createPage( + PageContext< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksResponse, + DisplayVideo360AdvertiserLink> + context, + ListDisplayVideo360AdvertiserLinksResponse response) { + return new ListDisplayVideo360AdvertiserLinksPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksResponse, + DisplayVideo360AdvertiserLink> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDisplayVideo360AdvertiserLinksFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksResponse, + DisplayVideo360AdvertiserLink, + ListDisplayVideo360AdvertiserLinksPage, + ListDisplayVideo360AdvertiserLinksFixedSizeCollection> { + + private ListDisplayVideo360AdvertiserLinksFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDisplayVideo360AdvertiserLinksFixedSizeCollection createEmptyCollection() { + return new ListDisplayVideo360AdvertiserLinksFixedSizeCollection(null, 0); + } + + @Override + protected ListDisplayVideo360AdvertiserLinksFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDisplayVideo360AdvertiserLinksFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListDisplayVideo360AdvertiserLinkProposalsPagedResponse + extends AbstractPagedListResponse< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse, + DisplayVideo360AdvertiserLinkProposal, + ListDisplayVideo360AdvertiserLinkProposalsPage, + ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse, + DisplayVideo360AdvertiserLinkProposal> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListDisplayVideo360AdvertiserLinkProposalsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListDisplayVideo360AdvertiserLinkProposalsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListDisplayVideo360AdvertiserLinkProposalsPagedResponse( + ListDisplayVideo360AdvertiserLinkProposalsPage page) { + super( + page, + ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListDisplayVideo360AdvertiserLinkProposalsPage + extends AbstractPage< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse, + DisplayVideo360AdvertiserLinkProposal, + ListDisplayVideo360AdvertiserLinkProposalsPage> { + + private ListDisplayVideo360AdvertiserLinkProposalsPage( + PageContext< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse, + DisplayVideo360AdvertiserLinkProposal> + context, + ListDisplayVideo360AdvertiserLinkProposalsResponse response) { + super(context, response); + } + + private static ListDisplayVideo360AdvertiserLinkProposalsPage createEmptyPage() { + return new ListDisplayVideo360AdvertiserLinkProposalsPage(null, null); + } + + @Override + protected ListDisplayVideo360AdvertiserLinkProposalsPage createPage( + PageContext< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse, + DisplayVideo360AdvertiserLinkProposal> + context, + ListDisplayVideo360AdvertiserLinkProposalsResponse response) { + return new ListDisplayVideo360AdvertiserLinkProposalsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse, + DisplayVideo360AdvertiserLinkProposal> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse, + DisplayVideo360AdvertiserLinkProposal, + ListDisplayVideo360AdvertiserLinkProposalsPage, + ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection> { + + private ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection + createEmptyCollection() { + return new ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection(null, 0); + } + + @Override + protected ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListDisplayVideo360AdvertiserLinkProposalsFixedSizeCollection( + pages, collectionSize); + } + } + public static class ListCustomDimensionsPagedResponse extends AbstractPagedListResponse< ListCustomDimensionsRequest, diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java index ab244744..64ef040b 100644 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java @@ -23,6 +23,8 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse; @@ -311,11 +313,6 @@ public UnaryCallSettings createFirebase return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createFirebaseLinkSettings(); } - /** Returns the object with the settings used for calls to updateFirebaseLink. */ - public UnaryCallSettings updateFirebaseLinkSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateFirebaseLinkSettings(); - } - /** Returns the object with the settings used for calls to deleteFirebaseLink. */ public UnaryCallSettings deleteFirebaseLinkSettings() { return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteFirebaseLinkSettings(); @@ -451,6 +448,114 @@ public UnaryCallSettings deleteConversionEv return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listConversionEventsSettings(); } + /** Returns the object with the settings used for calls to getDisplayVideo360AdvertiserLink. */ + public UnaryCallSettings + getDisplayVideo360AdvertiserLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .getDisplayVideo360AdvertiserLinkSettings(); + } + + /** Returns the object with the settings used for calls to listDisplayVideo360AdvertiserLinks. */ + public PagedCallSettings< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksResponse, + ListDisplayVideo360AdvertiserLinksPagedResponse> + listDisplayVideo360AdvertiserLinksSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .listDisplayVideo360AdvertiserLinksSettings(); + } + + /** Returns the object with the settings used for calls to createDisplayVideo360AdvertiserLink. */ + public UnaryCallSettings< + CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + createDisplayVideo360AdvertiserLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .createDisplayVideo360AdvertiserLinkSettings(); + } + + /** Returns the object with the settings used for calls to deleteDisplayVideo360AdvertiserLink. */ + public UnaryCallSettings + deleteDisplayVideo360AdvertiserLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .deleteDisplayVideo360AdvertiserLinkSettings(); + } + + /** Returns the object with the settings used for calls to updateDisplayVideo360AdvertiserLink. */ + public UnaryCallSettings< + UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + updateDisplayVideo360AdvertiserLinkSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .updateDisplayVideo360AdvertiserLinkSettings(); + } + + /** + * Returns the object with the settings used for calls to + * getDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings< + GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + getDisplayVideo360AdvertiserLinkProposalSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .getDisplayVideo360AdvertiserLinkProposalSettings(); + } + + /** + * Returns the object with the settings used for calls to + * listDisplayVideo360AdvertiserLinkProposals. + */ + public PagedCallSettings< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse, + ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> + listDisplayVideo360AdvertiserLinkProposalsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .listDisplayVideo360AdvertiserLinkProposalsSettings(); + } + + /** + * Returns the object with the settings used for calls to + * createDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings< + CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + createDisplayVideo360AdvertiserLinkProposalSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .createDisplayVideo360AdvertiserLinkProposalSettings(); + } + + /** + * Returns the object with the settings used for calls to + * deleteDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings + deleteDisplayVideo360AdvertiserLinkProposalSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .deleteDisplayVideo360AdvertiserLinkProposalSettings(); + } + + /** + * Returns the object with the settings used for calls to + * approveDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings< + ApproveDisplayVideo360AdvertiserLinkProposalRequest, + ApproveDisplayVideo360AdvertiserLinkProposalResponse> + approveDisplayVideo360AdvertiserLinkProposalSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .approveDisplayVideo360AdvertiserLinkProposalSettings(); + } + + /** + * Returns the object with the settings used for calls to + * cancelDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings< + CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + cancelDisplayVideo360AdvertiserLinkProposalSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .cancelDisplayVideo360AdvertiserLinkProposalSettings(); + } + /** Returns the object with the settings used for calls to createCustomDimension. */ public UnaryCallSettings createCustomDimensionSettings() { @@ -510,6 +615,20 @@ public UnaryCallSettings getCustomMetricSe return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getCustomMetricSettings(); } + /** Returns the object with the settings used for calls to getDataRetentionSettings. */ + public UnaryCallSettings + getDataRetentionSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .getDataRetentionSettingsSettings(); + } + + /** Returns the object with the settings used for calls to updateDataRetentionSettings. */ + public UnaryCallSettings + updateDataRetentionSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .updateDataRetentionSettingsSettings(); + } + public static final AnalyticsAdminServiceSettings create(AnalyticsAdminServiceStubSettings stub) throws IOException { return new AnalyticsAdminServiceSettings.Builder(stub.toBuilder()).build(); @@ -835,12 +954,6 @@ public UnaryCallSettings.Builder deleteUserLinkSet return getStubSettingsBuilder().createFirebaseLinkSettings(); } - /** Returns the builder for the settings used for calls to updateFirebaseLink. */ - public UnaryCallSettings.Builder - updateFirebaseLinkSettings() { - return getStubSettingsBuilder().updateFirebaseLinkSettings(); - } - /** Returns the builder for the settings used for calls to deleteFirebaseLink. */ public UnaryCallSettings.Builder deleteFirebaseLinkSettings() { @@ -974,6 +1087,114 @@ public UnaryCallSettings.Builder deleteUserLinkSet return getStubSettingsBuilder().listConversionEventsSettings(); } + /** Returns the builder for the settings used for calls to getDisplayVideo360AdvertiserLink. */ + public UnaryCallSettings.Builder< + GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + getDisplayVideo360AdvertiserLinkSettings() { + return getStubSettingsBuilder().getDisplayVideo360AdvertiserLinkSettings(); + } + + /** + * Returns the builder for the settings used for calls to listDisplayVideo360AdvertiserLinks. + */ + public PagedCallSettings.Builder< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksResponse, + ListDisplayVideo360AdvertiserLinksPagedResponse> + listDisplayVideo360AdvertiserLinksSettings() { + return getStubSettingsBuilder().listDisplayVideo360AdvertiserLinksSettings(); + } + + /** + * Returns the builder for the settings used for calls to createDisplayVideo360AdvertiserLink. + */ + public UnaryCallSettings.Builder< + CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + createDisplayVideo360AdvertiserLinkSettings() { + return getStubSettingsBuilder().createDisplayVideo360AdvertiserLinkSettings(); + } + + /** + * Returns the builder for the settings used for calls to deleteDisplayVideo360AdvertiserLink. + */ + public UnaryCallSettings.Builder + deleteDisplayVideo360AdvertiserLinkSettings() { + return getStubSettingsBuilder().deleteDisplayVideo360AdvertiserLinkSettings(); + } + + /** + * Returns the builder for the settings used for calls to updateDisplayVideo360AdvertiserLink. + */ + public UnaryCallSettings.Builder< + UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + updateDisplayVideo360AdvertiserLinkSettings() { + return getStubSettingsBuilder().updateDisplayVideo360AdvertiserLinkSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * getDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings.Builder< + GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + getDisplayVideo360AdvertiserLinkProposalSettings() { + return getStubSettingsBuilder().getDisplayVideo360AdvertiserLinkProposalSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * listDisplayVideo360AdvertiserLinkProposals. + */ + public PagedCallSettings.Builder< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse, + ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> + listDisplayVideo360AdvertiserLinkProposalsSettings() { + return getStubSettingsBuilder().listDisplayVideo360AdvertiserLinkProposalsSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * createDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings.Builder< + CreateDisplayVideo360AdvertiserLinkProposalRequest, + DisplayVideo360AdvertiserLinkProposal> + createDisplayVideo360AdvertiserLinkProposalSettings() { + return getStubSettingsBuilder().createDisplayVideo360AdvertiserLinkProposalSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * deleteDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings.Builder + deleteDisplayVideo360AdvertiserLinkProposalSettings() { + return getStubSettingsBuilder().deleteDisplayVideo360AdvertiserLinkProposalSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * approveDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings.Builder< + ApproveDisplayVideo360AdvertiserLinkProposalRequest, + ApproveDisplayVideo360AdvertiserLinkProposalResponse> + approveDisplayVideo360AdvertiserLinkProposalSettings() { + return getStubSettingsBuilder().approveDisplayVideo360AdvertiserLinkProposalSettings(); + } + + /** + * Returns the builder for the settings used for calls to + * cancelDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings.Builder< + CancelDisplayVideo360AdvertiserLinkProposalRequest, + DisplayVideo360AdvertiserLinkProposal> + cancelDisplayVideo360AdvertiserLinkProposalSettings() { + return getStubSettingsBuilder().cancelDisplayVideo360AdvertiserLinkProposalSettings(); + } + /** Returns the builder for the settings used for calls to createCustomDimension. */ public UnaryCallSettings.Builder createCustomDimensionSettings() { @@ -1038,6 +1259,18 @@ public UnaryCallSettings.Builder deleteUserLinkSet return getStubSettingsBuilder().getCustomMetricSettings(); } + /** Returns the builder for the settings used for calls to getDataRetentionSettings. */ + public UnaryCallSettings.Builder + getDataRetentionSettingsSettings() { + return getStubSettingsBuilder().getDataRetentionSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to updateDataRetentionSettings. */ + public UnaryCallSettings.Builder + updateDataRetentionSettingsSettings() { + return getStubSettingsBuilder().updateDataRetentionSettingsSettings(); + } + @Override public AnalyticsAdminServiceSettings build() throws IOException { return new AnalyticsAdminServiceSettings(this); diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json index fe921e8b..a9ba9efd 100644 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json @@ -10,6 +10,9 @@ "grpc": { "libraryClient": "AnalyticsAdminServiceClient", "rpcs": { + "ApproveDisplayVideo360AdvertiserLinkProposal": { + "methods": ["approveDisplayVideo360AdvertiserLinkProposal", "approveDisplayVideo360AdvertiserLinkProposalCallable"] + }, "ArchiveCustomDimension": { "methods": ["archiveCustomDimension", "archiveCustomDimension", "archiveCustomDimension", "archiveCustomDimensionCallable"] }, @@ -31,6 +34,9 @@ "BatchUpdateUserLinks": { "methods": ["batchUpdateUserLinks", "batchUpdateUserLinksCallable"] }, + "CancelDisplayVideo360AdvertiserLinkProposal": { + "methods": ["cancelDisplayVideo360AdvertiserLinkProposal", "cancelDisplayVideo360AdvertiserLinkProposalCallable"] + }, "CreateConversionEvent": { "methods": ["createConversionEvent", "createConversionEvent", "createConversionEvent", "createConversionEventCallable"] }, @@ -40,6 +46,12 @@ "CreateCustomMetric": { "methods": ["createCustomMetric", "createCustomMetric", "createCustomMetric", "createCustomMetricCallable"] }, + "CreateDisplayVideo360AdvertiserLink": { + "methods": ["createDisplayVideo360AdvertiserLink", "createDisplayVideo360AdvertiserLink", "createDisplayVideo360AdvertiserLink", "createDisplayVideo360AdvertiserLinkCallable"] + }, + "CreateDisplayVideo360AdvertiserLinkProposal": { + "methods": ["createDisplayVideo360AdvertiserLinkProposal", "createDisplayVideo360AdvertiserLinkProposal", "createDisplayVideo360AdvertiserLinkProposal", "createDisplayVideo360AdvertiserLinkProposalCallable"] + }, "CreateFirebaseLink": { "methods": ["createFirebaseLink", "createFirebaseLink", "createFirebaseLink", "createFirebaseLinkCallable"] }, @@ -67,6 +79,12 @@ "DeleteConversionEvent": { "methods": ["deleteConversionEvent", "deleteConversionEvent", "deleteConversionEvent", "deleteConversionEventCallable"] }, + "DeleteDisplayVideo360AdvertiserLink": { + "methods": ["deleteDisplayVideo360AdvertiserLink", "deleteDisplayVideo360AdvertiserLink", "deleteDisplayVideo360AdvertiserLink", "deleteDisplayVideo360AdvertiserLinkCallable"] + }, + "DeleteDisplayVideo360AdvertiserLinkProposal": { + "methods": ["deleteDisplayVideo360AdvertiserLinkProposal", "deleteDisplayVideo360AdvertiserLinkProposal", "deleteDisplayVideo360AdvertiserLinkProposal", "deleteDisplayVideo360AdvertiserLinkProposalCallable"] + }, "DeleteFirebaseLink": { "methods": ["deleteFirebaseLink", "deleteFirebaseLink", "deleteFirebaseLink", "deleteFirebaseLinkCallable"] }, @@ -103,9 +121,18 @@ "GetCustomMetric": { "methods": ["getCustomMetric", "getCustomMetric", "getCustomMetric", "getCustomMetricCallable"] }, + "GetDataRetentionSettings": { + "methods": ["getDataRetentionSettings", "getDataRetentionSettings", "getDataRetentionSettings", "getDataRetentionSettingsCallable"] + }, "GetDataSharingSettings": { "methods": ["getDataSharingSettings", "getDataSharingSettings", "getDataSharingSettings", "getDataSharingSettingsCallable"] }, + "GetDisplayVideo360AdvertiserLink": { + "methods": ["getDisplayVideo360AdvertiserLink", "getDisplayVideo360AdvertiserLink", "getDisplayVideo360AdvertiserLink", "getDisplayVideo360AdvertiserLinkCallable"] + }, + "GetDisplayVideo360AdvertiserLinkProposal": { + "methods": ["getDisplayVideo360AdvertiserLinkProposal", "getDisplayVideo360AdvertiserLinkProposal", "getDisplayVideo360AdvertiserLinkProposal", "getDisplayVideo360AdvertiserLinkProposalCallable"] + }, "GetEnhancedMeasurementSettings": { "methods": ["getEnhancedMeasurementSettings", "getEnhancedMeasurementSettings", "getEnhancedMeasurementSettings", "getEnhancedMeasurementSettingsCallable"] }, @@ -148,6 +175,12 @@ "ListCustomMetrics": { "methods": ["listCustomMetrics", "listCustomMetrics", "listCustomMetrics", "listCustomMetricsPagedCallable", "listCustomMetricsCallable"] }, + "ListDisplayVideo360AdvertiserLinkProposals": { + "methods": ["listDisplayVideo360AdvertiserLinkProposals", "listDisplayVideo360AdvertiserLinkProposals", "listDisplayVideo360AdvertiserLinkProposals", "listDisplayVideo360AdvertiserLinkProposalsPagedCallable", "listDisplayVideo360AdvertiserLinkProposalsCallable"] + }, + "ListDisplayVideo360AdvertiserLinks": { + "methods": ["listDisplayVideo360AdvertiserLinks", "listDisplayVideo360AdvertiserLinks", "listDisplayVideo360AdvertiserLinks", "listDisplayVideo360AdvertiserLinksPagedCallable", "listDisplayVideo360AdvertiserLinksCallable"] + }, "ListFirebaseLinks": { "methods": ["listFirebaseLinks", "listFirebaseLinks", "listFirebaseLinks", "listFirebaseLinksPagedCallable", "listFirebaseLinksCallable"] }, @@ -187,12 +220,15 @@ "UpdateCustomMetric": { "methods": ["updateCustomMetric", "updateCustomMetric", "updateCustomMetricCallable"] }, + "UpdateDataRetentionSettings": { + "methods": ["updateDataRetentionSettings", "updateDataRetentionSettings", "updateDataRetentionSettingsCallable"] + }, + "UpdateDisplayVideo360AdvertiserLink": { + "methods": ["updateDisplayVideo360AdvertiserLink", "updateDisplayVideo360AdvertiserLink", "updateDisplayVideo360AdvertiserLinkCallable"] + }, "UpdateEnhancedMeasurementSettings": { "methods": ["updateEnhancedMeasurementSettings", "updateEnhancedMeasurementSettings", "updateEnhancedMeasurementSettingsCallable"] }, - "UpdateFirebaseLink": { - "methods": ["updateFirebaseLink", "updateFirebaseLink", "updateFirebaseLinkCallable"] - }, "UpdateGoogleAdsLink": { "methods": ["updateGoogleAdsLink", "updateGoogleAdsLink", "updateGoogleAdsLinkCallable"] }, diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java index 84390ca3..461983a3 100644 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java @@ -23,6 +23,8 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse; @@ -34,6 +36,8 @@ import com.google.analytics.admin.v1alpha.Account; import com.google.analytics.admin.v1alpha.AndroidAppDataStream; +import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; +import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; import com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; import com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; import com.google.analytics.admin.v1alpha.AuditUserLinksRequest; @@ -45,10 +49,13 @@ import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse; import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; +import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.ConversionEvent; import com.google.analytics.admin.v1alpha.CreateConversionEventRequest; import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.CreateCustomMetricRequest; +import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; +import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; @@ -57,10 +64,13 @@ import com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest; import com.google.analytics.admin.v1alpha.CustomDimension; import com.google.analytics.admin.v1alpha.CustomMetric; +import com.google.analytics.admin.v1alpha.DataRetentionSettings; import com.google.analytics.admin.v1alpha.DataSharingSettings; import com.google.analytics.admin.v1alpha.DeleteAccountRequest; import com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.DeleteConversionEventRequest; +import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; +import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest; @@ -68,6 +78,8 @@ import com.google.analytics.admin.v1alpha.DeletePropertyRequest; import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; import com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest; +import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; +import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; import com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings; import com.google.analytics.admin.v1alpha.FirebaseLink; import com.google.analytics.admin.v1alpha.GetAccountRequest; @@ -75,7 +87,10 @@ import com.google.analytics.admin.v1alpha.GetConversionEventRequest; import com.google.analytics.admin.v1alpha.GetCustomDimensionRequest; import com.google.analytics.admin.v1alpha.GetCustomMetricRequest; +import com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; import com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; +import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; +import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest; import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; @@ -100,6 +115,10 @@ import com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse; import com.google.analytics.admin.v1alpha.ListCustomMetricsRequest; import com.google.analytics.admin.v1alpha.ListCustomMetricsResponse; +import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest; +import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; +import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; +import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse; import com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest; import com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse; import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; @@ -124,8 +143,9 @@ import com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest; +import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; +import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; -import com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest; @@ -358,10 +378,6 @@ public UnaryCallable createFirebaseLink throw new UnsupportedOperationException("Not implemented: createFirebaseLinkCallable()"); } - public UnaryCallable updateFirebaseLinkCallable() { - throw new UnsupportedOperationException("Not implemented: updateFirebaseLinkCallable()"); - } - public UnaryCallable deleteFirebaseLinkCallable() { throw new UnsupportedOperationException("Not implemented: deleteFirebaseLinkCallable()"); } @@ -490,6 +506,96 @@ public UnaryCallable deleteConversionEventC throw new UnsupportedOperationException("Not implemented: listConversionEventsCallable()"); } + public UnaryCallable + getDisplayVideo360AdvertiserLinkCallable() { + throw new UnsupportedOperationException( + "Not implemented: getDisplayVideo360AdvertiserLinkCallable()"); + } + + public UnaryCallable< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksPagedResponse> + listDisplayVideo360AdvertiserLinksPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listDisplayVideo360AdvertiserLinksPagedCallable()"); + } + + public UnaryCallable< + ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse> + listDisplayVideo360AdvertiserLinksCallable() { + throw new UnsupportedOperationException( + "Not implemented: listDisplayVideo360AdvertiserLinksCallable()"); + } + + public UnaryCallable + createDisplayVideo360AdvertiserLinkCallable() { + throw new UnsupportedOperationException( + "Not implemented: createDisplayVideo360AdvertiserLinkCallable()"); + } + + public UnaryCallable + deleteDisplayVideo360AdvertiserLinkCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteDisplayVideo360AdvertiserLinkCallable()"); + } + + public UnaryCallable + updateDisplayVideo360AdvertiserLinkCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateDisplayVideo360AdvertiserLinkCallable()"); + } + + public UnaryCallable< + GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + getDisplayVideo360AdvertiserLinkProposalCallable() { + throw new UnsupportedOperationException( + "Not implemented: getDisplayVideo360AdvertiserLinkProposalCallable()"); + } + + public UnaryCallable< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> + listDisplayVideo360AdvertiserLinkProposalsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listDisplayVideo360AdvertiserLinkProposalsPagedCallable()"); + } + + public UnaryCallable< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse> + listDisplayVideo360AdvertiserLinkProposalsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listDisplayVideo360AdvertiserLinkProposalsCallable()"); + } + + public UnaryCallable< + CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + createDisplayVideo360AdvertiserLinkProposalCallable() { + throw new UnsupportedOperationException( + "Not implemented: createDisplayVideo360AdvertiserLinkProposalCallable()"); + } + + public UnaryCallable + deleteDisplayVideo360AdvertiserLinkProposalCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteDisplayVideo360AdvertiserLinkProposalCallable()"); + } + + public UnaryCallable< + ApproveDisplayVideo360AdvertiserLinkProposalRequest, + ApproveDisplayVideo360AdvertiserLinkProposalResponse> + approveDisplayVideo360AdvertiserLinkProposalCallable() { + throw new UnsupportedOperationException( + "Not implemented: approveDisplayVideo360AdvertiserLinkProposalCallable()"); + } + + public UnaryCallable< + CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + cancelDisplayVideo360AdvertiserLinkProposalCallable() { + throw new UnsupportedOperationException( + "Not implemented: cancelDisplayVideo360AdvertiserLinkProposalCallable()"); + } + public UnaryCallable createCustomDimensionCallable() { throw new UnsupportedOperationException("Not implemented: createCustomDimensionCallable()"); @@ -544,6 +650,17 @@ public UnaryCallable getCustomMetricCallab throw new UnsupportedOperationException("Not implemented: getCustomMetricCallable()"); } + public UnaryCallable + getDataRetentionSettingsCallable() { + throw new UnsupportedOperationException("Not implemented: getDataRetentionSettingsCallable()"); + } + + public UnaryCallable + updateDataRetentionSettingsCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateDataRetentionSettingsCallable()"); + } + @Override public abstract void close(); } diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java index 8d538243..15104002 100644 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java @@ -23,6 +23,8 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse; @@ -35,6 +37,8 @@ import com.google.analytics.admin.v1alpha.Account; import com.google.analytics.admin.v1alpha.AccountSummary; import com.google.analytics.admin.v1alpha.AndroidAppDataStream; +import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; +import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; import com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; import com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; import com.google.analytics.admin.v1alpha.AuditUserLink; @@ -47,11 +51,14 @@ import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse; import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; +import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.ChangeHistoryEvent; import com.google.analytics.admin.v1alpha.ConversionEvent; import com.google.analytics.admin.v1alpha.CreateConversionEventRequest; import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.CreateCustomMetricRequest; +import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; +import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; @@ -60,10 +67,13 @@ import com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest; import com.google.analytics.admin.v1alpha.CustomDimension; import com.google.analytics.admin.v1alpha.CustomMetric; +import com.google.analytics.admin.v1alpha.DataRetentionSettings; import com.google.analytics.admin.v1alpha.DataSharingSettings; import com.google.analytics.admin.v1alpha.DeleteAccountRequest; import com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.DeleteConversionEventRequest; +import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; +import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest; @@ -71,6 +81,8 @@ import com.google.analytics.admin.v1alpha.DeletePropertyRequest; import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; import com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest; +import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; +import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; import com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings; import com.google.analytics.admin.v1alpha.FirebaseLink; import com.google.analytics.admin.v1alpha.GetAccountRequest; @@ -78,7 +90,10 @@ import com.google.analytics.admin.v1alpha.GetConversionEventRequest; import com.google.analytics.admin.v1alpha.GetCustomDimensionRequest; import com.google.analytics.admin.v1alpha.GetCustomMetricRequest; +import com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; import com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; +import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; +import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest; import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; @@ -103,6 +118,10 @@ import com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse; import com.google.analytics.admin.v1alpha.ListCustomMetricsRequest; import com.google.analytics.admin.v1alpha.ListCustomMetricsResponse; +import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest; +import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; +import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; +import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse; import com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest; import com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse; import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; @@ -127,8 +146,9 @@ import com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest; +import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; +import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; -import com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest; @@ -293,8 +313,6 @@ public class AnalyticsAdminServiceStubSettings updateEnhancedMeasurementSettingsSettings; private final UnaryCallSettings createFirebaseLinkSettings; - private final UnaryCallSettings - updateFirebaseLinkSettings; private final UnaryCallSettings deleteFirebaseLinkSettings; private final PagedCallSettings< ListFirebaseLinksRequest, ListFirebaseLinksResponse, ListFirebaseLinksPagedResponse> @@ -343,6 +361,42 @@ public class AnalyticsAdminServiceStubSettings ListConversionEventsResponse, ListConversionEventsPagedResponse> listConversionEventsSettings; + private final UnaryCallSettings< + GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + getDisplayVideo360AdvertiserLinkSettings; + private final PagedCallSettings< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksResponse, + ListDisplayVideo360AdvertiserLinksPagedResponse> + listDisplayVideo360AdvertiserLinksSettings; + private final UnaryCallSettings< + CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + createDisplayVideo360AdvertiserLinkSettings; + private final UnaryCallSettings + deleteDisplayVideo360AdvertiserLinkSettings; + private final UnaryCallSettings< + UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + updateDisplayVideo360AdvertiserLinkSettings; + private final UnaryCallSettings< + GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + getDisplayVideo360AdvertiserLinkProposalSettings; + private final PagedCallSettings< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse, + ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> + listDisplayVideo360AdvertiserLinkProposalsSettings; + private final UnaryCallSettings< + CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + createDisplayVideo360AdvertiserLinkProposalSettings; + private final UnaryCallSettings + deleteDisplayVideo360AdvertiserLinkProposalSettings; + private final UnaryCallSettings< + ApproveDisplayVideo360AdvertiserLinkProposalRequest, + ApproveDisplayVideo360AdvertiserLinkProposalResponse> + approveDisplayVideo360AdvertiserLinkProposalSettings; + private final UnaryCallSettings< + CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + cancelDisplayVideo360AdvertiserLinkProposalSettings; private final UnaryCallSettings createCustomDimensionSettings; private final UnaryCallSettings @@ -365,6 +419,10 @@ public class AnalyticsAdminServiceStubSettings listCustomMetricsSettings; private final UnaryCallSettings archiveCustomMetricSettings; private final UnaryCallSettings getCustomMetricSettings; + private final UnaryCallSettings + getDataRetentionSettingsSettings; + private final UnaryCallSettings + updateDataRetentionSettingsSettings; private static final PagedListDescriptor LIST_ACCOUNTS_PAGE_STR_DESC = @@ -898,6 +956,106 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksResponse, + DisplayVideo360AdvertiserLink> + LIST_DISPLAY_VIDEO360_ADVERTISER_LINKS_PAGE_STR_DESC = + new PagedListDescriptor< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksResponse, + DisplayVideo360AdvertiserLink>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDisplayVideo360AdvertiserLinksRequest injectToken( + ListDisplayVideo360AdvertiserLinksRequest payload, String token) { + return ListDisplayVideo360AdvertiserLinksRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListDisplayVideo360AdvertiserLinksRequest injectPageSize( + ListDisplayVideo360AdvertiserLinksRequest payload, int pageSize) { + return ListDisplayVideo360AdvertiserLinksRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListDisplayVideo360AdvertiserLinksRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListDisplayVideo360AdvertiserLinksResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListDisplayVideo360AdvertiserLinksResponse payload) { + return payload.getDisplayVideo360AdvertiserLinksList() == null + ? ImmutableList.of() + : payload.getDisplayVideo360AdvertiserLinksList(); + } + }; + + private static final PagedListDescriptor< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse, + DisplayVideo360AdvertiserLinkProposal> + LIST_DISPLAY_VIDEO360_ADVERTISER_LINK_PROPOSALS_PAGE_STR_DESC = + new PagedListDescriptor< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse, + DisplayVideo360AdvertiserLinkProposal>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListDisplayVideo360AdvertiserLinkProposalsRequest injectToken( + ListDisplayVideo360AdvertiserLinkProposalsRequest payload, String token) { + return ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListDisplayVideo360AdvertiserLinkProposalsRequest injectPageSize( + ListDisplayVideo360AdvertiserLinkProposalsRequest payload, int pageSize) { + return ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize( + ListDisplayVideo360AdvertiserLinkProposalsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken( + ListDisplayVideo360AdvertiserLinkProposalsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListDisplayVideo360AdvertiserLinkProposalsResponse payload) { + return payload.getDisplayVideo360AdvertiserLinkProposalsList() == null + ? ImmutableList.of() + : payload.getDisplayVideo360AdvertiserLinkProposalsList(); + } + }; + private static final PagedListDescriptor< ListCustomDimensionsRequest, ListCustomDimensionsResponse, CustomDimension> LIST_CUSTOM_DIMENSIONS_PAGE_STR_DESC = @@ -1272,6 +1430,74 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksResponse, + ListDisplayVideo360AdvertiserLinksPagedResponse> + LIST_DISPLAY_VIDEO360_ADVERTISER_LINKS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksResponse, + ListDisplayVideo360AdvertiserLinksPagedResponse>() { + @Override + public ApiFuture + getFuturePagedResponse( + UnaryCallable< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksResponse> + callable, + ListDisplayVideo360AdvertiserLinksRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksResponse, + DisplayVideo360AdvertiserLink> + pageContext = + PageContext.create( + callable, + LIST_DISPLAY_VIDEO360_ADVERTISER_LINKS_PAGE_STR_DESC, + request, + context); + return ListDisplayVideo360AdvertiserLinksPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse, + ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> + LIST_DISPLAY_VIDEO360_ADVERTISER_LINK_PROPOSALS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse, + ListDisplayVideo360AdvertiserLinkProposalsPagedResponse>() { + @Override + public ApiFuture + getFuturePagedResponse( + UnaryCallable< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse> + callable, + ListDisplayVideo360AdvertiserLinkProposalsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse, + DisplayVideo360AdvertiserLinkProposal> + pageContext = + PageContext.create( + callable, + LIST_DISPLAY_VIDEO360_ADVERTISER_LINK_PROPOSALS_PAGE_STR_DESC, + request, + context); + return ListDisplayVideo360AdvertiserLinkProposalsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListCustomDimensionsRequest, ListCustomDimensionsResponse, @@ -1535,11 +1761,6 @@ public UnaryCallSettings createFirebase return createFirebaseLinkSettings; } - /** Returns the object with the settings used for calls to updateFirebaseLink. */ - public UnaryCallSettings updateFirebaseLinkSettings() { - return updateFirebaseLinkSettings; - } - /** Returns the object with the settings used for calls to deleteFirebaseLink. */ public UnaryCallSettings deleteFirebaseLinkSettings() { return deleteFirebaseLinkSettings; @@ -1667,6 +1888,103 @@ public UnaryCallSettings deleteConversionEv return listConversionEventsSettings; } + /** Returns the object with the settings used for calls to getDisplayVideo360AdvertiserLink. */ + public UnaryCallSettings + getDisplayVideo360AdvertiserLinkSettings() { + return getDisplayVideo360AdvertiserLinkSettings; + } + + /** Returns the object with the settings used for calls to listDisplayVideo360AdvertiserLinks. */ + public PagedCallSettings< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksResponse, + ListDisplayVideo360AdvertiserLinksPagedResponse> + listDisplayVideo360AdvertiserLinksSettings() { + return listDisplayVideo360AdvertiserLinksSettings; + } + + /** Returns the object with the settings used for calls to createDisplayVideo360AdvertiserLink. */ + public UnaryCallSettings< + CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + createDisplayVideo360AdvertiserLinkSettings() { + return createDisplayVideo360AdvertiserLinkSettings; + } + + /** Returns the object with the settings used for calls to deleteDisplayVideo360AdvertiserLink. */ + public UnaryCallSettings + deleteDisplayVideo360AdvertiserLinkSettings() { + return deleteDisplayVideo360AdvertiserLinkSettings; + } + + /** Returns the object with the settings used for calls to updateDisplayVideo360AdvertiserLink. */ + public UnaryCallSettings< + UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + updateDisplayVideo360AdvertiserLinkSettings() { + return updateDisplayVideo360AdvertiserLinkSettings; + } + + /** + * Returns the object with the settings used for calls to + * getDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings< + GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + getDisplayVideo360AdvertiserLinkProposalSettings() { + return getDisplayVideo360AdvertiserLinkProposalSettings; + } + + /** + * Returns the object with the settings used for calls to + * listDisplayVideo360AdvertiserLinkProposals. + */ + public PagedCallSettings< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse, + ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> + listDisplayVideo360AdvertiserLinkProposalsSettings() { + return listDisplayVideo360AdvertiserLinkProposalsSettings; + } + + /** + * Returns the object with the settings used for calls to + * createDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings< + CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + createDisplayVideo360AdvertiserLinkProposalSettings() { + return createDisplayVideo360AdvertiserLinkProposalSettings; + } + + /** + * Returns the object with the settings used for calls to + * deleteDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings + deleteDisplayVideo360AdvertiserLinkProposalSettings() { + return deleteDisplayVideo360AdvertiserLinkProposalSettings; + } + + /** + * Returns the object with the settings used for calls to + * approveDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings< + ApproveDisplayVideo360AdvertiserLinkProposalRequest, + ApproveDisplayVideo360AdvertiserLinkProposalResponse> + approveDisplayVideo360AdvertiserLinkProposalSettings() { + return approveDisplayVideo360AdvertiserLinkProposalSettings; + } + + /** + * Returns the object with the settings used for calls to + * cancelDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings< + CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + cancelDisplayVideo360AdvertiserLinkProposalSettings() { + return cancelDisplayVideo360AdvertiserLinkProposalSettings; + } + /** Returns the object with the settings used for calls to createCustomDimension. */ public UnaryCallSettings createCustomDimensionSettings() { @@ -1726,6 +2044,18 @@ public UnaryCallSettings getCustomMetricSe return getCustomMetricSettings; } + /** Returns the object with the settings used for calls to getDataRetentionSettings. */ + public UnaryCallSettings + getDataRetentionSettingsSettings() { + return getDataRetentionSettingsSettings; + } + + /** Returns the object with the settings used for calls to updateDataRetentionSettings. */ + public UnaryCallSettings + updateDataRetentionSettingsSettings() { + return updateDataRetentionSettingsSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public AnalyticsAdminServiceStub createStub() throws IOException { if (getTransportChannelProvider() @@ -1760,7 +2090,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. */ @@ -1841,7 +2173,6 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx updateEnhancedMeasurementSettingsSettings = settingsBuilder.updateEnhancedMeasurementSettingsSettings().build(); createFirebaseLinkSettings = settingsBuilder.createFirebaseLinkSettings().build(); - updateFirebaseLinkSettings = settingsBuilder.updateFirebaseLinkSettings().build(); deleteFirebaseLinkSettings = settingsBuilder.deleteFirebaseLinkSettings().build(); listFirebaseLinksSettings = settingsBuilder.listFirebaseLinksSettings().build(); getGlobalSiteTagSettings = settingsBuilder.getGlobalSiteTagSettings().build(); @@ -1868,6 +2199,28 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx getConversionEventSettings = settingsBuilder.getConversionEventSettings().build(); deleteConversionEventSettings = settingsBuilder.deleteConversionEventSettings().build(); listConversionEventsSettings = settingsBuilder.listConversionEventsSettings().build(); + getDisplayVideo360AdvertiserLinkSettings = + settingsBuilder.getDisplayVideo360AdvertiserLinkSettings().build(); + listDisplayVideo360AdvertiserLinksSettings = + settingsBuilder.listDisplayVideo360AdvertiserLinksSettings().build(); + createDisplayVideo360AdvertiserLinkSettings = + settingsBuilder.createDisplayVideo360AdvertiserLinkSettings().build(); + deleteDisplayVideo360AdvertiserLinkSettings = + settingsBuilder.deleteDisplayVideo360AdvertiserLinkSettings().build(); + updateDisplayVideo360AdvertiserLinkSettings = + settingsBuilder.updateDisplayVideo360AdvertiserLinkSettings().build(); + getDisplayVideo360AdvertiserLinkProposalSettings = + settingsBuilder.getDisplayVideo360AdvertiserLinkProposalSettings().build(); + listDisplayVideo360AdvertiserLinkProposalsSettings = + settingsBuilder.listDisplayVideo360AdvertiserLinkProposalsSettings().build(); + createDisplayVideo360AdvertiserLinkProposalSettings = + settingsBuilder.createDisplayVideo360AdvertiserLinkProposalSettings().build(); + deleteDisplayVideo360AdvertiserLinkProposalSettings = + settingsBuilder.deleteDisplayVideo360AdvertiserLinkProposalSettings().build(); + approveDisplayVideo360AdvertiserLinkProposalSettings = + settingsBuilder.approveDisplayVideo360AdvertiserLinkProposalSettings().build(); + cancelDisplayVideo360AdvertiserLinkProposalSettings = + settingsBuilder.cancelDisplayVideo360AdvertiserLinkProposalSettings().build(); createCustomDimensionSettings = settingsBuilder.createCustomDimensionSettings().build(); updateCustomDimensionSettings = settingsBuilder.updateCustomDimensionSettings().build(); listCustomDimensionsSettings = settingsBuilder.listCustomDimensionsSettings().build(); @@ -1878,6 +2231,9 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx listCustomMetricsSettings = settingsBuilder.listCustomMetricsSettings().build(); archiveCustomMetricSettings = settingsBuilder.archiveCustomMetricSettings().build(); getCustomMetricSettings = settingsBuilder.getCustomMetricSettings().build(); + getDataRetentionSettingsSettings = settingsBuilder.getDataRetentionSettingsSettings().build(); + updateDataRetentionSettingsSettings = + settingsBuilder.updateDataRetentionSettingsSettings().build(); } /** Builder for AnalyticsAdminServiceStubSettings. */ @@ -1966,8 +2322,6 @@ public static class Builder updateEnhancedMeasurementSettingsSettings; private final UnaryCallSettings.Builder createFirebaseLinkSettings; - private final UnaryCallSettings.Builder - updateFirebaseLinkSettings; private final UnaryCallSettings.Builder deleteFirebaseLinkSettings; private final PagedCallSettings.Builder< @@ -2023,6 +2377,45 @@ public static class Builder ListConversionEventsResponse, ListConversionEventsPagedResponse> listConversionEventsSettings; + private final UnaryCallSettings.Builder< + GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + getDisplayVideo360AdvertiserLinkSettings; + private final PagedCallSettings.Builder< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksResponse, + ListDisplayVideo360AdvertiserLinksPagedResponse> + listDisplayVideo360AdvertiserLinksSettings; + private final UnaryCallSettings.Builder< + CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + createDisplayVideo360AdvertiserLinkSettings; + private final UnaryCallSettings.Builder + deleteDisplayVideo360AdvertiserLinkSettings; + private final UnaryCallSettings.Builder< + UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + updateDisplayVideo360AdvertiserLinkSettings; + private final UnaryCallSettings.Builder< + GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + getDisplayVideo360AdvertiserLinkProposalSettings; + private final PagedCallSettings.Builder< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse, + ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> + listDisplayVideo360AdvertiserLinkProposalsSettings; + private final UnaryCallSettings.Builder< + CreateDisplayVideo360AdvertiserLinkProposalRequest, + DisplayVideo360AdvertiserLinkProposal> + createDisplayVideo360AdvertiserLinkProposalSettings; + private final UnaryCallSettings.Builder< + DeleteDisplayVideo360AdvertiserLinkProposalRequest, Empty> + deleteDisplayVideo360AdvertiserLinkProposalSettings; + private final UnaryCallSettings.Builder< + ApproveDisplayVideo360AdvertiserLinkProposalRequest, + ApproveDisplayVideo360AdvertiserLinkProposalResponse> + approveDisplayVideo360AdvertiserLinkProposalSettings; + private final UnaryCallSettings.Builder< + CancelDisplayVideo360AdvertiserLinkProposalRequest, + DisplayVideo360AdvertiserLinkProposal> + cancelDisplayVideo360AdvertiserLinkProposalSettings; private final UnaryCallSettings.Builder createCustomDimensionSettings; private final UnaryCallSettings.Builder @@ -2047,6 +2440,11 @@ public static class Builder archiveCustomMetricSettings; private final UnaryCallSettings.Builder getCustomMetricSettings; + private final UnaryCallSettings.Builder + getDataRetentionSettingsSettings; + private final UnaryCallSettings.Builder< + UpdateDataRetentionSettingsRequest, DataRetentionSettings> + updateDataRetentionSettingsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -2138,7 +2536,6 @@ protected Builder(ClientContext clientContext) { getEnhancedMeasurementSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateEnhancedMeasurementSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); createFirebaseLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateFirebaseLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteFirebaseLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listFirebaseLinksSettings = PagedCallSettings.newBuilder(LIST_FIREBASE_LINKS_PAGE_STR_FACT); getGlobalSiteTagSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -2163,6 +2560,25 @@ protected Builder(ClientContext clientContext) { deleteConversionEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listConversionEventsSettings = PagedCallSettings.newBuilder(LIST_CONVERSION_EVENTS_PAGE_STR_FACT); + getDisplayVideo360AdvertiserLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listDisplayVideo360AdvertiserLinksSettings = + PagedCallSettings.newBuilder(LIST_DISPLAY_VIDEO360_ADVERTISER_LINKS_PAGE_STR_FACT); + createDisplayVideo360AdvertiserLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteDisplayVideo360AdvertiserLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateDisplayVideo360AdvertiserLinkSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getDisplayVideo360AdvertiserLinkProposalSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + listDisplayVideo360AdvertiserLinkProposalsSettings = + PagedCallSettings.newBuilder( + LIST_DISPLAY_VIDEO360_ADVERTISER_LINK_PROPOSALS_PAGE_STR_FACT); + createDisplayVideo360AdvertiserLinkProposalSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteDisplayVideo360AdvertiserLinkProposalSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + approveDisplayVideo360AdvertiserLinkProposalSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); + cancelDisplayVideo360AdvertiserLinkProposalSettings = + UnaryCallSettings.newUnaryCallSettingsBuilder(); createCustomDimensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateCustomDimensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listCustomDimensionsSettings = @@ -2174,6 +2590,8 @@ protected Builder(ClientContext clientContext) { listCustomMetricsSettings = PagedCallSettings.newBuilder(LIST_CUSTOM_METRICS_PAGE_STR_FACT); archiveCustomMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getCustomMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getDataRetentionSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateDataRetentionSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -2214,7 +2632,6 @@ protected Builder(ClientContext clientContext) { getEnhancedMeasurementSettingsSettings, updateEnhancedMeasurementSettingsSettings, createFirebaseLinkSettings, - updateFirebaseLinkSettings, deleteFirebaseLinkSettings, listFirebaseLinksSettings, getGlobalSiteTagSettings, @@ -2235,6 +2652,17 @@ protected Builder(ClientContext clientContext) { getConversionEventSettings, deleteConversionEventSettings, listConversionEventsSettings, + getDisplayVideo360AdvertiserLinkSettings, + listDisplayVideo360AdvertiserLinksSettings, + createDisplayVideo360AdvertiserLinkSettings, + deleteDisplayVideo360AdvertiserLinkSettings, + updateDisplayVideo360AdvertiserLinkSettings, + getDisplayVideo360AdvertiserLinkProposalSettings, + listDisplayVideo360AdvertiserLinkProposalsSettings, + createDisplayVideo360AdvertiserLinkProposalSettings, + deleteDisplayVideo360AdvertiserLinkProposalSettings, + approveDisplayVideo360AdvertiserLinkProposalSettings, + cancelDisplayVideo360AdvertiserLinkProposalSettings, createCustomDimensionSettings, updateCustomDimensionSettings, listCustomDimensionsSettings, @@ -2244,7 +2672,9 @@ protected Builder(ClientContext clientContext) { updateCustomMetricSettings, listCustomMetricsSettings, archiveCustomMetricSettings, - getCustomMetricSettings); + getCustomMetricSettings, + getDataRetentionSettingsSettings, + updateDataRetentionSettingsSettings); initDefaults(this); } @@ -2290,7 +2720,6 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { updateEnhancedMeasurementSettingsSettings = settings.updateEnhancedMeasurementSettingsSettings.toBuilder(); createFirebaseLinkSettings = settings.createFirebaseLinkSettings.toBuilder(); - updateFirebaseLinkSettings = settings.updateFirebaseLinkSettings.toBuilder(); deleteFirebaseLinkSettings = settings.deleteFirebaseLinkSettings.toBuilder(); listFirebaseLinksSettings = settings.listFirebaseLinksSettings.toBuilder(); getGlobalSiteTagSettings = settings.getGlobalSiteTagSettings.toBuilder(); @@ -2317,6 +2746,28 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { getConversionEventSettings = settings.getConversionEventSettings.toBuilder(); deleteConversionEventSettings = settings.deleteConversionEventSettings.toBuilder(); listConversionEventsSettings = settings.listConversionEventsSettings.toBuilder(); + getDisplayVideo360AdvertiserLinkSettings = + settings.getDisplayVideo360AdvertiserLinkSettings.toBuilder(); + listDisplayVideo360AdvertiserLinksSettings = + settings.listDisplayVideo360AdvertiserLinksSettings.toBuilder(); + createDisplayVideo360AdvertiserLinkSettings = + settings.createDisplayVideo360AdvertiserLinkSettings.toBuilder(); + deleteDisplayVideo360AdvertiserLinkSettings = + settings.deleteDisplayVideo360AdvertiserLinkSettings.toBuilder(); + updateDisplayVideo360AdvertiserLinkSettings = + settings.updateDisplayVideo360AdvertiserLinkSettings.toBuilder(); + getDisplayVideo360AdvertiserLinkProposalSettings = + settings.getDisplayVideo360AdvertiserLinkProposalSettings.toBuilder(); + listDisplayVideo360AdvertiserLinkProposalsSettings = + settings.listDisplayVideo360AdvertiserLinkProposalsSettings.toBuilder(); + createDisplayVideo360AdvertiserLinkProposalSettings = + settings.createDisplayVideo360AdvertiserLinkProposalSettings.toBuilder(); + deleteDisplayVideo360AdvertiserLinkProposalSettings = + settings.deleteDisplayVideo360AdvertiserLinkProposalSettings.toBuilder(); + approveDisplayVideo360AdvertiserLinkProposalSettings = + settings.approveDisplayVideo360AdvertiserLinkProposalSettings.toBuilder(); + cancelDisplayVideo360AdvertiserLinkProposalSettings = + settings.cancelDisplayVideo360AdvertiserLinkProposalSettings.toBuilder(); createCustomDimensionSettings = settings.createCustomDimensionSettings.toBuilder(); updateCustomDimensionSettings = settings.updateCustomDimensionSettings.toBuilder(); listCustomDimensionsSettings = settings.listCustomDimensionsSettings.toBuilder(); @@ -2327,6 +2778,9 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { listCustomMetricsSettings = settings.listCustomMetricsSettings.toBuilder(); archiveCustomMetricSettings = settings.archiveCustomMetricSettings.toBuilder(); getCustomMetricSettings = settings.getCustomMetricSettings.toBuilder(); + getDataRetentionSettingsSettings = settings.getDataRetentionSettingsSettings.toBuilder(); + updateDataRetentionSettingsSettings = + settings.updateDataRetentionSettingsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -2367,7 +2821,6 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { getEnhancedMeasurementSettingsSettings, updateEnhancedMeasurementSettingsSettings, createFirebaseLinkSettings, - updateFirebaseLinkSettings, deleteFirebaseLinkSettings, listFirebaseLinksSettings, getGlobalSiteTagSettings, @@ -2388,6 +2841,17 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { getConversionEventSettings, deleteConversionEventSettings, listConversionEventsSettings, + getDisplayVideo360AdvertiserLinkSettings, + listDisplayVideo360AdvertiserLinksSettings, + createDisplayVideo360AdvertiserLinkSettings, + deleteDisplayVideo360AdvertiserLinkSettings, + updateDisplayVideo360AdvertiserLinkSettings, + getDisplayVideo360AdvertiserLinkProposalSettings, + listDisplayVideo360AdvertiserLinkProposalsSettings, + createDisplayVideo360AdvertiserLinkProposalSettings, + deleteDisplayVideo360AdvertiserLinkProposalSettings, + approveDisplayVideo360AdvertiserLinkProposalSettings, + cancelDisplayVideo360AdvertiserLinkProposalSettings, createCustomDimensionSettings, updateCustomDimensionSettings, listCustomDimensionsSettings, @@ -2397,7 +2861,9 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { updateCustomMetricSettings, listCustomMetricsSettings, archiveCustomMetricSettings, - getCustomMetricSettings); + getCustomMetricSettings, + getDataRetentionSettingsSettings, + updateDataRetentionSettingsSettings); } private static Builder createDefault() { @@ -2599,11 +3065,6 @@ 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 - .updateFirebaseLinkSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - builder .deleteFirebaseLinkSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -2704,6 +3165,61 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .getDisplayVideo360AdvertiserLinkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listDisplayVideo360AdvertiserLinksSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createDisplayVideo360AdvertiserLinkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteDisplayVideo360AdvertiserLinkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateDisplayVideo360AdvertiserLinkSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getDisplayVideo360AdvertiserLinkProposalSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listDisplayVideo360AdvertiserLinkProposalsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createDisplayVideo360AdvertiserLinkProposalSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteDisplayVideo360AdvertiserLinkProposalSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .approveDisplayVideo360AdvertiserLinkProposalSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .cancelDisplayVideo360AdvertiserLinkProposalSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .createCustomDimensionSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -2754,6 +3270,16 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .getDataRetentionSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateDataRetentionSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + return builder; } @@ -2999,12 +3525,6 @@ public UnaryCallSettings.Builder deleteUserLinkSet return createFirebaseLinkSettings; } - /** Returns the builder for the settings used for calls to updateFirebaseLink. */ - public UnaryCallSettings.Builder - updateFirebaseLinkSettings() { - return updateFirebaseLinkSettings; - } - /** Returns the builder for the settings used for calls to deleteFirebaseLink. */ public UnaryCallSettings.Builder deleteFirebaseLinkSettings() { @@ -3138,6 +3658,114 @@ public UnaryCallSettings.Builder deleteUserLinkSet return listConversionEventsSettings; } + /** Returns the builder for the settings used for calls to getDisplayVideo360AdvertiserLink. */ + public UnaryCallSettings.Builder< + GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + getDisplayVideo360AdvertiserLinkSettings() { + return getDisplayVideo360AdvertiserLinkSettings; + } + + /** + * Returns the builder for the settings used for calls to listDisplayVideo360AdvertiserLinks. + */ + public PagedCallSettings.Builder< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksResponse, + ListDisplayVideo360AdvertiserLinksPagedResponse> + listDisplayVideo360AdvertiserLinksSettings() { + return listDisplayVideo360AdvertiserLinksSettings; + } + + /** + * Returns the builder for the settings used for calls to createDisplayVideo360AdvertiserLink. + */ + public UnaryCallSettings.Builder< + CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + createDisplayVideo360AdvertiserLinkSettings() { + return createDisplayVideo360AdvertiserLinkSettings; + } + + /** + * Returns the builder for the settings used for calls to deleteDisplayVideo360AdvertiserLink. + */ + public UnaryCallSettings.Builder + deleteDisplayVideo360AdvertiserLinkSettings() { + return deleteDisplayVideo360AdvertiserLinkSettings; + } + + /** + * Returns the builder for the settings used for calls to updateDisplayVideo360AdvertiserLink. + */ + public UnaryCallSettings.Builder< + UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + updateDisplayVideo360AdvertiserLinkSettings() { + return updateDisplayVideo360AdvertiserLinkSettings; + } + + /** + * Returns the builder for the settings used for calls to + * getDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings.Builder< + GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + getDisplayVideo360AdvertiserLinkProposalSettings() { + return getDisplayVideo360AdvertiserLinkProposalSettings; + } + + /** + * Returns the builder for the settings used for calls to + * listDisplayVideo360AdvertiserLinkProposals. + */ + public PagedCallSettings.Builder< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse, + ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> + listDisplayVideo360AdvertiserLinkProposalsSettings() { + return listDisplayVideo360AdvertiserLinkProposalsSettings; + } + + /** + * Returns the builder for the settings used for calls to + * createDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings.Builder< + CreateDisplayVideo360AdvertiserLinkProposalRequest, + DisplayVideo360AdvertiserLinkProposal> + createDisplayVideo360AdvertiserLinkProposalSettings() { + return createDisplayVideo360AdvertiserLinkProposalSettings; + } + + /** + * Returns the builder for the settings used for calls to + * deleteDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings.Builder + deleteDisplayVideo360AdvertiserLinkProposalSettings() { + return deleteDisplayVideo360AdvertiserLinkProposalSettings; + } + + /** + * Returns the builder for the settings used for calls to + * approveDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings.Builder< + ApproveDisplayVideo360AdvertiserLinkProposalRequest, + ApproveDisplayVideo360AdvertiserLinkProposalResponse> + approveDisplayVideo360AdvertiserLinkProposalSettings() { + return approveDisplayVideo360AdvertiserLinkProposalSettings; + } + + /** + * Returns the builder for the settings used for calls to + * cancelDisplayVideo360AdvertiserLinkProposal. + */ + public UnaryCallSettings.Builder< + CancelDisplayVideo360AdvertiserLinkProposalRequest, + DisplayVideo360AdvertiserLinkProposal> + cancelDisplayVideo360AdvertiserLinkProposalSettings() { + return cancelDisplayVideo360AdvertiserLinkProposalSettings; + } + /** Returns the builder for the settings used for calls to createCustomDimension. */ public UnaryCallSettings.Builder createCustomDimensionSettings() { @@ -3202,6 +3830,18 @@ public UnaryCallSettings.Builder deleteUserLinkSet return getCustomMetricSettings; } + /** Returns the builder for the settings used for calls to getDataRetentionSettings. */ + public UnaryCallSettings.Builder + getDataRetentionSettingsSettings() { + return getDataRetentionSettingsSettings; + } + + /** Returns the builder for the settings used for calls to updateDataRetentionSettings. */ + public UnaryCallSettings.Builder + updateDataRetentionSettingsSettings() { + return updateDataRetentionSettingsSettings; + } + @Override public AnalyticsAdminServiceStubSettings build() throws IOException { return new AnalyticsAdminServiceStubSettings(this); diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java index 8446c1a0..3735db15 100644 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java @@ -23,6 +23,8 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse; @@ -34,6 +36,8 @@ import com.google.analytics.admin.v1alpha.Account; import com.google.analytics.admin.v1alpha.AndroidAppDataStream; +import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest; +import com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse; import com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; import com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; import com.google.analytics.admin.v1alpha.AuditUserLinksRequest; @@ -45,10 +49,13 @@ import com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse; import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; +import com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest; import com.google.analytics.admin.v1alpha.ConversionEvent; import com.google.analytics.admin.v1alpha.CreateConversionEventRequest; import com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.CreateCustomMetricRequest; +import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest; +import com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; @@ -57,10 +64,13 @@ import com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest; import com.google.analytics.admin.v1alpha.CustomDimension; import com.google.analytics.admin.v1alpha.CustomMetric; +import com.google.analytics.admin.v1alpha.DataRetentionSettings; import com.google.analytics.admin.v1alpha.DataSharingSettings; import com.google.analytics.admin.v1alpha.DeleteAccountRequest; import com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.DeleteConversionEventRequest; +import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest; +import com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest; @@ -68,6 +78,8 @@ import com.google.analytics.admin.v1alpha.DeletePropertyRequest; import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; import com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest; +import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink; +import com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal; import com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings; import com.google.analytics.admin.v1alpha.FirebaseLink; import com.google.analytics.admin.v1alpha.GetAccountRequest; @@ -75,7 +87,10 @@ import com.google.analytics.admin.v1alpha.GetConversionEventRequest; import com.google.analytics.admin.v1alpha.GetCustomDimensionRequest; import com.google.analytics.admin.v1alpha.GetCustomMetricRequest; +import com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest; import com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest; +import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest; +import com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest; import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; @@ -100,6 +115,10 @@ import com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse; import com.google.analytics.admin.v1alpha.ListCustomMetricsRequest; import com.google.analytics.admin.v1alpha.ListCustomMetricsResponse; +import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest; +import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse; +import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest; +import com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse; import com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest; import com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse; import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; @@ -124,8 +143,9 @@ import com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest; import com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest; +import com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest; +import com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest; import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; -import com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest; @@ -579,17 +599,6 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(FirebaseLink.getDefaultInstance())) .build(); - private static final MethodDescriptor - updateFirebaseLinkMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateFirebaseLink") - .setRequestMarshaller( - ProtoUtils.marshaller(UpdateFirebaseLinkRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(FirebaseLink.getDefaultInstance())) - .build(); - private static final MethodDescriptor deleteFirebaseLinkMethodDescriptor = MethodDescriptor.newBuilder() @@ -836,6 +845,184 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { ProtoUtils.marshaller(ListConversionEventsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor< + GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + getDisplayVideo360AdvertiserLinkMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLink") + .setRequestMarshaller( + ProtoUtils.marshaller( + GetDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DisplayVideo360AdvertiserLink.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse> + listDisplayVideo360AdvertiserLinksMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinks") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListDisplayVideo360AdvertiserLinksRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListDisplayVideo360AdvertiserLinksResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + createDisplayVideo360AdvertiserLinkMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLink") + .setRequestMarshaller( + ProtoUtils.marshaller( + CreateDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DisplayVideo360AdvertiserLink.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteDisplayVideo360AdvertiserLinkMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLink") + .setRequestMarshaller( + ProtoUtils.marshaller( + DeleteDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + updateDisplayVideo360AdvertiserLinkMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDisplayVideo360AdvertiserLink") + .setRequestMarshaller( + ProtoUtils.marshaller( + UpdateDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DisplayVideo360AdvertiserLink.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + getDisplayVideo360AdvertiserLinkProposalMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDisplayVideo360AdvertiserLinkProposal") + .setRequestMarshaller( + ProtoUtils.marshaller( + GetDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DisplayVideo360AdvertiserLinkProposal.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse> + listDisplayVideo360AdvertiserLinkProposalsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListDisplayVideo360AdvertiserLinkProposals") + .setRequestMarshaller( + ProtoUtils.marshaller( + ListDisplayVideo360AdvertiserLinkProposalsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListDisplayVideo360AdvertiserLinkProposalsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + createDisplayVideo360AdvertiserLinkProposalMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateDisplayVideo360AdvertiserLinkProposal") + .setRequestMarshaller( + ProtoUtils.marshaller( + CreateDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DisplayVideo360AdvertiserLinkProposal.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteDisplayVideo360AdvertiserLinkProposalMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteDisplayVideo360AdvertiserLinkProposal") + .setRequestMarshaller( + ProtoUtils.marshaller( + DeleteDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ApproveDisplayVideo360AdvertiserLinkProposalRequest, + ApproveDisplayVideo360AdvertiserLinkProposalResponse> + approveDisplayVideo360AdvertiserLinkProposalMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ApproveDisplayVideo360AdvertiserLinkProposal") + .setRequestMarshaller( + ProtoUtils.marshaller( + ApproveDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ApproveDisplayVideo360AdvertiserLinkProposalResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + cancelDisplayVideo360AdvertiserLinkProposalMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CancelDisplayVideo360AdvertiserLinkProposal") + .setRequestMarshaller( + ProtoUtils.marshaller( + CancelDisplayVideo360AdvertiserLinkProposalRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DisplayVideo360AdvertiserLinkProposal.getDefaultInstance())) + .build(); + private static final MethodDescriptor createCustomDimensionMethodDescriptor = MethodDescriptor.newBuilder() @@ -948,6 +1135,30 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(CustomMetric.getDefaultInstance())) .build(); + private static final MethodDescriptor + getDataRetentionSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetDataRetentionSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(GetDataRetentionSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DataRetentionSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateDataRetentionSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateDataRetentionSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateDataRetentionSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(DataRetentionSettings.getDefaultInstance())) + .build(); + private final UnaryCallable getAccountCallable; private final UnaryCallable listAccountsCallable; private final UnaryCallable @@ -1019,7 +1230,6 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { private final UnaryCallable updateEnhancedMeasurementSettingsCallable; private final UnaryCallable createFirebaseLinkCallable; - private final UnaryCallable updateFirebaseLinkCallable; private final UnaryCallable deleteFirebaseLinkCallable; private final UnaryCallable listFirebaseLinksCallable; @@ -1069,6 +1279,47 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { listConversionEventsCallable; private final UnaryCallable listConversionEventsPagedCallable; + private final UnaryCallable< + GetDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + getDisplayVideo360AdvertiserLinkCallable; + private final UnaryCallable< + ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse> + listDisplayVideo360AdvertiserLinksCallable; + private final UnaryCallable< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksPagedResponse> + listDisplayVideo360AdvertiserLinksPagedCallable; + private final UnaryCallable< + CreateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + createDisplayVideo360AdvertiserLinkCallable; + private final UnaryCallable + deleteDisplayVideo360AdvertiserLinkCallable; + private final UnaryCallable< + UpdateDisplayVideo360AdvertiserLinkRequest, DisplayVideo360AdvertiserLink> + updateDisplayVideo360AdvertiserLinkCallable; + private final UnaryCallable< + GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + getDisplayVideo360AdvertiserLinkProposalCallable; + private final UnaryCallable< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse> + listDisplayVideo360AdvertiserLinkProposalsCallable; + private final UnaryCallable< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> + listDisplayVideo360AdvertiserLinkProposalsPagedCallable; + private final UnaryCallable< + CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + createDisplayVideo360AdvertiserLinkProposalCallable; + private final UnaryCallable + deleteDisplayVideo360AdvertiserLinkProposalCallable; + private final UnaryCallable< + ApproveDisplayVideo360AdvertiserLinkProposalRequest, + ApproveDisplayVideo360AdvertiserLinkProposalResponse> + approveDisplayVideo360AdvertiserLinkProposalCallable; + private final UnaryCallable< + CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + cancelDisplayVideo360AdvertiserLinkProposalCallable; private final UnaryCallable createCustomDimensionCallable; private final UnaryCallable @@ -1088,6 +1339,10 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { listCustomMetricsPagedCallable; private final UnaryCallable archiveCustomMetricCallable; private final UnaryCallable getCustomMetricCallable; + private final UnaryCallable + getDataRetentionSettingsCallable; + private final UnaryCallable + updateDataRetentionSettingsCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -1505,17 +1760,6 @@ protected GrpcAnalyticsAdminServiceStub( return params.build(); }) .build(); - GrpcCallSettings updateFirebaseLinkTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateFirebaseLinkMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "firebase_link.name", String.valueOf(request.getFirebaseLink().getName())); - return params.build(); - }) - .build(); GrpcCallSettings deleteFirebaseLinkTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(deleteFirebaseLinkMethodDescriptor) @@ -1744,6 +1988,163 @@ protected GrpcAnalyticsAdminServiceStub( return params.build(); }) .build(); + GrpcCallSettings + getDisplayVideo360AdvertiserLinkTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(getDisplayVideo360AdvertiserLinkMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings< + ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse> + listDisplayVideo360AdvertiserLinksTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listDisplayVideo360AdvertiserLinksMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + createDisplayVideo360AdvertiserLinkTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(createDisplayVideo360AdvertiserLinkMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + deleteDisplayVideo360AdvertiserLinkTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteDisplayVideo360AdvertiserLinkMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + updateDisplayVideo360AdvertiserLinkTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(updateDisplayVideo360AdvertiserLinkMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "display_video_360_advertiser_link.name", + String.valueOf(request.getDisplayVideo360AdvertiserLink().getName())); + return params.build(); + }) + .build(); + GrpcCallSettings< + GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + getDisplayVideo360AdvertiserLinkProposalTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(getDisplayVideo360AdvertiserLinkProposalMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse> + listDisplayVideo360AdvertiserLinkProposalsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listDisplayVideo360AdvertiserLinkProposalsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings< + CreateDisplayVideo360AdvertiserLinkProposalRequest, + DisplayVideo360AdvertiserLinkProposal> + createDisplayVideo360AdvertiserLinkProposalTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(createDisplayVideo360AdvertiserLinkProposalMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + }) + .build(); + GrpcCallSettings + deleteDisplayVideo360AdvertiserLinkProposalTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteDisplayVideo360AdvertiserLinkProposalMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings< + ApproveDisplayVideo360AdvertiserLinkProposalRequest, + ApproveDisplayVideo360AdvertiserLinkProposalResponse> + approveDisplayVideo360AdvertiserLinkProposalTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(approveDisplayVideo360AdvertiserLinkProposalMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings< + CancelDisplayVideo360AdvertiserLinkProposalRequest, + DisplayVideo360AdvertiserLinkProposal> + cancelDisplayVideo360AdvertiserLinkProposalTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(cancelDisplayVideo360AdvertiserLinkProposalMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); GrpcCallSettings createCustomDimensionTransportSettings = GrpcCallSettings.newBuilder() @@ -1852,6 +2253,30 @@ protected GrpcAnalyticsAdminServiceStub( return params.build(); }) .build(); + GrpcCallSettings + getDataRetentionSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getDataRetentionSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); + GrpcCallSettings + updateDataRetentionSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateDataRetentionSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "data_retention_settings.name", + String.valueOf(request.getDataRetentionSettings().getName())); + return params.build(); + }) + .build(); this.getAccountCallable = callableFactory.createUnaryCallable( @@ -2038,11 +2463,6 @@ protected GrpcAnalyticsAdminServiceStub( createFirebaseLinkTransportSettings, settings.createFirebaseLinkSettings(), clientContext); - this.updateFirebaseLinkCallable = - callableFactory.createUnaryCallable( - updateFirebaseLinkTransportSettings, - settings.updateFirebaseLinkSettings(), - clientContext); this.deleteFirebaseLinkCallable = callableFactory.createUnaryCallable( deleteFirebaseLinkTransportSettings, @@ -2166,6 +2586,71 @@ protected GrpcAnalyticsAdminServiceStub( listConversionEventsTransportSettings, settings.listConversionEventsSettings(), clientContext); + this.getDisplayVideo360AdvertiserLinkCallable = + callableFactory.createUnaryCallable( + getDisplayVideo360AdvertiserLinkTransportSettings, + settings.getDisplayVideo360AdvertiserLinkSettings(), + clientContext); + this.listDisplayVideo360AdvertiserLinksCallable = + callableFactory.createUnaryCallable( + listDisplayVideo360AdvertiserLinksTransportSettings, + settings.listDisplayVideo360AdvertiserLinksSettings(), + clientContext); + this.listDisplayVideo360AdvertiserLinksPagedCallable = + callableFactory.createPagedCallable( + listDisplayVideo360AdvertiserLinksTransportSettings, + settings.listDisplayVideo360AdvertiserLinksSettings(), + clientContext); + this.createDisplayVideo360AdvertiserLinkCallable = + callableFactory.createUnaryCallable( + createDisplayVideo360AdvertiserLinkTransportSettings, + settings.createDisplayVideo360AdvertiserLinkSettings(), + clientContext); + this.deleteDisplayVideo360AdvertiserLinkCallable = + callableFactory.createUnaryCallable( + deleteDisplayVideo360AdvertiserLinkTransportSettings, + settings.deleteDisplayVideo360AdvertiserLinkSettings(), + clientContext); + this.updateDisplayVideo360AdvertiserLinkCallable = + callableFactory.createUnaryCallable( + updateDisplayVideo360AdvertiserLinkTransportSettings, + settings.updateDisplayVideo360AdvertiserLinkSettings(), + clientContext); + this.getDisplayVideo360AdvertiserLinkProposalCallable = + callableFactory.createUnaryCallable( + getDisplayVideo360AdvertiserLinkProposalTransportSettings, + settings.getDisplayVideo360AdvertiserLinkProposalSettings(), + clientContext); + this.listDisplayVideo360AdvertiserLinkProposalsCallable = + callableFactory.createUnaryCallable( + listDisplayVideo360AdvertiserLinkProposalsTransportSettings, + settings.listDisplayVideo360AdvertiserLinkProposalsSettings(), + clientContext); + this.listDisplayVideo360AdvertiserLinkProposalsPagedCallable = + callableFactory.createPagedCallable( + listDisplayVideo360AdvertiserLinkProposalsTransportSettings, + settings.listDisplayVideo360AdvertiserLinkProposalsSettings(), + clientContext); + this.createDisplayVideo360AdvertiserLinkProposalCallable = + callableFactory.createUnaryCallable( + createDisplayVideo360AdvertiserLinkProposalTransportSettings, + settings.createDisplayVideo360AdvertiserLinkProposalSettings(), + clientContext); + this.deleteDisplayVideo360AdvertiserLinkProposalCallable = + callableFactory.createUnaryCallable( + deleteDisplayVideo360AdvertiserLinkProposalTransportSettings, + settings.deleteDisplayVideo360AdvertiserLinkProposalSettings(), + clientContext); + this.approveDisplayVideo360AdvertiserLinkProposalCallable = + callableFactory.createUnaryCallable( + approveDisplayVideo360AdvertiserLinkProposalTransportSettings, + settings.approveDisplayVideo360AdvertiserLinkProposalSettings(), + clientContext); + this.cancelDisplayVideo360AdvertiserLinkProposalCallable = + callableFactory.createUnaryCallable( + cancelDisplayVideo360AdvertiserLinkProposalTransportSettings, + settings.cancelDisplayVideo360AdvertiserLinkProposalSettings(), + clientContext); this.createCustomDimensionCallable = callableFactory.createUnaryCallable( createCustomDimensionTransportSettings, @@ -2224,6 +2709,16 @@ protected GrpcAnalyticsAdminServiceStub( this.getCustomMetricCallable = callableFactory.createUnaryCallable( getCustomMetricTransportSettings, settings.getCustomMetricSettings(), clientContext); + this.getDataRetentionSettingsCallable = + callableFactory.createUnaryCallable( + getDataRetentionSettingsTransportSettings, + settings.getDataRetentionSettingsSettings(), + clientContext); + this.updateDataRetentionSettingsCallable = + callableFactory.createUnaryCallable( + updateDataRetentionSettingsTransportSettings, + settings.updateDataRetentionSettingsSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -2479,11 +2974,6 @@ public UnaryCallable createFirebaseLink return createFirebaseLinkCallable; } - @Override - public UnaryCallable updateFirebaseLinkCallable() { - return updateFirebaseLinkCallable; - } - @Override public UnaryCallable deleteFirebaseLinkCallable() { return deleteFirebaseLinkCallable; @@ -2629,6 +3119,96 @@ public UnaryCallable deleteConversionEventC return listConversionEventsPagedCallable; } + @Override + public UnaryCallable + getDisplayVideo360AdvertiserLinkCallable() { + return getDisplayVideo360AdvertiserLinkCallable; + } + + @Override + public UnaryCallable< + ListDisplayVideo360AdvertiserLinksRequest, ListDisplayVideo360AdvertiserLinksResponse> + listDisplayVideo360AdvertiserLinksCallable() { + return listDisplayVideo360AdvertiserLinksCallable; + } + + @Override + public UnaryCallable< + ListDisplayVideo360AdvertiserLinksRequest, + ListDisplayVideo360AdvertiserLinksPagedResponse> + listDisplayVideo360AdvertiserLinksPagedCallable() { + return listDisplayVideo360AdvertiserLinksPagedCallable; + } + + @Override + public UnaryCallable + createDisplayVideo360AdvertiserLinkCallable() { + return createDisplayVideo360AdvertiserLinkCallable; + } + + @Override + public UnaryCallable + deleteDisplayVideo360AdvertiserLinkCallable() { + return deleteDisplayVideo360AdvertiserLinkCallable; + } + + @Override + public UnaryCallable + updateDisplayVideo360AdvertiserLinkCallable() { + return updateDisplayVideo360AdvertiserLinkCallable; + } + + @Override + public UnaryCallable< + GetDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + getDisplayVideo360AdvertiserLinkProposalCallable() { + return getDisplayVideo360AdvertiserLinkProposalCallable; + } + + @Override + public UnaryCallable< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsResponse> + listDisplayVideo360AdvertiserLinkProposalsCallable() { + return listDisplayVideo360AdvertiserLinkProposalsCallable; + } + + @Override + public UnaryCallable< + ListDisplayVideo360AdvertiserLinkProposalsRequest, + ListDisplayVideo360AdvertiserLinkProposalsPagedResponse> + listDisplayVideo360AdvertiserLinkProposalsPagedCallable() { + return listDisplayVideo360AdvertiserLinkProposalsPagedCallable; + } + + @Override + public UnaryCallable< + CreateDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + createDisplayVideo360AdvertiserLinkProposalCallable() { + return createDisplayVideo360AdvertiserLinkProposalCallable; + } + + @Override + public UnaryCallable + deleteDisplayVideo360AdvertiserLinkProposalCallable() { + return deleteDisplayVideo360AdvertiserLinkProposalCallable; + } + + @Override + public UnaryCallable< + ApproveDisplayVideo360AdvertiserLinkProposalRequest, + ApproveDisplayVideo360AdvertiserLinkProposalResponse> + approveDisplayVideo360AdvertiserLinkProposalCallable() { + return approveDisplayVideo360AdvertiserLinkProposalCallable; + } + + @Override + public UnaryCallable< + CancelDisplayVideo360AdvertiserLinkProposalRequest, DisplayVideo360AdvertiserLinkProposal> + cancelDisplayVideo360AdvertiserLinkProposalCallable() { + return cancelDisplayVideo360AdvertiserLinkProposalCallable; + } + @Override public UnaryCallable createCustomDimensionCallable() { @@ -2695,6 +3275,18 @@ public UnaryCallable getCustomMetricCallab return getCustomMetricCallable; } + @Override + public UnaryCallable + getDataRetentionSettingsCallable() { + return getDataRetentionSettingsCallable; + } + + @Override + public UnaryCallable + updateDataRetentionSettingsCallable() { + return updateDataRetentionSettingsCallable; + } + @Override public final void close() { try { diff --git a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java index b5de84fb..7ca67d83 100644 --- a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java +++ b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java @@ -23,6 +23,8 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListConversionEventsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomDimensionsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListCustomMetricsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinkProposalsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListDisplayVideo360AdvertiserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse; @@ -468,6 +470,7 @@ public void getPropertyTest() throws Exception { .setIndustryCategory(IndustryCategory.forNumber(0)) .setTimeZone("timeZone-2077180903") .setCurrencyCode("currencyCode1004773790") + .setServiceLevel(ServiceLevel.forNumber(0)) .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .build(); @@ -515,6 +518,7 @@ public void getPropertyTest2() throws Exception { .setIndustryCategory(IndustryCategory.forNumber(0)) .setTimeZone("timeZone-2077180903") .setCurrencyCode("currencyCode1004773790") + .setServiceLevel(ServiceLevel.forNumber(0)) .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .build(); @@ -621,6 +625,7 @@ public void createPropertyTest() throws Exception { .setIndustryCategory(IndustryCategory.forNumber(0)) .setTimeZone("timeZone-2077180903") .setCurrencyCode("currencyCode1004773790") + .setServiceLevel(ServiceLevel.forNumber(0)) .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .build(); @@ -668,6 +673,7 @@ public void deletePropertyTest() throws Exception { .setIndustryCategory(IndustryCategory.forNumber(0)) .setTimeZone("timeZone-2077180903") .setCurrencyCode("currencyCode1004773790") + .setServiceLevel(ServiceLevel.forNumber(0)) .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .build(); @@ -715,6 +721,7 @@ public void deletePropertyTest2() throws Exception { .setIndustryCategory(IndustryCategory.forNumber(0)) .setTimeZone("timeZone-2077180903") .setCurrencyCode("currencyCode1004773790") + .setServiceLevel(ServiceLevel.forNumber(0)) .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .build(); @@ -762,6 +769,7 @@ public void updatePropertyTest() throws Exception { .setIndustryCategory(IndustryCategory.forNumber(0)) .setTimeZone("timeZone-2077180903") .setCurrencyCode("currencyCode1004773790") + .setServiceLevel(ServiceLevel.forNumber(0)) .setDeleteTime(Timestamp.newBuilder().build()) .setExpireTime(Timestamp.newBuilder().build()) .build(); @@ -2645,7 +2653,6 @@ public void createFirebaseLinkTest() throws Exception { .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString()) .setProject("project-309310695") .setCreateTime(Timestamp.newBuilder().build()) - .setMaximumUserAccess(MaximumUserAccess.forNumber(0)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -2689,7 +2696,6 @@ public void createFirebaseLinkTest2() throws Exception { .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString()) .setProject("project-309310695") .setCreateTime(Timestamp.newBuilder().build()) - .setMaximumUserAccess(MaximumUserAccess.forNumber(0)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -2726,50 +2732,6 @@ public void createFirebaseLinkExceptionTest2() throws Exception { } } - @Test - public void updateFirebaseLinkTest() throws Exception { - FirebaseLink expectedResponse = - FirebaseLink.newBuilder() - .setName(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString()) - .setProject("project-309310695") - .setCreateTime(Timestamp.newBuilder().build()) - .setMaximumUserAccess(MaximumUserAccess.forNumber(0)) - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - - FirebaseLink actualResponse = client.updateFirebaseLink(firebaseLink, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateFirebaseLinkRequest actualRequest = ((UpdateFirebaseLinkRequest) actualRequests.get(0)); - - Assert.assertEquals(firebaseLink, actualRequest.getFirebaseLink()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateFirebaseLinkExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - FirebaseLink firebaseLink = FirebaseLink.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateFirebaseLink(firebaseLink, updateMask); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - @Test public void deleteFirebaseLinkTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); @@ -3012,9 +2974,9 @@ public void createGoogleAdsLinkTest() throws Exception { .setCustomerId("customerId-1581184615") .setCanManageClients(true) .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setEmailAddress("emailAddress-1070931784") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setCreatorEmailAddress("creatorEmailAddress67752708") .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -3059,9 +3021,9 @@ public void createGoogleAdsLinkTest2() throws Exception { .setCustomerId("customerId-1581184615") .setCanManageClients(true) .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setEmailAddress("emailAddress-1070931784") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setCreatorEmailAddress("creatorEmailAddress67752708") .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -3106,9 +3068,9 @@ public void updateGoogleAdsLinkTest() throws Exception { .setCustomerId("customerId-1581184615") .setCanManageClients(true) .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) - .setEmailAddress("emailAddress-1070931784") .setCreateTime(Timestamp.newBuilder().build()) .setUpdateTime(Timestamp.newBuilder().build()) + .setCreatorEmailAddress("creatorEmailAddress67752708") .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -4009,7 +3971,8 @@ public void createConversionEventTest() throws Exception { .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) .setEventName("eventName31228997") .setCreateTime(Timestamp.newBuilder().build()) - .setIsDeletable(true) + .setDeletable(true) + .setCustom(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -4054,7 +4017,8 @@ public void createConversionEventTest2() throws Exception { .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) .setEventName("eventName31228997") .setCreateTime(Timestamp.newBuilder().build()) - .setIsDeletable(true) + .setDeletable(true) + .setCustom(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -4099,7 +4063,8 @@ public void getConversionEventTest() throws Exception { .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) .setEventName("eventName31228997") .setCreateTime(Timestamp.newBuilder().build()) - .setIsDeletable(true) + .setDeletable(true) + .setCustom(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -4140,7 +4105,8 @@ public void getConversionEventTest2() throws Exception { .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) .setEventName("eventName31228997") .setCreateTime(Timestamp.newBuilder().build()) - .setIsDeletable(true) + .setDeletable(true) + .setCustom(true) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -4335,30 +4301,33 @@ public void listConversionEventsExceptionTest2() throws Exception { } @Test - public void createCustomDimensionTest() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) + public void getDisplayVideo360AdvertiserLinkTest() throws Exception { + DisplayVideo360AdvertiserLink expectedResponse = + DisplayVideo360AdvertiserLink.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomDimension customDimension = CustomDimension.newBuilder().build(); + DisplayVideo360AdvertiserLinkName name = + DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); - CustomDimension actualResponse = client.createCustomDimension(parent, customDimension); + DisplayVideo360AdvertiserLink actualResponse = client.getDisplayVideo360AdvertiserLink(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateCustomDimensionRequest actualRequest = - ((CreateCustomDimensionRequest) actualRequests.get(0)); + GetDisplayVideo360AdvertiserLinkRequest actualRequest = + ((GetDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(customDimension, actualRequest.getCustomDimension()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4366,14 +4335,14 @@ public void createCustomDimensionTest() throws Exception { } @Test - public void createCustomDimensionExceptionTest() throws Exception { + public void getDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomDimension customDimension = CustomDimension.newBuilder().build(); - client.createCustomDimension(parent, customDimension); + DisplayVideo360AdvertiserLinkName name = + DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); + client.getDisplayVideo360AdvertiserLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4381,30 +4350,32 @@ public void createCustomDimensionExceptionTest() throws Exception { } @Test - public void createCustomDimensionTest2() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) + public void getDisplayVideo360AdvertiserLinkTest2() throws Exception { + DisplayVideo360AdvertiserLink expectedResponse = + DisplayVideo360AdvertiserLink.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - CustomDimension customDimension = CustomDimension.newBuilder().build(); + String name = "name3373707"; - CustomDimension actualResponse = client.createCustomDimension(parent, customDimension); + DisplayVideo360AdvertiserLink actualResponse = client.getDisplayVideo360AdvertiserLink(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateCustomDimensionRequest actualRequest = - ((CreateCustomDimensionRequest) actualRequests.get(0)); + GetDisplayVideo360AdvertiserLinkRequest actualRequest = + ((GetDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(customDimension, actualRequest.getCustomDimension()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4412,14 +4383,13 @@ public void createCustomDimensionTest2() throws Exception { } @Test - public void createCustomDimensionExceptionTest2() throws Exception { + public void getDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - CustomDimension customDimension = CustomDimension.newBuilder().build(); - client.createCustomDimension(parent, customDimension); + String name = "name3373707"; + client.getDisplayVideo360AdvertiserLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4427,30 +4397,34 @@ public void createCustomDimensionExceptionTest2() throws Exception { } @Test - public void updateCustomDimensionTest() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) + public void listDisplayVideo360AdvertiserLinksTest() throws Exception { + DisplayVideo360AdvertiserLink responsesElement = + DisplayVideo360AdvertiserLink.newBuilder().build(); + ListDisplayVideo360AdvertiserLinksResponse expectedResponse = + ListDisplayVideo360AdvertiserLinksResponse.newBuilder() + .setNextPageToken("") + .addAllDisplayVideo360AdvertiserLinks(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - CustomDimension customDimension = CustomDimension.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); + PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomDimension actualResponse = client.updateCustomDimension(customDimension, updateMask); - Assert.assertEquals(expectedResponse, actualResponse); + ListDisplayVideo360AdvertiserLinksPagedResponse pagedListResponse = + client.listDisplayVideo360AdvertiserLinks(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getDisplayVideo360AdvertiserLinksList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - UpdateCustomDimensionRequest actualRequest = - ((UpdateCustomDimensionRequest) actualRequests.get(0)); + ListDisplayVideo360AdvertiserLinksRequest actualRequest = + ((ListDisplayVideo360AdvertiserLinksRequest) actualRequests.get(0)); - Assert.assertEquals(customDimension, actualRequest.getCustomDimension()); - Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4458,14 +4432,13 @@ public void updateCustomDimensionTest() throws Exception { } @Test - public void updateCustomDimensionExceptionTest() throws Exception { + public void listDisplayVideo360AdvertiserLinksExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - CustomDimension customDimension = CustomDimension.newBuilder().build(); - FieldMask updateMask = FieldMask.newBuilder().build(); - client.updateCustomDimension(customDimension, updateMask); + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listDisplayVideo360AdvertiserLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4473,30 +4446,34 @@ public void updateCustomDimensionExceptionTest() throws Exception { } @Test - public void listCustomDimensionsTest() throws Exception { - CustomDimension responsesElement = CustomDimension.newBuilder().build(); - ListCustomDimensionsResponse expectedResponse = - ListCustomDimensionsResponse.newBuilder() + public void listDisplayVideo360AdvertiserLinksTest2() throws Exception { + DisplayVideo360AdvertiserLink responsesElement = + DisplayVideo360AdvertiserLink.newBuilder().build(); + ListDisplayVideo360AdvertiserLinksResponse expectedResponse = + ListDisplayVideo360AdvertiserLinksResponse.newBuilder() .setNextPageToken("") - .addAllCustomDimensions(Arrays.asList(responsesElement)) + .addAllDisplayVideo360AdvertiserLinks(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); + String parent = "parent-995424086"; - ListCustomDimensionsPagedResponse pagedListResponse = client.listCustomDimensions(parent); + ListDisplayVideo360AdvertiserLinksPagedResponse pagedListResponse = + client.listDisplayVideo360AdvertiserLinks(parent); - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomDimensionsList().get(0), resources.get(0)); + Assert.assertEquals( + expectedResponse.getDisplayVideo360AdvertiserLinksList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListCustomDimensionsRequest actualRequest = - ((ListCustomDimensionsRequest) actualRequests.get(0)); + ListDisplayVideo360AdvertiserLinksRequest actualRequest = + ((ListDisplayVideo360AdvertiserLinksRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4504,13 +4481,13 @@ public void listCustomDimensionsTest() throws Exception { } @Test - public void listCustomDimensionsExceptionTest() throws Exception { + public void listDisplayVideo360AdvertiserLinksExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - client.listCustomDimensions(parent); + String parent = "parent-995424086"; + client.listDisplayVideo360AdvertiserLinks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4518,30 +4495,37 @@ public void listCustomDimensionsExceptionTest() throws Exception { } @Test - public void listCustomDimensionsTest2() throws Exception { - CustomDimension responsesElement = CustomDimension.newBuilder().build(); - ListCustomDimensionsResponse expectedResponse = - ListCustomDimensionsResponse.newBuilder() - .setNextPageToken("") - .addAllCustomDimensions(Arrays.asList(responsesElement)) + public void createDisplayVideo360AdvertiserLinkTest() throws Exception { + DisplayVideo360AdvertiserLink expectedResponse = + DisplayVideo360AdvertiserLink.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String parent = "parent-995424086"; - - ListCustomDimensionsPagedResponse pagedListResponse = client.listCustomDimensions(parent); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + PropertyName parent = PropertyName.of("[PROPERTY]"); + DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = + DisplayVideo360AdvertiserLink.newBuilder().build(); - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getCustomDimensionsList().get(0), resources.get(0)); + DisplayVideo360AdvertiserLink actualResponse = + client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ListCustomDimensionsRequest actualRequest = - ((ListCustomDimensionsRequest) actualRequests.get(0)); + CreateDisplayVideo360AdvertiserLinkRequest actualRequest = + ((CreateDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); - Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals( + displayVideo360AdvertiserLink, actualRequest.getDisplayVideo360AdvertiserLink()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4549,13 +4533,15 @@ public void listCustomDimensionsTest2() throws Exception { } @Test - public void listCustomDimensionsExceptionTest2() throws Exception { + public void createDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String parent = "parent-995424086"; - client.listCustomDimensions(parent); + PropertyName parent = PropertyName.of("[PROPERTY]"); + DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = + DisplayVideo360AdvertiserLink.newBuilder().build(); + client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4563,20 +4549,37 @@ public void listCustomDimensionsExceptionTest2() throws Exception { } @Test - public void archiveCustomDimensionTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + public void createDisplayVideo360AdvertiserLinkTest2() throws Exception { + DisplayVideo360AdvertiserLink expectedResponse = + DisplayVideo360AdvertiserLink.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]"); + String parent = "parent-995424086"; + DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = + DisplayVideo360AdvertiserLink.newBuilder().build(); - client.archiveCustomDimension(name); + DisplayVideo360AdvertiserLink actualResponse = + client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ArchiveCustomDimensionRequest actualRequest = - ((ArchiveCustomDimensionRequest) actualRequests.get(0)); + CreateDisplayVideo360AdvertiserLinkRequest actualRequest = + ((CreateDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals( + displayVideo360AdvertiserLink, actualRequest.getDisplayVideo360AdvertiserLink()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4584,13 +4587,15 @@ public void archiveCustomDimensionTest() throws Exception { } @Test - public void archiveCustomDimensionExceptionTest() throws Exception { + public void createDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]"); - client.archiveCustomDimension(name); + String parent = "parent-995424086"; + DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = + DisplayVideo360AdvertiserLink.newBuilder().build(); + client.createDisplayVideo360AdvertiserLink(parent, displayVideo360AdvertiserLink); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4598,20 +4603,21 @@ public void archiveCustomDimensionExceptionTest() throws Exception { } @Test - public void archiveCustomDimensionTest2() throws Exception { + public void deleteDisplayVideo360AdvertiserLinkTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + DisplayVideo360AdvertiserLinkName name = + DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); - client.archiveCustomDimension(name); + client.deleteDisplayVideo360AdvertiserLink(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - ArchiveCustomDimensionRequest actualRequest = - ((ArchiveCustomDimensionRequest) actualRequests.get(0)); + DeleteDisplayVideo360AdvertiserLinkRequest actualRequest = + ((DeleteDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4619,13 +4625,14 @@ public void archiveCustomDimensionTest2() throws Exception { } @Test - public void archiveCustomDimensionExceptionTest2() throws Exception { + public void deleteDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.archiveCustomDimension(name); + DisplayVideo360AdvertiserLinkName name = + DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]"); + client.deleteDisplayVideo360AdvertiserLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4633,27 +4640,20 @@ public void archiveCustomDimensionExceptionTest2() throws Exception { } @Test - public void getCustomDimensionTest() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) - .build(); + public void deleteDisplayVideo360AdvertiserLinkTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); mockAnalyticsAdminService.addResponse(expectedResponse); - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]"); + String name = "name3373707"; - CustomDimension actualResponse = client.getCustomDimension(name); - Assert.assertEquals(expectedResponse, actualResponse); + client.deleteDisplayVideo360AdvertiserLink(name); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetCustomDimensionRequest actualRequest = ((GetCustomDimensionRequest) actualRequests.get(0)); + DeleteDisplayVideo360AdvertiserLinkRequest actualRequest = + ((DeleteDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); - Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertEquals(name, actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4661,13 +4661,13 @@ public void getCustomDimensionTest() throws Exception { } @Test - public void getCustomDimensionExceptionTest() throws Exception { + public void deleteDisplayVideo360AdvertiserLinkExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - CustomDimensionName name = CustomDimensionName.of("[PROPERTY]"); - client.getCustomDimension(name); + String name = "name3373707"; + client.deleteDisplayVideo360AdvertiserLink(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4675,27 +4675,37 @@ public void getCustomDimensionExceptionTest() throws Exception { } @Test - public void getCustomDimensionTest2() throws Exception { - CustomDimension expectedResponse = - CustomDimension.newBuilder() - .setName(CustomDimensionName.of("[PROPERTY]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") - .setDisallowAdsPersonalization(true) + public void updateDisplayVideo360AdvertiserLinkTest() throws Exception { + DisplayVideo360AdvertiserLink expectedResponse = + DisplayVideo360AdvertiserLink.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - String name = "name3373707"; + DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = + DisplayVideo360AdvertiserLink.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); - CustomDimension actualResponse = client.getCustomDimension(name); + DisplayVideo360AdvertiserLink actualResponse = + client.updateDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink, updateMask); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - GetCustomDimensionRequest actualRequest = ((GetCustomDimensionRequest) actualRequests.get(0)); + UpdateDisplayVideo360AdvertiserLinkRequest actualRequest = + ((UpdateDisplayVideo360AdvertiserLinkRequest) actualRequests.get(0)); - Assert.assertEquals(name, actualRequest.getName()); + Assert.assertEquals( + displayVideo360AdvertiserLink, actualRequest.getDisplayVideo360AdvertiserLink()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4703,13 +4713,15 @@ public void getCustomDimensionTest2() throws Exception { } @Test - public void getCustomDimensionExceptionTest2() throws Exception { + public void updateDisplayVideo360AdvertiserLinkExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - String name = "name3373707"; - client.getCustomDimension(name); + DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink = + DisplayVideo360AdvertiserLink.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink, updateMask); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -4717,28 +4729,37 @@ public void getCustomDimensionExceptionTest2() throws Exception { } @Test - public void createCustomMetricTest() throws Exception { - CustomMetric expectedResponse = - CustomMetric.newBuilder() - .setName(CustomMetricName.of("[PROPERTY]").toString()) - .setParameterName("parameterName-379607596") - .setDisplayName("displayName1714148973") - .setDescription("description-1724546052") + public void getDisplayVideo360AdvertiserLinkProposalTest() throws Exception { + DisplayVideo360AdvertiserLinkProposal expectedResponse = + DisplayVideo360AdvertiserLinkProposal.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setValidationEmail("validationEmail-94407005") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomMetric customMetric = CustomMetric.newBuilder().build(); + DisplayVideo360AdvertiserLinkProposalName name = + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); - CustomMetric actualResponse = client.createCustomMetric(parent, customMetric); + DisplayVideo360AdvertiserLinkProposal actualResponse = + client.getDisplayVideo360AdvertiserLinkProposal(name); Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - CreateCustomMetricRequest actualRequest = ((CreateCustomMetricRequest) actualRequests.get(0)); + GetDisplayVideo360AdvertiserLinkProposalRequest actualRequest = + ((GetDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(customMetric, actualRequest.getCustomMetric()); + Assert.assertEquals(name.toString(), actualRequest.getName()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -4746,14 +4767,895 @@ public void createCustomMetricTest() throws Exception { } @Test - public void createCustomMetricExceptionTest() throws Exception { + public void getDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - CustomMetric customMetric = CustomMetric.newBuilder().build(); - client.createCustomMetric(parent, customMetric); + DisplayVideo360AdvertiserLinkProposalName name = + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); + client.getDisplayVideo360AdvertiserLinkProposal(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDisplayVideo360AdvertiserLinkProposalTest2() throws Exception { + DisplayVideo360AdvertiserLinkProposal expectedResponse = + DisplayVideo360AdvertiserLinkProposal.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setValidationEmail("validationEmail-94407005") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + DisplayVideo360AdvertiserLinkProposal actualResponse = + client.getDisplayVideo360AdvertiserLinkProposal(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDisplayVideo360AdvertiserLinkProposalRequest actualRequest = + ((GetDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getDisplayVideo360AdvertiserLinkProposal(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDisplayVideo360AdvertiserLinkProposalsTest() throws Exception { + DisplayVideo360AdvertiserLinkProposal responsesElement = + DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); + ListDisplayVideo360AdvertiserLinkProposalsResponse expectedResponse = + ListDisplayVideo360AdvertiserLinkProposalsResponse.newBuilder() + .setNextPageToken("") + .addAllDisplayVideo360AdvertiserLinkProposals(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + + ListDisplayVideo360AdvertiserLinkProposalsPagedResponse pagedListResponse = + client.listDisplayVideo360AdvertiserLinkProposals(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getDisplayVideo360AdvertiserLinkProposalsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDisplayVideo360AdvertiserLinkProposalsRequest actualRequest = + ((ListDisplayVideo360AdvertiserLinkProposalsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDisplayVideo360AdvertiserLinkProposalsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listDisplayVideo360AdvertiserLinkProposals(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listDisplayVideo360AdvertiserLinkProposalsTest2() throws Exception { + DisplayVideo360AdvertiserLinkProposal responsesElement = + DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); + ListDisplayVideo360AdvertiserLinkProposalsResponse expectedResponse = + ListDisplayVideo360AdvertiserLinkProposalsResponse.newBuilder() + .setNextPageToken("") + .addAllDisplayVideo360AdvertiserLinkProposals(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListDisplayVideo360AdvertiserLinkProposalsPagedResponse pagedListResponse = + client.listDisplayVideo360AdvertiserLinkProposals(parent); + + List resources = + Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getDisplayVideo360AdvertiserLinkProposalsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListDisplayVideo360AdvertiserLinkProposalsRequest actualRequest = + ((ListDisplayVideo360AdvertiserLinkProposalsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listDisplayVideo360AdvertiserLinkProposalsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listDisplayVideo360AdvertiserLinkProposals(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDisplayVideo360AdvertiserLinkProposalTest() throws Exception { + DisplayVideo360AdvertiserLinkProposal expectedResponse = + DisplayVideo360AdvertiserLinkProposal.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setValidationEmail("validationEmail-94407005") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = + DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); + + DisplayVideo360AdvertiserLinkProposal actualResponse = + client.createDisplayVideo360AdvertiserLinkProposal( + parent, displayVideo360AdvertiserLinkProposal); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDisplayVideo360AdvertiserLinkProposalRequest actualRequest = + ((CreateDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals( + displayVideo360AdvertiserLinkProposal, + actualRequest.getDisplayVideo360AdvertiserLinkProposal()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = + DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); + client.createDisplayVideo360AdvertiserLinkProposal( + parent, displayVideo360AdvertiserLinkProposal); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createDisplayVideo360AdvertiserLinkProposalTest2() throws Exception { + DisplayVideo360AdvertiserLinkProposal expectedResponse = + DisplayVideo360AdvertiserLinkProposal.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setValidationEmail("validationEmail-94407005") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = + DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); + + DisplayVideo360AdvertiserLinkProposal actualResponse = + client.createDisplayVideo360AdvertiserLinkProposal( + parent, displayVideo360AdvertiserLinkProposal); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateDisplayVideo360AdvertiserLinkProposalRequest actualRequest = + ((CreateDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals( + displayVideo360AdvertiserLinkProposal, + actualRequest.getDisplayVideo360AdvertiserLinkProposal()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal = + DisplayVideo360AdvertiserLinkProposal.newBuilder().build(); + client.createDisplayVideo360AdvertiserLinkProposal( + parent, displayVideo360AdvertiserLinkProposal); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDisplayVideo360AdvertiserLinkProposalTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + DisplayVideo360AdvertiserLinkProposalName name = + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); + + client.deleteDisplayVideo360AdvertiserLinkProposal(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDisplayVideo360AdvertiserLinkProposalRequest actualRequest = + ((DeleteDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + DisplayVideo360AdvertiserLinkProposalName name = + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]"); + client.deleteDisplayVideo360AdvertiserLinkProposal(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteDisplayVideo360AdvertiserLinkProposalTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteDisplayVideo360AdvertiserLinkProposal(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteDisplayVideo360AdvertiserLinkProposalRequest actualRequest = + ((DeleteDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteDisplayVideo360AdvertiserLinkProposalExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.deleteDisplayVideo360AdvertiserLinkProposal(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void approveDisplayVideo360AdvertiserLinkProposalTest() throws Exception { + ApproveDisplayVideo360AdvertiserLinkProposalResponse expectedResponse = + ApproveDisplayVideo360AdvertiserLinkProposalResponse.newBuilder() + .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + ApproveDisplayVideo360AdvertiserLinkProposalRequest request = + ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .build(); + + ApproveDisplayVideo360AdvertiserLinkProposalResponse actualResponse = + client.approveDisplayVideo360AdvertiserLinkProposal(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ApproveDisplayVideo360AdvertiserLinkProposalRequest actualRequest = + ((ApproveDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void approveDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + ApproveDisplayVideo360AdvertiserLinkProposalRequest request = + ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .build(); + client.approveDisplayVideo360AdvertiserLinkProposal(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void cancelDisplayVideo360AdvertiserLinkProposalTest() throws Exception { + DisplayVideo360AdvertiserLinkProposal expectedResponse = + DisplayVideo360AdvertiserLinkProposal.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .setAdvertiserId("advertiserId550061990") + .setLinkProposalStatusDetails(LinkProposalStatusDetails.newBuilder().build()) + .setAdvertiserDisplayName("advertiserDisplayName1594116162") + .setValidationEmail("validationEmail-94407005") + .setAdsPersonalizationEnabled(BoolValue.newBuilder().build()) + .setCampaignDataSharingEnabled(BoolValue.newBuilder().build()) + .setCostDataSharingEnabled(BoolValue.newBuilder().build()) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + CancelDisplayVideo360AdvertiserLinkProposalRequest request = + CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .build(); + + DisplayVideo360AdvertiserLinkProposal actualResponse = + client.cancelDisplayVideo360AdvertiserLinkProposal(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CancelDisplayVideo360AdvertiserLinkProposalRequest actualRequest = + ((CancelDisplayVideo360AdvertiserLinkProposalRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void cancelDisplayVideo360AdvertiserLinkProposalExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + CancelDisplayVideo360AdvertiserLinkProposalRequest request = + CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + .setName( + DisplayVideo360AdvertiserLinkProposalName.of( + "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]") + .toString()) + .build(); + client.cancelDisplayVideo360AdvertiserLinkProposal(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCustomDimensionTest() throws Exception { + CustomDimension expectedResponse = + CustomDimension.newBuilder() + .setName(CustomDimensionName.of("[PROPERTY]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDisallowAdsPersonalization(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + CustomDimension customDimension = CustomDimension.newBuilder().build(); + + CustomDimension actualResponse = client.createCustomDimension(parent, customDimension); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCustomDimensionRequest actualRequest = + ((CreateCustomDimensionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(customDimension, actualRequest.getCustomDimension()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCustomDimensionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + CustomDimension customDimension = CustomDimension.newBuilder().build(); + client.createCustomDimension(parent, customDimension); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCustomDimensionTest2() throws Exception { + CustomDimension expectedResponse = + CustomDimension.newBuilder() + .setName(CustomDimensionName.of("[PROPERTY]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDisallowAdsPersonalization(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + CustomDimension customDimension = CustomDimension.newBuilder().build(); + + CustomDimension actualResponse = client.createCustomDimension(parent, customDimension); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCustomDimensionRequest actualRequest = + ((CreateCustomDimensionRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(customDimension, actualRequest.getCustomDimension()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCustomDimensionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + CustomDimension customDimension = CustomDimension.newBuilder().build(); + client.createCustomDimension(parent, customDimension); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCustomDimensionTest() throws Exception { + CustomDimension expectedResponse = + CustomDimension.newBuilder() + .setName(CustomDimensionName.of("[PROPERTY]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDisallowAdsPersonalization(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + CustomDimension customDimension = CustomDimension.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CustomDimension actualResponse = client.updateCustomDimension(customDimension, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateCustomDimensionRequest actualRequest = + ((UpdateCustomDimensionRequest) actualRequests.get(0)); + + Assert.assertEquals(customDimension, actualRequest.getCustomDimension()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateCustomDimensionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + CustomDimension customDimension = CustomDimension.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCustomDimension(customDimension, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCustomDimensionsTest() throws Exception { + CustomDimension responsesElement = CustomDimension.newBuilder().build(); + ListCustomDimensionsResponse expectedResponse = + ListCustomDimensionsResponse.newBuilder() + .setNextPageToken("") + .addAllCustomDimensions(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + + ListCustomDimensionsPagedResponse pagedListResponse = client.listCustomDimensions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCustomDimensionsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCustomDimensionsRequest actualRequest = + ((ListCustomDimensionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCustomDimensionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listCustomDimensions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCustomDimensionsTest2() throws Exception { + CustomDimension responsesElement = CustomDimension.newBuilder().build(); + ListCustomDimensionsResponse expectedResponse = + ListCustomDimensionsResponse.newBuilder() + .setNextPageToken("") + .addAllCustomDimensions(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListCustomDimensionsPagedResponse pagedListResponse = client.listCustomDimensions(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCustomDimensionsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCustomDimensionsRequest actualRequest = + ((ListCustomDimensionsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCustomDimensionsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listCustomDimensions(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void archiveCustomDimensionTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + CustomDimensionName name = CustomDimensionName.of("[PROPERTY]"); + + client.archiveCustomDimension(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ArchiveCustomDimensionRequest actualRequest = + ((ArchiveCustomDimensionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void archiveCustomDimensionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + CustomDimensionName name = CustomDimensionName.of("[PROPERTY]"); + client.archiveCustomDimension(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void archiveCustomDimensionTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.archiveCustomDimension(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ArchiveCustomDimensionRequest actualRequest = + ((ArchiveCustomDimensionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void archiveCustomDimensionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.archiveCustomDimension(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCustomDimensionTest() throws Exception { + CustomDimension expectedResponse = + CustomDimension.newBuilder() + .setName(CustomDimensionName.of("[PROPERTY]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDisallowAdsPersonalization(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + CustomDimensionName name = CustomDimensionName.of("[PROPERTY]"); + + CustomDimension actualResponse = client.getCustomDimension(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCustomDimensionRequest actualRequest = ((GetCustomDimensionRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCustomDimensionExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + CustomDimensionName name = CustomDimensionName.of("[PROPERTY]"); + client.getCustomDimension(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCustomDimensionTest2() throws Exception { + CustomDimension expectedResponse = + CustomDimension.newBuilder() + .setName(CustomDimensionName.of("[PROPERTY]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .setDisallowAdsPersonalization(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + CustomDimension actualResponse = client.getCustomDimension(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCustomDimensionRequest actualRequest = ((GetCustomDimensionRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCustomDimensionExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getCustomDimension(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCustomMetricTest() throws Exception { + CustomMetric expectedResponse = + CustomMetric.newBuilder() + .setName(CustomMetricName.of("[PROPERTY]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + CustomMetric customMetric = CustomMetric.newBuilder().build(); + + CustomMetric actualResponse = client.createCustomMetric(parent, customMetric); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCustomMetricRequest actualRequest = ((CreateCustomMetricRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(customMetric, actualRequest.getCustomMetric()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCustomMetricExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + CustomMetric customMetric = CustomMetric.newBuilder().build(); + client.createCustomMetric(parent, customMetric); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { // Expected exception. @@ -5085,4 +5987,128 @@ public void getCustomMetricExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void getDataRetentionSettingsTest() throws Exception { + DataRetentionSettings expectedResponse = + DataRetentionSettings.newBuilder() + .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) + .setResetUserDataOnNewActivity(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]"); + + DataRetentionSettings actualResponse = client.getDataRetentionSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDataRetentionSettingsRequest actualRequest = + ((GetDataRetentionSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDataRetentionSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + DataRetentionSettingsName name = DataRetentionSettingsName.of("[PROPERTY]"); + client.getDataRetentionSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getDataRetentionSettingsTest2() throws Exception { + DataRetentionSettings expectedResponse = + DataRetentionSettings.newBuilder() + .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) + .setResetUserDataOnNewActivity(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + DataRetentionSettings actualResponse = client.getDataRetentionSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetDataRetentionSettingsRequest actualRequest = + ((GetDataRetentionSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getDataRetentionSettingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getDataRetentionSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateDataRetentionSettingsTest() throws Exception { + DataRetentionSettings expectedResponse = + DataRetentionSettings.newBuilder() + .setName(DataRetentionSettingsName.of("[PROPERTY]").toString()) + .setResetUserDataOnNewActivity(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + DataRetentionSettings dataRetentionSettings = DataRetentionSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + DataRetentionSettings actualResponse = + client.updateDataRetentionSettings(dataRetentionSettings, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateDataRetentionSettingsRequest actualRequest = + ((UpdateDataRetentionSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(dataRetentionSettings, actualRequest.getDataRetentionSettings()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateDataRetentionSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + DataRetentionSettings dataRetentionSettings = DataRetentionSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateDataRetentionSettings(dataRetentionSettings, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java index 4e8e6f25..2f7bf6eb 100644 --- a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java +++ b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java @@ -844,27 +844,6 @@ public void createFirebaseLink( } } - @Override - public void updateFirebaseLink( - UpdateFirebaseLinkRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof FirebaseLink) { - requests.add(request); - responseObserver.onNext(((FirebaseLink) 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 UpdateFirebaseLink, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - FirebaseLink.class.getName(), - Exception.class.getName()))); - } - } - @Override public void deleteFirebaseLink( DeleteFirebaseLinkRequest request, StreamObserver responseObserver) { @@ -1295,6 +1274,247 @@ public void listConversionEvents( } } + @Override + public void getDisplayVideo360AdvertiserLink( + GetDisplayVideo360AdvertiserLinkRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DisplayVideo360AdvertiserLink) { + requests.add(request); + responseObserver.onNext(((DisplayVideo360AdvertiserLink) 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 GetDisplayVideo360AdvertiserLink, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DisplayVideo360AdvertiserLink.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDisplayVideo360AdvertiserLinks( + ListDisplayVideo360AdvertiserLinksRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDisplayVideo360AdvertiserLinksResponse) { + requests.add(request); + responseObserver.onNext(((ListDisplayVideo360AdvertiserLinksResponse) 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 ListDisplayVideo360AdvertiserLinks, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDisplayVideo360AdvertiserLinksResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createDisplayVideo360AdvertiserLink( + CreateDisplayVideo360AdvertiserLinkRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DisplayVideo360AdvertiserLink) { + requests.add(request); + responseObserver.onNext(((DisplayVideo360AdvertiserLink) 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 CreateDisplayVideo360AdvertiserLink, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DisplayVideo360AdvertiserLink.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteDisplayVideo360AdvertiserLink( + DeleteDisplayVideo360AdvertiserLinkRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteDisplayVideo360AdvertiserLink, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateDisplayVideo360AdvertiserLink( + UpdateDisplayVideo360AdvertiserLinkRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DisplayVideo360AdvertiserLink) { + requests.add(request); + responseObserver.onNext(((DisplayVideo360AdvertiserLink) 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 UpdateDisplayVideo360AdvertiserLink, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DisplayVideo360AdvertiserLink.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getDisplayVideo360AdvertiserLinkProposal( + GetDisplayVideo360AdvertiserLinkProposalRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DisplayVideo360AdvertiserLinkProposal) { + requests.add(request); + responseObserver.onNext(((DisplayVideo360AdvertiserLinkProposal) 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 GetDisplayVideo360AdvertiserLinkProposal, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DisplayVideo360AdvertiserLinkProposal.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listDisplayVideo360AdvertiserLinkProposals( + ListDisplayVideo360AdvertiserLinkProposalsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListDisplayVideo360AdvertiserLinkProposalsResponse) { + requests.add(request); + responseObserver.onNext(((ListDisplayVideo360AdvertiserLinkProposalsResponse) 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 ListDisplayVideo360AdvertiserLinkProposals, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListDisplayVideo360AdvertiserLinkProposalsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createDisplayVideo360AdvertiserLinkProposal( + CreateDisplayVideo360AdvertiserLinkProposalRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DisplayVideo360AdvertiserLinkProposal) { + requests.add(request); + responseObserver.onNext(((DisplayVideo360AdvertiserLinkProposal) 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 CreateDisplayVideo360AdvertiserLinkProposal, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DisplayVideo360AdvertiserLinkProposal.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteDisplayVideo360AdvertiserLinkProposal( + DeleteDisplayVideo360AdvertiserLinkProposalRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Empty) { + requests.add(request); + responseObserver.onNext(((Empty) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method DeleteDisplayVideo360AdvertiserLinkProposal, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void approveDisplayVideo360AdvertiserLinkProposal( + ApproveDisplayVideo360AdvertiserLinkProposalRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ApproveDisplayVideo360AdvertiserLinkProposalResponse) { + requests.add(request); + responseObserver.onNext(((ApproveDisplayVideo360AdvertiserLinkProposalResponse) 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 ApproveDisplayVideo360AdvertiserLinkProposal, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ApproveDisplayVideo360AdvertiserLinkProposalResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void cancelDisplayVideo360AdvertiserLinkProposal( + CancelDisplayVideo360AdvertiserLinkProposalRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DisplayVideo360AdvertiserLinkProposal) { + requests.add(request); + responseObserver.onNext(((DisplayVideo360AdvertiserLinkProposal) 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 CancelDisplayVideo360AdvertiserLinkProposal, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DisplayVideo360AdvertiserLinkProposal.class.getName(), + Exception.class.getName()))); + } + } + @Override public void createCustomDimension( CreateCustomDimensionRequest request, StreamObserver responseObserver) { @@ -1506,4 +1726,48 @@ public void getCustomMetric( Exception.class.getName()))); } } + + @Override + public void getDataRetentionSettings( + GetDataRetentionSettingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DataRetentionSettings) { + requests.add(request); + responseObserver.onNext(((DataRetentionSettings) 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 GetDataRetentionSettings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DataRetentionSettings.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateDataRetentionSettings( + UpdateDataRetentionSettingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof DataRetentionSettings) { + requests.add(request); + responseObserver.onNext(((DataRetentionSettings) 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 UpdateDataRetentionSettings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + DataRetentionSettings.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/grpc-google-analytics-admin-v1alpha/clirr-ignored-differences.xml b/grpc-google-analytics-admin-v1alpha/clirr-ignored-differences.xml new file mode 100644 index 00000000..0bd27bc4 --- /dev/null +++ b/grpc-google-analytics-admin-v1alpha/clirr-ignored-differences.xml @@ -0,0 +1,14 @@ + + + + + 7002 + com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc$AnalyticsAdminService* + * *FirebaseLink*(*) + + + 7002 + com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc + * getUpdateFirebaseLinkMethod(*) + + \ No newline at end of file diff --git a/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java b/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java index 23a55f59..2aa792cf 100644 --- a/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java +++ b/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java @@ -1842,54 +1842,6 @@ private AnalyticsAdminServiceGrpc() {} return getCreateFirebaseLinkMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest, - com.google.analytics.admin.v1alpha.FirebaseLink> - getUpdateFirebaseLinkMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateFirebaseLink", - requestType = com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.class, - responseType = com.google.analytics.admin.v1alpha.FirebaseLink.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest, - com.google.analytics.admin.v1alpha.FirebaseLink> - getUpdateFirebaseLinkMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest, - com.google.analytics.admin.v1alpha.FirebaseLink> - getUpdateFirebaseLinkMethod; - if ((getUpdateFirebaseLinkMethod = AnalyticsAdminServiceGrpc.getUpdateFirebaseLinkMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateFirebaseLinkMethod = AnalyticsAdminServiceGrpc.getUpdateFirebaseLinkMethod) - == null) { - AnalyticsAdminServiceGrpc.getUpdateFirebaseLinkMethod = - getUpdateFirebaseLinkMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFirebaseLink")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateFirebaseLink")) - .build(); - } - } - } - return getUpdateFirebaseLinkMethod; - } - private static volatile io.grpc.MethodDescriptor< com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest, com.google.protobuf.Empty> getDeleteFirebaseLinkMethod; @@ -2909,409 +2861,1042 @@ private AnalyticsAdminServiceGrpc() {} } private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest, - com.google.analytics.admin.v1alpha.CustomDimension> - getCreateCustomDimensionMethod; + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + getGetDisplayVideo360AdvertiserLinkMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCustomDimension", - requestType = com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.class, - responseType = com.google.analytics.admin.v1alpha.CustomDimension.class, + fullMethodName = SERVICE_NAME + '/' + "GetDisplayVideo360AdvertiserLink", + requestType = + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.class, + responseType = com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest, - com.google.analytics.admin.v1alpha.CustomDimension> - getCreateCustomDimensionMethod() { + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + getGetDisplayVideo360AdvertiserLinkMethod() { io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest, - com.google.analytics.admin.v1alpha.CustomDimension> - getCreateCustomDimensionMethod; - if ((getCreateCustomDimensionMethod = AnalyticsAdminServiceGrpc.getCreateCustomDimensionMethod) + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + getGetDisplayVideo360AdvertiserLinkMethod; + if ((getGetDisplayVideo360AdvertiserLinkMethod = + AnalyticsAdminServiceGrpc.getGetDisplayVideo360AdvertiserLinkMethod) == null) { synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateCustomDimensionMethod = - AnalyticsAdminServiceGrpc.getCreateCustomDimensionMethod) + if ((getGetDisplayVideo360AdvertiserLinkMethod = + AnalyticsAdminServiceGrpc.getGetDisplayVideo360AdvertiserLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateCustomDimensionMethod = - getCreateCustomDimensionMethod = + AnalyticsAdminServiceGrpc.getGetDisplayVideo360AdvertiserLinkMethod = + getGetDisplayVideo360AdvertiserLinkMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateCustomDimension")) + generateFullMethodName(SERVICE_NAME, "GetDisplayVideo360AdvertiserLink")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest - .getDefaultInstance())) + com.google.analytics.admin.v1alpha + .GetDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CustomDimension + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink .getDefaultInstance())) .setSchemaDescriptor( new AnalyticsAdminServiceMethodDescriptorSupplier( - "CreateCustomDimension")) + "GetDisplayVideo360AdvertiserLink")) .build(); } } } - return getCreateCustomDimensionMethod; + return getGetDisplayVideo360AdvertiserLinkMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, - com.google.analytics.admin.v1alpha.CustomDimension> - getUpdateCustomDimensionMethod; + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse> + getListDisplayVideo360AdvertiserLinksMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCustomDimension", - requestType = com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.class, - responseType = com.google.analytics.admin.v1alpha.CustomDimension.class, + fullMethodName = SERVICE_NAME + '/' + "ListDisplayVideo360AdvertiserLinks", + requestType = + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.class, + responseType = + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, - com.google.analytics.admin.v1alpha.CustomDimension> - getUpdateCustomDimensionMethod() { + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse> + getListDisplayVideo360AdvertiserLinksMethod() { io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, - com.google.analytics.admin.v1alpha.CustomDimension> - getUpdateCustomDimensionMethod; - if ((getUpdateCustomDimensionMethod = AnalyticsAdminServiceGrpc.getUpdateCustomDimensionMethod) + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse> + getListDisplayVideo360AdvertiserLinksMethod; + if ((getListDisplayVideo360AdvertiserLinksMethod = + AnalyticsAdminServiceGrpc.getListDisplayVideo360AdvertiserLinksMethod) == null) { synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateCustomDimensionMethod = - AnalyticsAdminServiceGrpc.getUpdateCustomDimensionMethod) + if ((getListDisplayVideo360AdvertiserLinksMethod = + AnalyticsAdminServiceGrpc.getListDisplayVideo360AdvertiserLinksMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateCustomDimensionMethod = - getUpdateCustomDimensionMethod = + AnalyticsAdminServiceGrpc.getListDisplayVideo360AdvertiserLinksMethod = + getListDisplayVideo360AdvertiserLinksMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "UpdateCustomDimension")) + generateFullMethodName( + SERVICE_NAME, "ListDisplayVideo360AdvertiserLinks")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest - .getDefaultInstance())) + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinksRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CustomDimension - .getDefaultInstance())) + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinksResponse.getDefaultInstance())) .setSchemaDescriptor( new AnalyticsAdminServiceMethodDescriptorSupplier( - "UpdateCustomDimension")) + "ListDisplayVideo360AdvertiserLinks")) .build(); } } } - return getUpdateCustomDimensionMethod; + return getListDisplayVideo360AdvertiserLinksMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest, - com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse> - getListCustomDimensionsMethod; + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + getCreateDisplayVideo360AdvertiserLinkMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCustomDimensions", - requestType = com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.class, + fullMethodName = SERVICE_NAME + '/' + "CreateDisplayVideo360AdvertiserLink", + requestType = + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.class, + responseType = com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest, - com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse> - getListCustomDimensionsMethod() { + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + getCreateDisplayVideo360AdvertiserLinkMethod() { io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest, - com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse> - getListCustomDimensionsMethod; - if ((getListCustomDimensionsMethod = AnalyticsAdminServiceGrpc.getListCustomDimensionsMethod) + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + getCreateDisplayVideo360AdvertiserLinkMethod; + if ((getCreateDisplayVideo360AdvertiserLinkMethod = + AnalyticsAdminServiceGrpc.getCreateDisplayVideo360AdvertiserLinkMethod) == null) { synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListCustomDimensionsMethod = - AnalyticsAdminServiceGrpc.getListCustomDimensionsMethod) + if ((getCreateDisplayVideo360AdvertiserLinkMethod = + AnalyticsAdminServiceGrpc.getCreateDisplayVideo360AdvertiserLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getListCustomDimensionsMethod = - getListCustomDimensionsMethod = + AnalyticsAdminServiceGrpc.getCreateDisplayVideo360AdvertiserLinkMethod = + getCreateDisplayVideo360AdvertiserLinkMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ListCustomDimensions")) + generateFullMethodName( + SERVICE_NAME, "CreateDisplayVideo360AdvertiserLink")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest - .getDefaultInstance())) + com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink .getDefaultInstance())) .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("ListCustomDimensions")) + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateDisplayVideo360AdvertiserLink")) .build(); } } } - return getListCustomDimensionsMethod; + return getCreateDisplayVideo360AdvertiserLinkMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest, com.google.protobuf.Empty> - getArchiveCustomDimensionMethod; + getDeleteDisplayVideo360AdvertiserLinkMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ArchiveCustomDimension", - requestType = com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.class, + fullMethodName = SERVICE_NAME + '/' + "DeleteDisplayVideo360AdvertiserLink", + requestType = + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest, com.google.protobuf.Empty> - getArchiveCustomDimensionMethod() { + getDeleteDisplayVideo360AdvertiserLinkMethod() { io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest, com.google.protobuf.Empty> - getArchiveCustomDimensionMethod; - if ((getArchiveCustomDimensionMethod = - AnalyticsAdminServiceGrpc.getArchiveCustomDimensionMethod) + getDeleteDisplayVideo360AdvertiserLinkMethod; + if ((getDeleteDisplayVideo360AdvertiserLinkMethod = + AnalyticsAdminServiceGrpc.getDeleteDisplayVideo360AdvertiserLinkMethod) == null) { synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getArchiveCustomDimensionMethod = - AnalyticsAdminServiceGrpc.getArchiveCustomDimensionMethod) + if ((getDeleteDisplayVideo360AdvertiserLinkMethod = + AnalyticsAdminServiceGrpc.getDeleteDisplayVideo360AdvertiserLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getArchiveCustomDimensionMethod = - getArchiveCustomDimensionMethod = + AnalyticsAdminServiceGrpc.getDeleteDisplayVideo360AdvertiserLinkMethod = + getDeleteDisplayVideo360AdvertiserLinkMethod = io.grpc.MethodDescriptor - . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "ArchiveCustomDimension")) + generateFullMethodName( + SERVICE_NAME, "DeleteDisplayVideo360AdvertiserLink")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest - .getDefaultInstance())) + com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( com.google.protobuf.Empty.getDefaultInstance())) .setSchemaDescriptor( new AnalyticsAdminServiceMethodDescriptorSupplier( - "ArchiveCustomDimension")) + "DeleteDisplayVideo360AdvertiserLink")) .build(); } } } - return getArchiveCustomDimensionMethod; + return getDeleteDisplayVideo360AdvertiserLinkMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.GetCustomDimensionRequest, - com.google.analytics.admin.v1alpha.CustomDimension> - getGetCustomDimensionMethod; + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + getUpdateDisplayVideo360AdvertiserLinkMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetCustomDimension", - requestType = com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.class, - responseType = com.google.analytics.admin.v1alpha.CustomDimension.class, + fullMethodName = SERVICE_NAME + '/' + "UpdateDisplayVideo360AdvertiserLink", + requestType = + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.class, + responseType = com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.GetCustomDimensionRequest, - com.google.analytics.admin.v1alpha.CustomDimension> - getGetCustomDimensionMethod() { + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + getUpdateDisplayVideo360AdvertiserLinkMethod() { io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.GetCustomDimensionRequest, - com.google.analytics.admin.v1alpha.CustomDimension> - getGetCustomDimensionMethod; - if ((getGetCustomDimensionMethod = AnalyticsAdminServiceGrpc.getGetCustomDimensionMethod) + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + getUpdateDisplayVideo360AdvertiserLinkMethod; + if ((getUpdateDisplayVideo360AdvertiserLinkMethod = + AnalyticsAdminServiceGrpc.getUpdateDisplayVideo360AdvertiserLinkMethod) == null) { synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getGetCustomDimensionMethod = AnalyticsAdminServiceGrpc.getGetCustomDimensionMethod) + if ((getUpdateDisplayVideo360AdvertiserLinkMethod = + AnalyticsAdminServiceGrpc.getUpdateDisplayVideo360AdvertiserLinkMethod) == null) { - AnalyticsAdminServiceGrpc.getGetCustomDimensionMethod = - getGetCustomDimensionMethod = + AnalyticsAdminServiceGrpc.getUpdateDisplayVideo360AdvertiserLinkMethod = + getUpdateDisplayVideo360AdvertiserLinkMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomDimension")) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "UpdateDisplayVideo360AdvertiserLink")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.GetCustomDimensionRequest - .getDefaultInstance())) + com.google.analytics.admin.v1alpha + .UpdateDisplayVideo360AdvertiserLinkRequest.getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CustomDimension + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink .getDefaultInstance())) .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("GetCustomDimension")) + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateDisplayVideo360AdvertiserLink")) .build(); } } } - return getGetCustomDimensionMethod; + return getUpdateDisplayVideo360AdvertiserLinkMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateCustomMetricRequest, - com.google.analytics.admin.v1alpha.CustomMetric> - getCreateCustomMetricMethod; + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + getGetDisplayVideo360AdvertiserLinkProposalMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateCustomMetric", - requestType = com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.class, - responseType = com.google.analytics.admin.v1alpha.CustomMetric.class, + fullMethodName = SERVICE_NAME + '/' + "GetDisplayVideo360AdvertiserLinkProposal", + requestType = + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.class, + responseType = com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateCustomMetricRequest, - com.google.analytics.admin.v1alpha.CustomMetric> - getCreateCustomMetricMethod() { + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + getGetDisplayVideo360AdvertiserLinkProposalMethod() { io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateCustomMetricRequest, - com.google.analytics.admin.v1alpha.CustomMetric> - getCreateCustomMetricMethod; - if ((getCreateCustomMetricMethod = AnalyticsAdminServiceGrpc.getCreateCustomMetricMethod) + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + getGetDisplayVideo360AdvertiserLinkProposalMethod; + if ((getGetDisplayVideo360AdvertiserLinkProposalMethod = + AnalyticsAdminServiceGrpc.getGetDisplayVideo360AdvertiserLinkProposalMethod) == null) { synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateCustomMetricMethod = AnalyticsAdminServiceGrpc.getCreateCustomMetricMethod) + if ((getGetDisplayVideo360AdvertiserLinkProposalMethod = + AnalyticsAdminServiceGrpc.getGetDisplayVideo360AdvertiserLinkProposalMethod) == null) { - AnalyticsAdminServiceGrpc.getCreateCustomMetricMethod = - getCreateCustomMetricMethod = + AnalyticsAdminServiceGrpc.getGetDisplayVideo360AdvertiserLinkProposalMethod = + getGetDisplayVideo360AdvertiserLinkProposalMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomMetric")) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "GetDisplayVideo360AdvertiserLinkProposal")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateCustomMetricRequest + com.google.analytics.admin.v1alpha + .GetDisplayVideo360AdvertiserLinkProposalRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance())) + com.google.analytics.admin.v1alpha + .DisplayVideo360AdvertiserLinkProposal.getDefaultInstance())) .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("CreateCustomMetric")) + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetDisplayVideo360AdvertiserLinkProposal")) .build(); } } } - return getCreateCustomMetricMethod; + return getGetDisplayVideo360AdvertiserLinkProposalMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest, - com.google.analytics.admin.v1alpha.CustomMetric> - getUpdateCustomMetricMethod; + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse> + getListDisplayVideo360AdvertiserLinkProposalsMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateCustomMetric", - requestType = com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.class, - responseType = com.google.analytics.admin.v1alpha.CustomMetric.class, + fullMethodName = SERVICE_NAME + '/' + "ListDisplayVideo360AdvertiserLinkProposals", + requestType = + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + .class, + responseType = + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + .class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest, - com.google.analytics.admin.v1alpha.CustomMetric> - getUpdateCustomMetricMethod() { + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse> + getListDisplayVideo360AdvertiserLinkProposalsMethod() { io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest, - com.google.analytics.admin.v1alpha.CustomMetric> - getUpdateCustomMetricMethod; - if ((getUpdateCustomMetricMethod = AnalyticsAdminServiceGrpc.getUpdateCustomMetricMethod) + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse> + getListDisplayVideo360AdvertiserLinkProposalsMethod; + if ((getListDisplayVideo360AdvertiserLinkProposalsMethod = + AnalyticsAdminServiceGrpc.getListDisplayVideo360AdvertiserLinkProposalsMethod) == null) { synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getUpdateCustomMetricMethod = AnalyticsAdminServiceGrpc.getUpdateCustomMetricMethod) + if ((getListDisplayVideo360AdvertiserLinkProposalsMethod = + AnalyticsAdminServiceGrpc.getListDisplayVideo360AdvertiserLinkProposalsMethod) == null) { - AnalyticsAdminServiceGrpc.getUpdateCustomMetricMethod = - getUpdateCustomMetricMethod = + AnalyticsAdminServiceGrpc.getListDisplayVideo360AdvertiserLinkProposalsMethod = + getListDisplayVideo360AdvertiserLinkProposalsMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomMetric")) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ListDisplayVideo360AdvertiserLinkProposals")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance())) + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + .getDefaultInstance())) .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateCustomMetric")) + new AnalyticsAdminServiceMethodDescriptorSupplier( + "ListDisplayVideo360AdvertiserLinkProposals")) .build(); } } } - return getUpdateCustomMetricMethod; + return getListDisplayVideo360AdvertiserLinkProposalsMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ListCustomMetricsRequest, - com.google.analytics.admin.v1alpha.ListCustomMetricsResponse> - getListCustomMetricsMethod; + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + getCreateDisplayVideo360AdvertiserLinkProposalMethod; @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListCustomMetrics", - requestType = com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.class, - responseType = com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.class, + fullMethodName = SERVICE_NAME + '/' + "CreateDisplayVideo360AdvertiserLinkProposal", + requestType = + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + .class, + responseType = com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ListCustomMetricsRequest, - com.google.analytics.admin.v1alpha.ListCustomMetricsResponse> - getListCustomMetricsMethod() { + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + getCreateDisplayVideo360AdvertiserLinkProposalMethod() { io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ListCustomMetricsRequest, - com.google.analytics.admin.v1alpha.ListCustomMetricsResponse> - getListCustomMetricsMethod; - if ((getListCustomMetricsMethod = AnalyticsAdminServiceGrpc.getListCustomMetricsMethod) + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + getCreateDisplayVideo360AdvertiserLinkProposalMethod; + if ((getCreateDisplayVideo360AdvertiserLinkProposalMethod = + AnalyticsAdminServiceGrpc.getCreateDisplayVideo360AdvertiserLinkProposalMethod) == null) { synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getListCustomMetricsMethod = AnalyticsAdminServiceGrpc.getListCustomMetricsMethod) + if ((getCreateDisplayVideo360AdvertiserLinkProposalMethod = + AnalyticsAdminServiceGrpc.getCreateDisplayVideo360AdvertiserLinkProposalMethod) == null) { - AnalyticsAdminServiceGrpc.getListCustomMetricsMethod = - getListCustomMetricsMethod = + AnalyticsAdminServiceGrpc.getCreateDisplayVideo360AdvertiserLinkProposalMethod = + getCreateDisplayVideo360AdvertiserLinkProposalMethod = io.grpc.MethodDescriptor - . + . newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCustomMetrics")) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "CreateDisplayVideo360AdvertiserLinkProposal")) .setSampledToLocalTracing(true) .setRequestMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListCustomMetricsRequest + com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.ListCustomMetricsResponse - .getDefaultInstance())) + com.google.analytics.admin.v1alpha + .DisplayVideo360AdvertiserLinkProposal.getDefaultInstance())) .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier("ListCustomMetrics")) + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateDisplayVideo360AdvertiserLinkProposal")) .build(); } } } - return getListCustomMetricsMethod; + return getCreateDisplayVideo360AdvertiserLinkProposalMethod; } private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest, com.google.protobuf.Empty> - getArchiveCustomMetricMethod; + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest, + com.google.protobuf.Empty> + getDeleteDisplayVideo360AdvertiserLinkProposalMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteDisplayVideo360AdvertiserLinkProposal", + requestType = + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + .class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest, + com.google.protobuf.Empty> + getDeleteDisplayVideo360AdvertiserLinkProposalMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest, + com.google.protobuf.Empty> + getDeleteDisplayVideo360AdvertiserLinkProposalMethod; + if ((getDeleteDisplayVideo360AdvertiserLinkProposalMethod = + AnalyticsAdminServiceGrpc.getDeleteDisplayVideo360AdvertiserLinkProposalMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteDisplayVideo360AdvertiserLinkProposalMethod = + AnalyticsAdminServiceGrpc.getDeleteDisplayVideo360AdvertiserLinkProposalMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteDisplayVideo360AdvertiserLinkProposalMethod = + getDeleteDisplayVideo360AdvertiserLinkProposalMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "DeleteDisplayVideo360AdvertiserLinkProposal")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "DeleteDisplayVideo360AdvertiserLinkProposal")) + .build(); + } + } + } + return getDeleteDisplayVideo360AdvertiserLinkProposalMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse> + getApproveDisplayVideo360AdvertiserLinkProposalMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ApproveDisplayVideo360AdvertiserLinkProposal", + requestType = + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + .class, + responseType = + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + .class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse> + getApproveDisplayVideo360AdvertiserLinkProposalMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse> + getApproveDisplayVideo360AdvertiserLinkProposalMethod; + if ((getApproveDisplayVideo360AdvertiserLinkProposalMethod = + AnalyticsAdminServiceGrpc.getApproveDisplayVideo360AdvertiserLinkProposalMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getApproveDisplayVideo360AdvertiserLinkProposalMethod = + AnalyticsAdminServiceGrpc.getApproveDisplayVideo360AdvertiserLinkProposalMethod) + == null) { + AnalyticsAdminServiceGrpc.getApproveDisplayVideo360AdvertiserLinkProposalMethod = + getApproveDisplayVideo360AdvertiserLinkProposalMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "ApproveDisplayVideo360AdvertiserLinkProposal")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "ApproveDisplayVideo360AdvertiserLinkProposal")) + .build(); + } + } + } + return getApproveDisplayVideo360AdvertiserLinkProposalMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + getCancelDisplayVideo360AdvertiserLinkProposalMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CancelDisplayVideo360AdvertiserLinkProposal", + requestType = + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + .class, + responseType = com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + getCancelDisplayVideo360AdvertiserLinkProposalMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + getCancelDisplayVideo360AdvertiserLinkProposalMethod; + if ((getCancelDisplayVideo360AdvertiserLinkProposalMethod = + AnalyticsAdminServiceGrpc.getCancelDisplayVideo360AdvertiserLinkProposalMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCancelDisplayVideo360AdvertiserLinkProposalMethod = + AnalyticsAdminServiceGrpc.getCancelDisplayVideo360AdvertiserLinkProposalMethod) + == null) { + AnalyticsAdminServiceGrpc.getCancelDisplayVideo360AdvertiserLinkProposalMethod = + getCancelDisplayVideo360AdvertiserLinkProposalMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName( + SERVICE_NAME, "CancelDisplayVideo360AdvertiserLinkProposal")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .DisplayVideo360AdvertiserLinkProposal.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CancelDisplayVideo360AdvertiserLinkProposal")) + .build(); + } + } + } + return getCancelDisplayVideo360AdvertiserLinkProposalMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getCreateCustomDimensionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCustomDimension", + requestType = com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.class, + responseType = com.google.analytics.admin.v1alpha.CustomDimension.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getCreateCustomDimensionMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getCreateCustomDimensionMethod; + if ((getCreateCustomDimensionMethod = AnalyticsAdminServiceGrpc.getCreateCustomDimensionMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateCustomDimensionMethod = + AnalyticsAdminServiceGrpc.getCreateCustomDimensionMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateCustomDimensionMethod = + getCreateCustomDimensionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateCustomDimension")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CustomDimension + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateCustomDimension")) + .build(); + } + } + } + return getCreateCustomDimensionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getUpdateCustomDimensionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCustomDimension", + requestType = com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.class, + responseType = com.google.analytics.admin.v1alpha.CustomDimension.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getUpdateCustomDimensionMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getUpdateCustomDimensionMethod; + if ((getUpdateCustomDimensionMethod = AnalyticsAdminServiceGrpc.getUpdateCustomDimensionMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateCustomDimensionMethod = + AnalyticsAdminServiceGrpc.getUpdateCustomDimensionMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateCustomDimensionMethod = + getUpdateCustomDimensionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateCustomDimension")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CustomDimension + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateCustomDimension")) + .build(); + } + } + } + return getUpdateCustomDimensionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest, + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse> + getListCustomDimensionsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCustomDimensions", + requestType = com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest, + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse> + getListCustomDimensionsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest, + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse> + getListCustomDimensionsMethod; + if ((getListCustomDimensionsMethod = AnalyticsAdminServiceGrpc.getListCustomDimensionsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListCustomDimensionsMethod = + AnalyticsAdminServiceGrpc.getListCustomDimensionsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListCustomDimensionsMethod = + getListCustomDimensionsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListCustomDimensions")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListCustomDimensions")) + .build(); + } + } + } + return getListCustomDimensionsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, + com.google.protobuf.Empty> + getArchiveCustomDimensionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ArchiveCustomDimension", + requestType = com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, + com.google.protobuf.Empty> + getArchiveCustomDimensionMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, + com.google.protobuf.Empty> + getArchiveCustomDimensionMethod; + if ((getArchiveCustomDimensionMethod = + AnalyticsAdminServiceGrpc.getArchiveCustomDimensionMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getArchiveCustomDimensionMethod = + AnalyticsAdminServiceGrpc.getArchiveCustomDimensionMethod) + == null) { + AnalyticsAdminServiceGrpc.getArchiveCustomDimensionMethod = + getArchiveCustomDimensionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ArchiveCustomDimension")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "ArchiveCustomDimension")) + .build(); + } + } + } + return getArchiveCustomDimensionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getGetCustomDimensionMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetCustomDimension", + requestType = com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.class, + responseType = com.google.analytics.admin.v1alpha.CustomDimension.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getGetCustomDimensionMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getGetCustomDimensionMethod; + if ((getGetCustomDimensionMethod = AnalyticsAdminServiceGrpc.getGetCustomDimensionMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetCustomDimensionMethod = AnalyticsAdminServiceGrpc.getGetCustomDimensionMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetCustomDimensionMethod = + getGetCustomDimensionMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomDimension")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CustomDimension + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetCustomDimension")) + .build(); + } + } + } + return getGetCustomDimensionMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric> + getCreateCustomMetricMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateCustomMetric", + requestType = com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.class, + responseType = com.google.analytics.admin.v1alpha.CustomMetric.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric> + getCreateCustomMetricMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric> + getCreateCustomMetricMethod; + if ((getCreateCustomMetricMethod = AnalyticsAdminServiceGrpc.getCreateCustomMetricMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateCustomMetricMethod = AnalyticsAdminServiceGrpc.getCreateCustomMetricMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateCustomMetricMethod = + getCreateCustomMetricMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateCustomMetric")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("CreateCustomMetric")) + .build(); + } + } + } + return getCreateCustomMetricMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric> + getUpdateCustomMetricMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateCustomMetric", + requestType = com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.class, + responseType = com.google.analytics.admin.v1alpha.CustomMetric.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric> + getUpdateCustomMetricMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric> + getUpdateCustomMetricMethod; + if ((getUpdateCustomMetricMethod = AnalyticsAdminServiceGrpc.getUpdateCustomMetricMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateCustomMetricMethod = AnalyticsAdminServiceGrpc.getUpdateCustomMetricMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateCustomMetricMethod = + getUpdateCustomMetricMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateCustomMetric")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("UpdateCustomMetric")) + .build(); + } + } + } + return getUpdateCustomMetricMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest, + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse> + getListCustomMetricsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListCustomMetrics", + requestType = com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest, + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse> + getListCustomMetricsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest, + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse> + getListCustomMetricsMethod; + if ((getListCustomMetricsMethod = AnalyticsAdminServiceGrpc.getListCustomMetricsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListCustomMetricsMethod = AnalyticsAdminServiceGrpc.getListCustomMetricsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListCustomMetricsMethod = + getListCustomMetricsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListCustomMetrics")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListCustomMetrics")) + .build(); + } + } + } + return getListCustomMetricsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest, com.google.protobuf.Empty> + getArchiveCustomMetricMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ArchiveCustomMetric", @@ -3403,6 +3988,112 @@ private AnalyticsAdminServiceGrpc() {} return getGetCustomMetricMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRetentionSettings> + getGetDataRetentionSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetDataRetentionSettings", + requestType = com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.DataRetentionSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRetentionSettings> + getGetDataRetentionSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRetentionSettings> + getGetDataRetentionSettingsMethod; + if ((getGetDataRetentionSettingsMethod = + AnalyticsAdminServiceGrpc.getGetDataRetentionSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetDataRetentionSettingsMethod = + AnalyticsAdminServiceGrpc.getGetDataRetentionSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetDataRetentionSettingsMethod = + getGetDataRetentionSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetDataRetentionSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DataRetentionSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetDataRetentionSettings")) + .build(); + } + } + } + return getGetDataRetentionSettingsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRetentionSettings> + getUpdateDataRetentionSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateDataRetentionSettings", + requestType = com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.DataRetentionSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRetentionSettings> + getUpdateDataRetentionSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRetentionSettings> + getUpdateDataRetentionSettingsMethod; + if ((getUpdateDataRetentionSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateDataRetentionSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateDataRetentionSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateDataRetentionSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateDataRetentionSettingsMethod = + getUpdateDataRetentionSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateDataRetentionSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DataRetentionSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateDataRetentionSettings")) + .build(); + } + } + } + return getUpdateDataRetentionSettingsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static AnalyticsAdminServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -4039,21 +4730,6 @@ public void createFirebaseLink( getCreateFirebaseLinkMethod(), responseObserver); } - /** - * - * - *
-     * Updates a FirebaseLink on a property
-     * 
- */ - public void updateFirebaseLink( - com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateFirebaseLinkMethod(), responseObserver); - } - /** * * @@ -4358,6 +5034,196 @@ public void listConversionEvents( getListConversionEventsMethod(), responseObserver); } + /** + * + * + *
+     * Look up a single DisplayVideo360AdvertiserLink
+     * 
+ */ + public void getDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDisplayVideo360AdvertiserLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists all DisplayVideo360AdvertiserLinks on a property.
+     * 
+ */ + public void listDisplayVideo360AdvertiserLinks( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDisplayVideo360AdvertiserLinksMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a DisplayVideo360AdvertiserLink.
+     * This can only be utilized by users who have proper authorization both on
+     * the Google Analytics property and on the Display & Video 360 advertiser.
+     * Users who do not have access to the Display & Video 360 advertiser should
+     * instead seek to create a DisplayVideo360LinkProposal.
+     * 
+ */ + public void createDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDisplayVideo360AdvertiserLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a DisplayVideo360AdvertiserLink on a property.
+     * 
+ */ + public void deleteDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDisplayVideo360AdvertiserLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a DisplayVideo360AdvertiserLink on a property.
+     * 
+ */ + public void updateDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateDisplayVideo360AdvertiserLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
+     * 
+ */ + public void getDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDisplayVideo360AdvertiserLinkProposalMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists DisplayVideo360AdvertiserLinkProposals on a property.
+     * 
+ */ + public void listDisplayVideo360AdvertiserLinkProposals( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListDisplayVideo360AdvertiserLinkProposalsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a DisplayVideo360AdvertiserLinkProposal.
+     * 
+ */ + public void createDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateDisplayVideo360AdvertiserLinkProposalMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a DisplayVideo360AdvertiserLinkProposal on a property.
+     * This can only be used on cancelled proposals.
+     * 
+ */ + public void deleteDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteDisplayVideo360AdvertiserLinkProposalMethod(), responseObserver); + } + + /** + * + * + *
+     * Approves a DisplayVideo360AdvertiserLinkProposal.
+     * The DisplayVideo360AdvertiserLinkProposal will be deleted and a new
+     * DisplayVideo360AdvertiserLink will be created.
+     * 
+ */ + public void approveDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getApproveDisplayVideo360AdvertiserLinkProposalMethod(), responseObserver); + } + + /** + * + * + *
+     * Cancels a DisplayVideo360AdvertiserLinkProposal.
+     * Cancelling can mean either:
+     * - Declining a proposal initiated from Display & Video 360
+     * - Withdrawing a proposal initiated from Google Analytics
+     * After being cancelled, a proposal will eventually be deleted automatically.
+     * 
+ */ + public void cancelDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCancelDisplayVideo360AdvertiserLinkProposalMethod(), responseObserver); + } + /** * * @@ -4488,22 +5354,52 @@ public void archiveCustomMetric( com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getArchiveCustomMetricMethod(), responseObserver); + getArchiveCustomMetricMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single CustomMetric.
+     * 
+ */ + public void getCustomMetric( + com.google.analytics.admin.v1alpha.GetCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCustomMetricMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the singleton data retention settings for this property.
+     * 
+ */ + public void getDataRetentionSettings( + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataRetentionSettingsMethod(), responseObserver); } /** * * *
-     * Lookup for a single CustomMetric.
+     * Updates the singleton data retention settings for this property.
      * 
*/ - public void getCustomMetric( - com.google.analytics.admin.v1alpha.GetCustomMetricRequest request, - io.grpc.stub.StreamObserver + public void updateDataRetentionSettings( + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetCustomMetricMethod(), responseObserver); + getUpdateDataRetentionSettingsMethod(), responseObserver); } @java.lang.Override @@ -4755,13 +5651,6 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest, com.google.analytics.admin.v1alpha.FirebaseLink>( this, METHODID_CREATE_FIREBASE_LINK))) - .addMethod( - getUpdateFirebaseLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest, - com.google.analytics.admin.v1alpha.FirebaseLink>( - this, METHODID_UPDATE_FIREBASE_LINK))) .addMethod( getDeleteFirebaseLinkMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4899,6 +5788,92 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.analytics.admin.v1alpha.ListConversionEventsRequest, com.google.analytics.admin.v1alpha.ListConversionEventsResponse>( this, METHODID_LIST_CONVERSION_EVENTS))) + .addMethod( + getGetDisplayVideo360AdvertiserLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink>( + this, METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK))) + .addMethod( + getListDisplayVideo360AdvertiserLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest, + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinksResponse>( + this, METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINKS))) + .addMethod( + getCreateDisplayVideo360AdvertiserLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink>( + this, METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK))) + .addMethod( + getDeleteDisplayVideo360AdvertiserLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK))) + .addMethod( + getUpdateDisplayVideo360AdvertiserLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink>( + this, METHODID_UPDATE_DISPLAY_VIDEO360ADVERTISER_LINK))) + .addMethod( + getGetDisplayVideo360AdvertiserLinkProposalMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha + .GetDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal>( + this, METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL))) + .addMethod( + getListDisplayVideo360AdvertiserLinkProposalsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsRequest, + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse>( + this, METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSALS))) + .addMethod( + getCreateDisplayVideo360AdvertiserLinkProposalMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal>( + this, METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL))) + .addMethod( + getDeleteDisplayVideo360AdvertiserLinkProposalMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL))) + .addMethod( + getApproveDisplayVideo360AdvertiserLinkProposalMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse>( + this, METHODID_APPROVE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL))) + .addMethod( + getCancelDisplayVideo360AdvertiserLinkProposalMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal>( + this, METHODID_CANCEL_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL))) .addMethod( getCreateCustomDimensionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -4967,6 +5942,20 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.analytics.admin.v1alpha.GetCustomMetricRequest, com.google.analytics.admin.v1alpha.CustomMetric>( this, METHODID_GET_CUSTOM_METRIC))) + .addMethod( + getGetDataRetentionSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRetentionSettings>( + this, METHODID_GET_DATA_RETENTION_SETTINGS))) + .addMethod( + getUpdateDataRetentionSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest, + com.google.analytics.admin.v1alpha.DataRetentionSettings>( + this, METHODID_UPDATE_DATA_RETENTION_SETTINGS))) .build(); } } @@ -5649,23 +6638,6 @@ public void createFirebaseLink( responseObserver); } - /** - * - * - *
-     * Updates a FirebaseLink on a property
-     * 
- */ - public void updateFirebaseLink( - com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateFirebaseLinkMethod(), getCallOptions()), - request, - responseObserver); - } - /** * * @@ -5798,7 +6770,196 @@ public void getDataSharingSettings( io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDataSharingSettingsMethod(), getCallOptions()), + getChannel().newCall(getGetDataSharingSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single "GA4" MeasurementProtocolSecret.
+     * 
+ */ + public void getMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetMeasurementProtocolSecretMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns child MeasurementProtocolSecrets under the specified parent
+     * Property.
+     * 
+ */ + public void listMeasurementProtocolSecrets( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListMeasurementProtocolSecretsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a measurement protocol secret.
+     * 
+ */ + public void createMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateMeasurementProtocolSecretMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes target MeasurementProtocolSecret.
+     * 
+ */ + public void deleteMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteMeasurementProtocolSecretMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a measurement protocol secret.
+     * 
+ */ + public void updateMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateMeasurementProtocolSecretMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Searches through all changes to an account or its children given the
+     * specified set of filters.
+     * 
+ */ + public void searchChangeHistoryEvents( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchChangeHistoryEventsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for Google Signals settings for a property.
+     * 
+ */ + public void getGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGoogleSignalsSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates Google Signals settings for a property.
+     * 
+ */ + public void updateGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateGoogleSignalsSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a conversion event with the specified attributes.
+     * 
+ */ + public void createConversionEvent( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateConversionEventMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Retrieve a single conversion event.
+     * 
+ */ + public void getConversionEvent( + com.google.analytics.admin.v1alpha.GetConversionEventRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetConversionEventMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a conversion event in a property.
+     * 
+ */ + public void deleteConversionEvent( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteConversionEventMethod(), getCallOptions()), request, responseObserver); } @@ -5807,15 +6968,16 @@ public void getDataSharingSettings( * * *
-     * Lookup for a single "GA4" MeasurementProtocolSecret.
+     * Returns a list of conversion events in the specified parent property.
+     * Returns an empty list if no conversion events are found.
      * 
*/ - public void getMeasurementProtocolSecret( - com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest request, - io.grpc.stub.StreamObserver + public void listConversionEvents( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetMeasurementProtocolSecretMethod(), getCallOptions()), + getChannel().newCall(getListConversionEventsMethod(), getCallOptions()), request, responseObserver); } @@ -5824,17 +6986,16 @@ public void getMeasurementProtocolSecret( * * *
-     * Returns child MeasurementProtocolSecrets under the specified parent
-     * Property.
+     * Look up a single DisplayVideo360AdvertiserLink
      * 
*/ - public void listMeasurementProtocolSecrets( - com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest request, + public void getDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest request, io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse> + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListMeasurementProtocolSecretsMethod(), getCallOptions()), + getChannel().newCall(getGetDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), request, responseObserver); } @@ -5843,15 +7004,16 @@ public void listMeasurementProtocolSecrets( * * *
-     * Creates a measurement protocol secret.
+     * Lists all DisplayVideo360AdvertiserLinks on a property.
      * 
*/ - public void createMeasurementProtocolSecret( - com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest request, - io.grpc.stub.StreamObserver + public void listDisplayVideo360AdvertiserLinks( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateMeasurementProtocolSecretMethod(), getCallOptions()), + getChannel().newCall(getListDisplayVideo360AdvertiserLinksMethod(), getCallOptions()), request, responseObserver); } @@ -5860,14 +7022,20 @@ public void createMeasurementProtocolSecret( * * *
-     * Deletes target MeasurementProtocolSecret.
+     * Creates a DisplayVideo360AdvertiserLink.
+     * This can only be utilized by users who have proper authorization both on
+     * the Google Analytics property and on the Display & Video 360 advertiser.
+     * Users who do not have access to the Display & Video 360 advertiser should
+     * instead seek to create a DisplayVideo360LinkProposal.
      * 
*/ - public void deleteMeasurementProtocolSecret( - com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void createDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteMeasurementProtocolSecretMethod(), getCallOptions()), + getChannel().newCall(getCreateDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), request, responseObserver); } @@ -5876,15 +7044,14 @@ public void deleteMeasurementProtocolSecret( * * *
-     * Updates a measurement protocol secret.
+     * Deletes a DisplayVideo360AdvertiserLink on a property.
      * 
*/ - public void updateMeasurementProtocolSecret( - com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void deleteDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateMeasurementProtocolSecretMethod(), getCallOptions()), + getChannel().newCall(getDeleteDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), request, responseObserver); } @@ -5893,17 +7060,16 @@ public void updateMeasurementProtocolSecret( * * *
-     * Searches through all changes to an account or its children given the
-     * specified set of filters.
+     * Updates a DisplayVideo360AdvertiserLink on a property.
      * 
*/ - public void searchChangeHistoryEvents( - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request, + public void updateDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest request, io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSearchChangeHistoryEventsMethod(), getCallOptions()), + getChannel().newCall(getUpdateDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), request, responseObserver); } @@ -5912,15 +7078,17 @@ public void searchChangeHistoryEvents( * * *
-     * Lookup for Google Signals settings for a property.
+     * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
      * 
*/ - public void getGoogleSignalsSettings( - com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest request, - io.grpc.stub.StreamObserver + public void getDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetGoogleSignalsSettingsMethod(), getCallOptions()), + getChannel() + .newCall(getGetDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), request, responseObserver); } @@ -5929,15 +7097,19 @@ public void getGoogleSignalsSettings( * * *
-     * Updates Google Signals settings for a property.
+     * Lists DisplayVideo360AdvertiserLinkProposals on a property.
      * 
*/ - public void updateGoogleSignalsSettings( - com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest request, - io.grpc.stub.StreamObserver + public void listDisplayVideo360AdvertiserLinkProposals( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateGoogleSignalsSettingsMethod(), getCallOptions()), + getChannel() + .newCall(getListDisplayVideo360AdvertiserLinkProposalsMethod(), getCallOptions()), request, responseObserver); } @@ -5946,15 +7118,18 @@ public void updateGoogleSignalsSettings( * * *
-     * Creates a conversion event with the specified attributes.
+     * Creates a DisplayVideo360AdvertiserLinkProposal.
      * 
*/ - public void createConversionEvent( - com.google.analytics.admin.v1alpha.CreateConversionEventRequest request, - io.grpc.stub.StreamObserver + public void createDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateConversionEventMethod(), getCallOptions()), + getChannel() + .newCall(getCreateDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), request, responseObserver); } @@ -5963,15 +7138,17 @@ public void createConversionEvent( * * *
-     * Retrieve a single conversion event.
+     * Deletes a DisplayVideo360AdvertiserLinkProposal on a property.
+     * This can only be used on cancelled proposals.
      * 
*/ - public void getConversionEvent( - com.google.analytics.admin.v1alpha.GetConversionEventRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void deleteDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetConversionEventMethod(), getCallOptions()), + getChannel() + .newCall(getDeleteDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), request, responseObserver); } @@ -5980,14 +7157,21 @@ public void getConversionEvent( * * *
-     * Deletes a conversion event in a property.
+     * Approves a DisplayVideo360AdvertiserLinkProposal.
+     * The DisplayVideo360AdvertiserLinkProposal will be deleted and a new
+     * DisplayVideo360AdvertiserLink will be created.
      * 
*/ - public void deleteConversionEvent( - com.google.analytics.admin.v1alpha.DeleteConversionEventRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void approveDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse> + responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteConversionEventMethod(), getCallOptions()), + getChannel() + .newCall(getApproveDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), request, responseObserver); } @@ -5996,16 +7180,22 @@ public void deleteConversionEvent( * * *
-     * Returns a list of conversion events in the specified parent property.
-     * Returns an empty list if no conversion events are found.
+     * Cancels a DisplayVideo360AdvertiserLinkProposal.
+     * Cancelling can mean either:
+     * - Declining a proposal initiated from Display & Video 360
+     * - Withdrawing a proposal initiated from Google Analytics
+     * After being cancelled, a proposal will eventually be deleted automatically.
      * 
*/ - public void listConversionEvents( - com.google.analytics.admin.v1alpha.ListConversionEventsRequest request, - io.grpc.stub.StreamObserver + public void cancelDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListConversionEventsMethod(), getCallOptions()), + getChannel() + .newCall(getCancelDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), request, responseObserver); } @@ -6177,6 +7367,40 @@ public void getCustomMetric( request, responseObserver); } + + /** + * + * + *
+     * Returns the singleton data retention settings for this property.
+     * 
+ */ + public void getDataRetentionSettings( + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetDataRetentionSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the singleton data retention settings for this property.
+     * 
+ */ + public void updateDataRetentionSettings( + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateDataRetentionSettingsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -6727,19 +7951,6 @@ public com.google.analytics.admin.v1alpha.FirebaseLink createFirebaseLink( getChannel(), getCreateFirebaseLinkMethod(), getCallOptions(), request); } - /** - * - * - *
-     * Updates a FirebaseLink on a property
-     * 
- */ - public com.google.analytics.admin.v1alpha.FirebaseLink updateFirebaseLink( - com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateFirebaseLinkMethod(), getCallOptions(), request); - } - /** * * @@ -6894,121 +8105,308 @@ public com.google.analytics.admin.v1alpha.DataSharingSettings getDataSharingSett * * *
-     * Deletes target MeasurementProtocolSecret.
+     * Deletes target MeasurementProtocolSecret.
+     * 
+ */ + public com.google.protobuf.Empty deleteMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteMeasurementProtocolSecretMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates a measurement protocol secret.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + updateMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateMeasurementProtocolSecretMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Searches through all changes to an account or its children given the
+     * specified set of filters.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + searchChangeHistoryEvents( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchChangeHistoryEventsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lookup for Google Signals settings for a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGoogleSignalsSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates Google Signals settings for a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings updateGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateGoogleSignalsSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a conversion event with the specified attributes.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ConversionEvent createConversionEvent( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateConversionEventMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Retrieve a single conversion event.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent( + com.google.analytics.admin.v1alpha.GetConversionEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetConversionEventMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Deletes a conversion event in a property.
+     * 
+ */ + public com.google.protobuf.Empty deleteConversionEvent( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteConversionEventMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Returns a list of conversion events in the specified parent property.
+     * Returns an empty list if no conversion events are found.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListConversionEventsResponse listConversionEvents( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListConversionEventsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Look up a single DisplayVideo360AdvertiserLink
+     * 
+ */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDisplayVideo360AdvertiserLinkMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Lists all DisplayVideo360AdvertiserLinks on a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + listDisplayVideo360AdvertiserLinks( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListDisplayVideo360AdvertiserLinksMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Creates a DisplayVideo360AdvertiserLink.
+     * This can only be utilized by users who have proper authorization both on
+     * the Google Analytics property and on the Display & Video 360 advertiser.
+     * Users who do not have access to the Display & Video 360 advertiser should
+     * instead seek to create a DisplayVideo360LinkProposal.
      * 
*/ - public com.google.protobuf.Empty deleteMeasurementProtocolSecret( - com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest request) { + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + createDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteMeasurementProtocolSecretMethod(), getCallOptions(), request); + getChannel(), getCreateDisplayVideo360AdvertiserLinkMethod(), getCallOptions(), request); } /** * * *
-     * Updates a measurement protocol secret.
+     * Deletes a DisplayVideo360AdvertiserLink on a property.
      * 
*/ - public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret - updateMeasurementProtocolSecret( - com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest request) { + public com.google.protobuf.Empty deleteDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateMeasurementProtocolSecretMethod(), getCallOptions(), request); + getChannel(), getDeleteDisplayVideo360AdvertiserLinkMethod(), getCallOptions(), request); } /** * * *
-     * Searches through all changes to an account or its children given the
-     * specified set of filters.
+     * Updates a DisplayVideo360AdvertiserLink on a property.
      * 
*/ - public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse - searchChangeHistoryEvents( - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request) { + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + updateDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSearchChangeHistoryEventsMethod(), getCallOptions(), request); + getChannel(), getUpdateDisplayVideo360AdvertiserLinkMethod(), getCallOptions(), request); } /** * * *
-     * Lookup for Google Signals settings for a property.
+     * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
      * 
*/ - public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings( - com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest request) { + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGoogleSignalsSettingsMethod(), getCallOptions(), request); + getChannel(), + getGetDisplayVideo360AdvertiserLinkProposalMethod(), + getCallOptions(), + request); } /** * * *
-     * Updates Google Signals settings for a property.
+     * Lists DisplayVideo360AdvertiserLinkProposals on a property.
      * 
*/ - public com.google.analytics.admin.v1alpha.GoogleSignalsSettings updateGoogleSignalsSettings( - com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest request) { + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + listDisplayVideo360AdvertiserLinkProposals( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateGoogleSignalsSettingsMethod(), getCallOptions(), request); + getChannel(), + getListDisplayVideo360AdvertiserLinkProposalsMethod(), + getCallOptions(), + request); } /** * * *
-     * Creates a conversion event with the specified attributes.
+     * Creates a DisplayVideo360AdvertiserLinkProposal.
      * 
*/ - public com.google.analytics.admin.v1alpha.ConversionEvent createConversionEvent( - com.google.analytics.admin.v1alpha.CreateConversionEventRequest request) { + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + createDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateConversionEventMethod(), getCallOptions(), request); + getChannel(), + getCreateDisplayVideo360AdvertiserLinkProposalMethod(), + getCallOptions(), + request); } /** * * *
-     * Retrieve a single conversion event.
+     * Deletes a DisplayVideo360AdvertiserLinkProposal on a property.
+     * This can only be used on cancelled proposals.
      * 
*/ - public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent( - com.google.analytics.admin.v1alpha.GetConversionEventRequest request) { + public com.google.protobuf.Empty deleteDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetConversionEventMethod(), getCallOptions(), request); + getChannel(), + getDeleteDisplayVideo360AdvertiserLinkProposalMethod(), + getCallOptions(), + request); } /** * * *
-     * Deletes a conversion event in a property.
+     * Approves a DisplayVideo360AdvertiserLinkProposal.
+     * The DisplayVideo360AdvertiserLinkProposal will be deleted and a new
+     * DisplayVideo360AdvertiserLink will be created.
      * 
*/ - public com.google.protobuf.Empty deleteConversionEvent( - com.google.analytics.admin.v1alpha.DeleteConversionEventRequest request) { + public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + approveDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteConversionEventMethod(), getCallOptions(), request); + getChannel(), + getApproveDisplayVideo360AdvertiserLinkProposalMethod(), + getCallOptions(), + request); } /** * * *
-     * Returns a list of conversion events in the specified parent property.
-     * Returns an empty list if no conversion events are found.
+     * Cancels a DisplayVideo360AdvertiserLinkProposal.
+     * Cancelling can mean either:
+     * - Declining a proposal initiated from Display & Video 360
+     * - Withdrawing a proposal initiated from Google Analytics
+     * After being cancelled, a proposal will eventually be deleted automatically.
      * 
*/ - public com.google.analytics.admin.v1alpha.ListConversionEventsResponse listConversionEvents( - com.google.analytics.admin.v1alpha.ListConversionEventsRequest request) { + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + cancelDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListConversionEventsMethod(), getCallOptions(), request); + getChannel(), + getCancelDisplayVideo360AdvertiserLinkProposalMethod(), + getCallOptions(), + request); } /** @@ -7140,6 +8538,32 @@ public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetCustomMetricMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Returns the singleton data retention settings for this property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetentionSettings( + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetDataRetentionSettingsMethod(), getCallOptions(), request); + } + + /** + * + * + *
+     * Updates the singleton data retention settings for this property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.DataRetentionSettings updateDataRetentionSettings( + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateDataRetentionSettingsMethod(), getCallOptions(), request); + } } /** @@ -7734,20 +9158,6 @@ protected AnalyticsAdminServiceFutureStub build( getChannel().newCall(getCreateFirebaseLinkMethod(), getCallOptions()), request); } - /** - * - * - *
-     * Updates a FirebaseLink on a property
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.FirebaseLink> - updateFirebaseLink(com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFirebaseLinkMethod(), getCallOptions()), request); - } - /** * * @@ -8046,6 +9456,203 @@ protected AnalyticsAdminServiceFutureStub build( getChannel().newCall(getListConversionEventsMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Look up a single DisplayVideo360AdvertiserLink
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + getDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Lists all DisplayVideo360AdvertiserLinks on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse> + listDisplayVideo360AdvertiserLinks( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListDisplayVideo360AdvertiserLinksMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Creates a DisplayVideo360AdvertiserLink.
+     * This can only be utilized by users who have proper authorization both on
+     * the Google Analytics property and on the Display & Video 360 advertiser.
+     * Users who do not have access to the Display & Video 360 advertiser should
+     * instead seek to create a DisplayVideo360LinkProposal.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + createDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Deletes a DisplayVideo360AdvertiserLink on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Updates a DisplayVideo360AdvertiserLink on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + updateDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDisplayVideo360AdvertiserLinkMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Lookup for a single DisplayVideo360AdvertiserLinkProposal.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + getDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getGetDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Lists DisplayVideo360AdvertiserLinkProposals on a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse> + listDisplayVideo360AdvertiserLinkProposals( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getListDisplayVideo360AdvertiserLinkProposalsMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Creates a DisplayVideo360AdvertiserLinkProposal.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + createDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getCreateDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Deletes a DisplayVideo360AdvertiserLinkProposal on a property.
+     * This can only be used on cancelled proposals.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + deleteDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getDeleteDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Approves a DisplayVideo360AdvertiserLinkProposal.
+     * The DisplayVideo360AdvertiserLinkProposal will be deleted and a new
+     * DisplayVideo360AdvertiserLink will be created.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse> + approveDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getApproveDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), + request); + } + + /** + * + * + *
+     * Cancels a DisplayVideo360AdvertiserLinkProposal.
+     * Cancelling can mean either:
+     * - Declining a proposal initiated from Display & Video 360
+     * - Withdrawing a proposal initiated from Google Analytics
+     * After being cancelled, a proposal will eventually be deleted automatically.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + cancelDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel() + .newCall(getCancelDisplayVideo360AdvertiserLinkProposalMethod(), getCallOptions()), + request); + } + /** * * @@ -8187,6 +9794,36 @@ protected AnalyticsAdminServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetCustomMetricMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Returns the singleton data retention settings for this property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DataRetentionSettings> + getDataRetentionSettings( + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetDataRetentionSettingsMethod(), getCallOptions()), request); + } + + /** + * + * + *
+     * Updates the singleton data retention settings for this property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.DataRetentionSettings> + updateDataRetentionSettings( + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateDataRetentionSettingsMethod(), getCallOptions()), request); + } } private static final int METHODID_GET_ACCOUNT = 0; @@ -8226,37 +9863,49 @@ protected AnalyticsAdminServiceFutureStub build( private static final int METHODID_GET_ENHANCED_MEASUREMENT_SETTINGS = 34; private static final int METHODID_UPDATE_ENHANCED_MEASUREMENT_SETTINGS = 35; private static final int METHODID_CREATE_FIREBASE_LINK = 36; - private static final int METHODID_UPDATE_FIREBASE_LINK = 37; - private static final int METHODID_DELETE_FIREBASE_LINK = 38; - private static final int METHODID_LIST_FIREBASE_LINKS = 39; - private static final int METHODID_GET_GLOBAL_SITE_TAG = 40; - private static final int METHODID_CREATE_GOOGLE_ADS_LINK = 41; - private static final int METHODID_UPDATE_GOOGLE_ADS_LINK = 42; - private static final int METHODID_DELETE_GOOGLE_ADS_LINK = 43; - private static final int METHODID_LIST_GOOGLE_ADS_LINKS = 44; - private static final int METHODID_GET_DATA_SHARING_SETTINGS = 45; - private static final int METHODID_GET_MEASUREMENT_PROTOCOL_SECRET = 46; - private static final int METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS = 47; - private static final int METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET = 48; - private static final int METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET = 49; - private static final int METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET = 50; - private static final int METHODID_SEARCH_CHANGE_HISTORY_EVENTS = 51; - private static final int METHODID_GET_GOOGLE_SIGNALS_SETTINGS = 52; - private static final int METHODID_UPDATE_GOOGLE_SIGNALS_SETTINGS = 53; - private static final int METHODID_CREATE_CONVERSION_EVENT = 54; - private static final int METHODID_GET_CONVERSION_EVENT = 55; - private static final int METHODID_DELETE_CONVERSION_EVENT = 56; - private static final int METHODID_LIST_CONVERSION_EVENTS = 57; - private static final int METHODID_CREATE_CUSTOM_DIMENSION = 58; - private static final int METHODID_UPDATE_CUSTOM_DIMENSION = 59; - private static final int METHODID_LIST_CUSTOM_DIMENSIONS = 60; - private static final int METHODID_ARCHIVE_CUSTOM_DIMENSION = 61; - private static final int METHODID_GET_CUSTOM_DIMENSION = 62; - private static final int METHODID_CREATE_CUSTOM_METRIC = 63; - private static final int METHODID_UPDATE_CUSTOM_METRIC = 64; - private static final int METHODID_LIST_CUSTOM_METRICS = 65; - private static final int METHODID_ARCHIVE_CUSTOM_METRIC = 66; - private static final int METHODID_GET_CUSTOM_METRIC = 67; + private static final int METHODID_DELETE_FIREBASE_LINK = 37; + private static final int METHODID_LIST_FIREBASE_LINKS = 38; + private static final int METHODID_GET_GLOBAL_SITE_TAG = 39; + private static final int METHODID_CREATE_GOOGLE_ADS_LINK = 40; + private static final int METHODID_UPDATE_GOOGLE_ADS_LINK = 41; + private static final int METHODID_DELETE_GOOGLE_ADS_LINK = 42; + private static final int METHODID_LIST_GOOGLE_ADS_LINKS = 43; + private static final int METHODID_GET_DATA_SHARING_SETTINGS = 44; + private static final int METHODID_GET_MEASUREMENT_PROTOCOL_SECRET = 45; + private static final int METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS = 46; + private static final int METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET = 47; + private static final int METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET = 48; + private static final int METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET = 49; + private static final int METHODID_SEARCH_CHANGE_HISTORY_EVENTS = 50; + private static final int METHODID_GET_GOOGLE_SIGNALS_SETTINGS = 51; + private static final int METHODID_UPDATE_GOOGLE_SIGNALS_SETTINGS = 52; + private static final int METHODID_CREATE_CONVERSION_EVENT = 53; + private static final int METHODID_GET_CONVERSION_EVENT = 54; + private static final int METHODID_DELETE_CONVERSION_EVENT = 55; + private static final int METHODID_LIST_CONVERSION_EVENTS = 56; + private static final int METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK = 57; + private static final int METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINKS = 58; + private static final int METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK = 59; + private static final int METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK = 60; + private static final int METHODID_UPDATE_DISPLAY_VIDEO360ADVERTISER_LINK = 61; + private static final int METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 62; + private static final int METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSALS = 63; + private static final int METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 64; + private static final int METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 65; + private static final int METHODID_APPROVE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 66; + private static final int METHODID_CANCEL_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL = 67; + private static final int METHODID_CREATE_CUSTOM_DIMENSION = 68; + private static final int METHODID_UPDATE_CUSTOM_DIMENSION = 69; + private static final int METHODID_LIST_CUSTOM_DIMENSIONS = 70; + private static final int METHODID_ARCHIVE_CUSTOM_DIMENSION = 71; + private static final int METHODID_GET_CUSTOM_DIMENSION = 72; + private static final int METHODID_CREATE_CUSTOM_METRIC = 73; + private static final int METHODID_UPDATE_CUSTOM_METRIC = 74; + private static final int METHODID_LIST_CUSTOM_METRICS = 75; + private static final int METHODID_ARCHIVE_CUSTOM_METRIC = 76; + private static final int METHODID_GET_CUSTOM_METRIC = 77; + private static final int METHODID_GET_DATA_RETENTION_SETTINGS = 78; + private static final int METHODID_UPDATE_DATA_RETENTION_SETTINGS = 79; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -8504,12 +10153,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_UPDATE_FIREBASE_LINK: - serviceImpl.updateFirebaseLink( - (com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; case METHODID_DELETE_FIREBASE_LINK: serviceImpl.deleteFirebaseLink( (com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest) request, @@ -8636,6 +10279,96 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.analytics.admin.v1alpha.ListConversionEventsResponse>) responseObserver); break; + case METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK: + serviceImpl.getDisplayVideo360AdvertiserLink( + (com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink>) + responseObserver); + break; + case METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINKS: + serviceImpl.listDisplayVideo360AdvertiserLinks( + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinksResponse>) + responseObserver); + break; + case METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK: + serviceImpl.createDisplayVideo360AdvertiserLink( + (com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink>) + responseObserver); + break; + case METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK: + serviceImpl.deleteDisplayVideo360AdvertiserLink( + (com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_DISPLAY_VIDEO360ADVERTISER_LINK: + serviceImpl.updateDisplayVideo360AdvertiserLink( + (com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink>) + responseObserver); + break; + case METHODID_GET_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL: + serviceImpl.getDisplayVideo360AdvertiserLinkProposal( + (com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal>) + responseObserver); + break; + case METHODID_LIST_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSALS: + serviceImpl.listDisplayVideo360AdvertiserLinkProposals( + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse>) + responseObserver); + break; + case METHODID_CREATE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL: + serviceImpl.createDisplayVideo360AdvertiserLinkProposal( + (com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal>) + responseObserver); + break; + case METHODID_DELETE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL: + serviceImpl.deleteDisplayVideo360AdvertiserLinkProposal( + (com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest) + request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_APPROVE_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL: + serviceImpl.approveDisplayVideo360AdvertiserLinkProposal( + (com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse>) + responseObserver); + break; + case METHODID_CANCEL_DISPLAY_VIDEO360ADVERTISER_LINK_PROPOSAL: + serviceImpl.cancelDisplayVideo360AdvertiserLinkProposal( + (com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest) + request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal>) + responseObserver); + break; case METHODID_CREATE_CUSTOM_DIMENSION: serviceImpl.createCustomDimension( (com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) request, @@ -8696,6 +10429,20 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_DATA_RETENTION_SETTINGS: + serviceImpl.getDataRetentionSettings( + (com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DataRetentionSettings>) + responseObserver); + break; + case METHODID_UPDATE_DATA_RETENTION_SETTINGS: + serviceImpl.updateDataRetentionSettings( + (com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.DataRetentionSettings>) + responseObserver); + break; default: throw new AssertionError(); } @@ -8797,7 +10544,6 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetEnhancedMeasurementSettingsMethod()) .addMethod(getUpdateEnhancedMeasurementSettingsMethod()) .addMethod(getCreateFirebaseLinkMethod()) - .addMethod(getUpdateFirebaseLinkMethod()) .addMethod(getDeleteFirebaseLinkMethod()) .addMethod(getListFirebaseLinksMethod()) .addMethod(getGetGlobalSiteTagMethod()) @@ -8818,6 +10564,17 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetConversionEventMethod()) .addMethod(getDeleteConversionEventMethod()) .addMethod(getListConversionEventsMethod()) + .addMethod(getGetDisplayVideo360AdvertiserLinkMethod()) + .addMethod(getListDisplayVideo360AdvertiserLinksMethod()) + .addMethod(getCreateDisplayVideo360AdvertiserLinkMethod()) + .addMethod(getDeleteDisplayVideo360AdvertiserLinkMethod()) + .addMethod(getUpdateDisplayVideo360AdvertiserLinkMethod()) + .addMethod(getGetDisplayVideo360AdvertiserLinkProposalMethod()) + .addMethod(getListDisplayVideo360AdvertiserLinkProposalsMethod()) + .addMethod(getCreateDisplayVideo360AdvertiserLinkProposalMethod()) + .addMethod(getDeleteDisplayVideo360AdvertiserLinkProposalMethod()) + .addMethod(getApproveDisplayVideo360AdvertiserLinkProposalMethod()) + .addMethod(getCancelDisplayVideo360AdvertiserLinkProposalMethod()) .addMethod(getCreateCustomDimensionMethod()) .addMethod(getUpdateCustomDimensionMethod()) .addMethod(getListCustomDimensionsMethod()) @@ -8828,6 +10585,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListCustomMetricsMethod()) .addMethod(getArchiveCustomMetricMethod()) .addMethod(getGetCustomMetricMethod()) + .addMethod(getGetDataRetentionSettingsMethod()) + .addMethod(getUpdateDataRetentionSettingsMethod()) .build(); } } diff --git a/proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml b/proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml index 61e61691..0b8d2309 100644 --- a/proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml +++ b/proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml @@ -16,4 +16,42 @@ com/google/analytics/admin/v1alpha/*OrBuilder boolean has*(*) + + 6011 + com/google/analytics/admin/v1alpha/Conversion* + *_FIELD_NUMBER + + + 7002 + com/google/analytics/admin/v1alpha/Conversion* + * *Deletable*(*) + + + 6011 + com/google/analytics/admin/v1alpha/FirebaseLink* + *_FIELD_NUMBER + + + 7002 + com/google/analytics/admin/v1alpha/FirebaseLink* + * *MaximumUserAccess*(*) + + + 6011 + com/google/analytics/admin/v1alpha/GoogleAdsLink* + *_FIELD_NUMBER + + + 7002 + com/google/analytics/admin/v1alpha/GoogleAdsLink* + * *EmailAddress*(*) + + + 8001 + com/google/analytics/admin/v1alpha/UpdateFirebaseLinkRequest* + + + 8001 + com/google/analytics/admin/v1alpha/MaximumUserAccess* + diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java index ce52aa51..9ac59334 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java @@ -215,10 +215,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_UpdateFirebaseLinkRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_UpdateFirebaseLinkRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -327,6 +323,62 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -375,6 +427,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -539,561 +599,715 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "est\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyticsad" + "min.googleapis.com/FirebaseLink\022H\n\rfireb" + "ase_link\030\002 \001(\0132,.google.analytics.admin." - + "v1alpha.FirebaseLinkB\003\340A\002\"\233\001\n\031UpdateFire" - + "baseLinkRequest\022H\n\rfirebase_link\030\001 \001(\0132," - + ".google.analytics.admin.v1alpha.Firebase" - + "LinkB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google." - + "protobuf.FieldMaskB\003\340A\002\"]\n\031DeleteFirebas" - + "eLinkRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*anal" - + "yticsadmin.googleapis.com/FirebaseLink\"\205" - + "\001\n\030ListFirebaseLinksRequest\022B\n\006parent\030\001 " - + "\001(\tB2\340A\002\372A,\022*analyticsadmin.googleapis.c" - + "om/FirebaseLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" - + "ge_token\030\003 \001(\t\"z\n\031ListFirebaseLinksRespo" - + "nse\022D\n\016firebase_links\030\001 \003(\0132,.google.ana" - + "lytics.admin.v1alpha.FirebaseLink\022\027\n\017nex" - + "t_page_token\030\002 \001(\t\"\\\n\027GetGlobalSiteTagRe" - + "quest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analyticsad" - + "min.googleapis.com/GlobalSiteTag\"\256\001\n\032Cre" - + "ateGoogleAdsLinkRequest\022C\n\006parent\030\001 \001(\tB" - + "3\340A\002\372A-\022+analyticsadmin.googleapis.com/G" - + "oogleAdsLink\022K\n\017google_ads_link\030\002 \001(\0132-." - + "google.analytics.admin.v1alpha.GoogleAds" - + "LinkB\003\340A\002\"\232\001\n\032UpdateGoogleAdsLinkRequest" - + "\022F\n\017google_ads_link\030\001 \001(\0132-.google.analy" - + "tics.admin.v1alpha.GoogleAdsLink\0224\n\013upda" + + "v1alpha.FirebaseLinkB\003\340A\002\"]\n\031DeleteFireb" + + "aseLinkRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*an" + + "alyticsadmin.googleapis.com/FirebaseLink" + + "\"\205\001\n\030ListFirebaseLinksRequest\022B\n\006parent\030" + + "\001 \001(\tB2\340A\002\372A,\022*analyticsadmin.googleapis" + + ".com/FirebaseLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\"z\n\031ListFirebaseLinksRes" + + "ponse\022D\n\016firebase_links\030\001 \003(\0132,.google.a" + + "nalytics.admin.v1alpha.FirebaseLink\022\027\n\017n" + + "ext_page_token\030\002 \001(\t\"\\\n\027GetGlobalSiteTag" + + "Request\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analytics" + + "admin.googleapis.com/GlobalSiteTag\"\256\001\n\032C" + + "reateGoogleAdsLinkRequest\022C\n\006parent\030\001 \001(" + + "\tB3\340A\002\372A-\022+analyticsadmin.googleapis.com" + + "/GoogleAdsLink\022K\n\017google_ads_link\030\002 \001(\0132" + + "-.google.analytics.admin.v1alpha.GoogleA" + + "dsLinkB\003\340A\002\"\232\001\n\032UpdateGoogleAdsLinkReque" + + "st\022F\n\017google_ads_link\030\001 \001(\0132-.google.ana" + + "lytics.admin.v1alpha.GoogleAdsLink\0224\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "askB\003\340A\002\"_\n\032DeleteGoogleAdsLinkRequest\022A" + + "\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analyticsadmin.goo" + + "gleapis.com/GoogleAdsLink\"\207\001\n\031ListGoogle" + + "AdsLinksRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022" + + "+analyticsadmin.googleapis.com/GoogleAds" + + "Link\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\"~\n\032ListGoogleAdsLinksResponse\022G\n\020goo" + + "gle_ads_links\030\001 \003(\0132-.google.analytics.a" + + "dmin.v1alpha.GoogleAdsLink\022\027\n\017next_page_" + + "token\030\002 \001(\t\"h\n\035GetDataSharingSettingsReq" + + "uest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1analyticsadm" + + "in.googleapis.com/DataSharingSettings\"D\n" + + "\033ListAccountSummariesRequest\022\021\n\tpage_siz" + + "e\030\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"\202\001\n\034ListAcco" + + "untSummariesResponse\022I\n\021account_summarie" + + "s\030\001 \003(\0132..google.analytics.admin.v1alpha" + + ".AccountSummary\022\027\n\017next_page_token\030\002 \001(\t" + + "\"\203\004\n SearchChangeHistoryEventsRequest\022>\n" + + "\007account\030\001 \001(\tB-\340A\002\372A\'\n%analyticsadmin.g" + + "oogleapis.com/Account\022@\n\010property\030\002 \001(\tB" + + ".\340A\001\372A(\n&analyticsadmin.googleapis.com/P" + + "roperty\022U\n\rresource_type\030\003 \003(\01629.google." + + "analytics.admin.v1alpha.ChangeHistoryRes" + + "ourceTypeB\003\340A\001\022?\n\006action\030\004 \003(\0162*.google." + + "analytics.admin.v1alpha.ActionTypeB\003\340A\001\022" + + "\030\n\013actor_email\030\005 \003(\tB\003\340A\001\022=\n\024earliest_ch" + + "ange_time\030\006 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\001\022;\n\022latest_change_time\030\007 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\001\022\026\n\tpage_si" + + "ze\030\010 \001(\005B\003\340A\001\022\027\n\npage_token\030\t \001(\tB\003\340A\001\"\217" + + "\001\n!SearchChangeHistoryEventsResponse\022Q\n\025" + + "change_history_events\030\001 \003(\01322.google.ana" + + "lytics.admin.v1alpha.ChangeHistoryEvent\022" + + "\027\n\017next_page_token\030\002 \001(\t\"t\n#GetMeasureme" + + "ntProtocolSecretRequest\022M\n\004name\030\001 \001(\tB?\340" + + "A\002\372A9\n7analyticsadmin.googleapis.com/Mea" + + "surementProtocolSecret\"\336\001\n&CreateMeasure" + + "mentProtocolSecretRequest\022O\n\006parent\030\001 \001(" + + "\tB?\340A\002\372A9\0227analyticsadmin.googleapis.com" + + "/MeasurementProtocolSecret\022c\n\033measuremen" + + "t_protocol_secret\030\002 \001(\01329.google.analyti" + + "cs.admin.v1alpha.MeasurementProtocolSecr" + + "etB\003\340A\002\"w\n&DeleteMeasurementProtocolSecr" + + "etRequest\022M\n\004name\030\001 \001(\tB?\340A\002\372A9\n7analyti" + + "csadmin.googleapis.com/MeasurementProtoc" + + "olSecret\"\276\001\n&UpdateMeasurementProtocolSe" + + "cretRequest\022c\n\033measurement_protocol_secr" + + "et\030\001 \001(\01329.google.analytics.admin.v1alph" + + "a.MeasurementProtocolSecretB\003\340A\002\022/\n\013upda" + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" - + "kB\003\340A\002\"_\n\032DeleteGoogleAdsLinkRequest\022A\n\004" - + "name\030\001 \001(\tB3\340A\002\372A-\n+analyticsadmin.googl" - + "eapis.com/GoogleAdsLink\"\207\001\n\031ListGoogleAd" - + "sLinksRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+a" - + "nalyticsadmin.googleapis.com/GoogleAdsLi" - + "nk\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" - + "\t\"~\n\032ListGoogleAdsLinksResponse\022G\n\020googl" - + "e_ads_links\030\001 \003(\0132-.google.analytics.adm" - + "in.v1alpha.GoogleAdsLink\022\027\n\017next_page_to" - + "ken\030\002 \001(\t\"h\n\035GetDataSharingSettingsReque" - + "st\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n1analyticsadmin" - + ".googleapis.com/DataSharingSettings\"D\n\033L" - + "istAccountSummariesRequest\022\021\n\tpage_size\030" - + "\001 \001(\005\022\022\n\npage_token\030\002 \001(\t\"\202\001\n\034ListAccoun" - + "tSummariesResponse\022I\n\021account_summaries\030" - + "\001 \003(\0132..google.analytics.admin.v1alpha.A" - + "ccountSummary\022\027\n\017next_page_token\030\002 \001(\t\"\203" - + "\004\n SearchChangeHistoryEventsRequest\022>\n\007a" - + "ccount\030\001 \001(\tB-\340A\002\372A\'\n%analyticsadmin.goo" - + "gleapis.com/Account\022@\n\010property\030\002 \001(\tB.\340" - + "A\001\372A(\n&analyticsadmin.googleapis.com/Pro" - + "perty\022U\n\rresource_type\030\003 \003(\01629.google.an" - + "alytics.admin.v1alpha.ChangeHistoryResou" - + "rceTypeB\003\340A\001\022?\n\006action\030\004 \003(\0162*.google.an" - + "alytics.admin.v1alpha.ActionTypeB\003\340A\001\022\030\n" - + "\013actor_email\030\005 \003(\tB\003\340A\001\022=\n\024earliest_chan" - + "ge_time\030\006 \001(\0132\032.google.protobuf.Timestam" - + "pB\003\340A\001\022;\n\022latest_change_time\030\007 \001(\0132\032.goo" - + "gle.protobuf.TimestampB\003\340A\001\022\026\n\tpage_size" - + "\030\010 \001(\005B\003\340A\001\022\027\n\npage_token\030\t \001(\tB\003\340A\001\"\217\001\n" - + "!SearchChangeHistoryEventsResponse\022Q\n\025ch" - + "ange_history_events\030\001 \003(\01322.google.analy" - + "tics.admin.v1alpha.ChangeHistoryEvent\022\027\n" - + "\017next_page_token\030\002 \001(\t\"t\n#GetMeasurement" - + "ProtocolSecretRequest\022M\n\004name\030\001 \001(\tB?\340A\002" - + "\372A9\n7analyticsadmin.googleapis.com/Measu" - + "rementProtocolSecret\"\336\001\n&CreateMeasureme" - + "ntProtocolSecretRequest\022O\n\006parent\030\001 \001(\tB" - + "?\340A\002\372A9\0227analyticsadmin.googleapis.com/M" - + "easurementProtocolSecret\022c\n\033measurement_" - + "protocol_secret\030\002 \001(\01329.google.analytics" - + ".admin.v1alpha.MeasurementProtocolSecret" - + "B\003\340A\002\"w\n&DeleteMeasurementProtocolSecret" - + "Request\022M\n\004name\030\001 \001(\tB?\340A\002\372A9\n7analytics" - + "admin.googleapis.com/MeasurementProtocol" - + "Secret\"\276\001\n&UpdateMeasurementProtocolSecr" - + "etRequest\022c\n\033measurement_protocol_secret" - + "\030\001 \001(\01329.google.analytics.admin.v1alpha." - + "MeasurementProtocolSecretB\003\340A\002\022/\n\013update" - + "_mask\030\002 \001(\0132\032.google.protobuf.FieldMask\"" - + "\237\001\n%ListMeasurementProtocolSecretsReques" - + "t\022O\n\006parent\030\001 \001(\tB?\340A\002\372A9\0227analyticsadmi" - + "n.googleapis.com/MeasurementProtocolSecr" - + "et\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(" - + "\t\"\242\001\n&ListMeasurementProtocolSecretsResp" - + "onse\022_\n\034measurement_protocol_secrets\030\001 \003" - + "(\01329.google.analytics.admin.v1alpha.Meas" - + "urementProtocolSecret\022\027\n\017next_page_token" - + "\030\002 \001(\t\"l\n\037GetGoogleSignalsSettingsReques" - + "t\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3analyticsadmin." - + "googleapis.com/GoogleSignalsSettings\"\267\001\n" - + "\"UpdateGoogleSignalsSettingsRequest\022[\n\027g" - + "oogle_signals_settings\030\001 \001(\01325.google.an" - + "alytics.admin.v1alpha.GoogleSignalsSetti" - + "ngsB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.p" - + "rotobuf.FieldMaskB\003\340A\002\"\265\001\n\034CreateConvers" - + "ionEventRequest\022N\n\020conversion_event\030\001 \001(" - + "\0132/.google.analytics.admin.v1alpha.Conve" - + "rsionEventB\003\340A\002\022E\n\006parent\030\002 \001(\tB5\340A\002\372A/\022" - + "-analyticsadmin.googleapis.com/Conversio" - + "nEvent\"`\n\031GetConversionEventRequest\022C\n\004n" - + "ame\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmin.google" - + "apis.com/ConversionEvent\"c\n\034DeleteConver" - + "sionEventRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-" - + "analyticsadmin.googleapis.com/Conversion" - + "Event\"\213\001\n\033ListConversionEventsRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-analyticsadmin.go" - + "ogleapis.com/ConversionEvent\022\021\n\tpage_siz" - + "e\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\203\001\n\034ListConv" - + "ersionEventsResponse\022J\n\021conversion_event" - + "s\030\001 \003(\0132/.google.analytics.admin.v1alpha" - + ".ConversionEvent\022\027\n\017next_page_token\030\002 \001(" - + "\t\"\265\001\n\034CreateCustomDimensionRequest\022E\n\006pa" - + "rent\030\001 \001(\tB5\340A\002\372A/\022-analyticsadmin.googl" - + "eapis.com/CustomDimension\022N\n\020custom_dime" - + "nsion\030\002 \001(\0132/.google.analytics.admin.v1a" - + "lpha.CustomDimensionB\003\340A\002\"\237\001\n\034UpdateCust" - + "omDimensionRequest\022I\n\020custom_dimension\030\001" - + " \001(\0132/.google.analytics.admin.v1alpha.Cu" - + "stomDimension\0224\n\013update_mask\030\002 \001(\0132\032.goo" - + "gle.protobuf.FieldMaskB\003\340A\002\"\213\001\n\033ListCust" - + "omDimensionsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002" - + "\372A/\022-analyticsadmin.googleapis.com/Custo" - + "mDimension\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_to" - + "ken\030\003 \001(\t\"\203\001\n\034ListCustomDimensionsRespon" - + "se\022J\n\021custom_dimensions\030\001 \003(\0132/.google.a" - + "nalytics.admin.v1alpha.CustomDimension\022\027" - + "\n\017next_page_token\030\002 \001(\t\"d\n\035ArchiveCustom" - + "DimensionRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-" - + "analyticsadmin.googleapis.com/CustomDime" - + "nsion\"`\n\031GetCustomDimensionRequest\022C\n\004na" - + "me\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmin.googlea" - + "pis.com/CustomDimension\"\251\001\n\031CreateCustom" - + "MetricRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*a" - + "nalyticsadmin.googleapis.com/CustomMetri" - + "c\022H\n\rcustom_metric\030\002 \001(\0132,.google.analyt" - + "ics.admin.v1alpha.CustomMetricB\003\340A\002\"\226\001\n\031" - + "UpdateCustomMetricRequest\022C\n\rcustom_metr" - + "ic\030\001 \001(\0132,.google.analytics.admin.v1alph" - + "a.CustomMetric\0224\n\013update_mask\030\002 \001(\0132\032.go" - + "ogle.protobuf.FieldMaskB\003\340A\002\"\205\001\n\030ListCus" - + "tomMetricsRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A" - + ",\022*analyticsadmin.googleapis.com/CustomM" - + "etric\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003" - + " \001(\t\"z\n\031ListCustomMetricsResponse\022D\n\016cus" - + "tom_metrics\030\001 \003(\0132,.google.analytics.adm" - + "in.v1alpha.CustomMetric\022\027\n\017next_page_tok" - + "en\030\002 \001(\t\"^\n\032ArchiveCustomMetricRequest\022@" - + "\n\004name\030\001 \001(\tB2\340A\002\372A,\n*analyticsadmin.goo" - + "gleapis.com/CustomMetric\"Z\n\026GetCustomMet" - + "ricRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*analyt" - + "icsadmin.googleapis.com/CustomMetric2\335~\n" - + "\025AnalyticsAdminService\022\223\001\n\nGetAccount\0221." - + "google.analytics.admin.v1alpha.GetAccoun" - + "tRequest\032\'.google.analytics.admin.v1alph" - + "a.Account\")\202\323\344\223\002\034\022\032/v1alpha/{name=accoun" - + "ts/*}\332A\004name\022\224\001\n\014ListAccounts\0223.google.a" - + "nalytics.admin.v1alpha.ListAccountsReque" - + "st\0324.google.analytics.admin.v1alpha.List" - + "AccountsResponse\"\031\202\323\344\223\002\023\022\021/v1alpha/accou" - + "nts\022\210\001\n\rDeleteAccount\0224.google.analytics" - + ".admin.v1alpha.DeleteAccountRequest\032\026.go" - + "ogle.protobuf.Empty\")\202\323\344\223\002\034*\032/v1alpha/{n" - + "ame=accounts/*}\332A\004name\022\271\001\n\rUpdateAccount" - + "\0224.google.analytics.admin.v1alpha.Update" - + "AccountRequest\032\'.google.analytics.admin." - + "v1alpha.Account\"I\202\323\344\223\002-2\"/v1alpha/{accou" - + "nt.name=accounts/*}:\007account\332A\023account,u" - + "pdate_mask\022\314\001\n\026ProvisionAccountTicket\022=." - + "google.analytics.admin.v1alpha.Provision" - + "AccountTicketRequest\032>.google.analytics." - + "admin.v1alpha.ProvisionAccountTicketResp" - + "onse\"3\202\323\344\223\002-\"(/v1alpha/accounts:provisio" - + "nAccountTicket:\001*\022\264\001\n\024ListAccountSummari" - + "es\022;.google.analytics.admin.v1alpha.List" - + "AccountSummariesRequest\032<.google.analyti" - + "cs.admin.v1alpha.ListAccountSummariesRes" - + "ponse\"!\202\323\344\223\002\033\022\031/v1alpha/accountSummaries" - + "\022\230\001\n\013GetProperty\0222.google.analytics.admi" - + "n.v1alpha.GetPropertyRequest\032(.google.an" - + "alytics.admin.v1alpha.Property\"+\202\323\344\223\002\036\022\034" - + "/v1alpha/{name=properties/*}\332A\004name\022\234\001\n\016" - + "ListProperties\0225.google.analytics.admin." - + "v1alpha.ListPropertiesRequest\0326.google.a" - + "nalytics.admin.v1alpha.ListPropertiesRes" - + "ponse\"\033\202\323\344\223\002\025\022\023/v1alpha/properties\022\243\001\n\016C" - + "reateProperty\0225.google.analytics.admin.v" - + "1alpha.CreatePropertyRequest\032(.google.an" - + "alytics.admin.v1alpha.Property\"0\202\323\344\223\002\037\"\023" - + "/v1alpha/properties:\010property\332A\010property" - + "\022\236\001\n\016DeleteProperty\0225.google.analytics.a" - + "dmin.v1alpha.DeletePropertyRequest\032(.goo" - + "gle.analytics.admin.v1alpha.Property\"+\202\323" - + "\344\223\002\036*\034/v1alpha/{name=properties/*}\332A\004nam" - + "e\022\301\001\n\016UpdateProperty\0225.google.analytics." - + "admin.v1alpha.UpdatePropertyRequest\032(.go" - + "ogle.analytics.admin.v1alpha.Property\"N\202" - + "\323\344\223\00212%/v1alpha/{property.name=propertie" - + "s/*}:\010property\332A\024property,update_mask\022\316\001" - + "\n\013GetUserLink\0222.google.analytics.admin.v" - + "1alpha.GetUserLinkRequest\032(.google.analy" - + "tics.admin.v1alpha.UserLink\"a\202\323\344\223\002T\022&/v1" - + "alpha/{name=accounts/*/userLinks/*}Z*\022(/" - + "v1alpha/{name=properties/*/userLinks/*}\332" - + "A\004name\022\366\001\n\021BatchGetUserLinks\0228.google.an" - + "alytics.admin.v1alpha.BatchGetUserLinksR" - + "equest\0329.google.analytics.admin.v1alpha." - + "BatchGetUserLinksResponse\"l\202\323\344\223\002f\022//v1al" - + "pha/{parent=accounts/*}/userLinks:batchG" - + "etZ3\0221/v1alpha/{parent=properties/*}/use" - + "rLinks:batchGet\022\341\001\n\rListUserLinks\0224.goog" - + "le.analytics.admin.v1alpha.ListUserLinks" - + "Request\0325.google.analytics.admin.v1alpha" - + ".ListUserLinksResponse\"c\202\323\344\223\002T\022&/v1alpha" - + "/{parent=accounts/*}/userLinksZ*\022(/v1alp" - + "ha/{parent=properties/*}/userLinks\332A\006par" - + "ent\022\355\001\n\016AuditUserLinks\0225.google.analytic" - + "s.admin.v1alpha.AuditUserLinksRequest\0326." - + "google.analytics.admin.v1alpha.AuditUser" - + "LinksResponse\"l\202\323\344\223\002f\",/v1alpha/{parent=" - + "accounts/*}/userLinks:audit:\001*Z3\"./v1alp" - + "ha/{parent=properties/*}/userLinks:audit" - + ":\001*\022\367\001\n\016CreateUserLink\0225.google.analytic" - + "s.admin.v1alpha.CreateUserLinkRequest\032(." - + "google.analytics.admin.v1alpha.UserLink\"" - + "\203\001\202\323\344\223\002j\"&/v1alpha/{parent=accounts/*}/u" - + "serLinks:\tuser_linkZ5\"(/v1alpha/{parent=" - + "properties/*}/userLinks:\tuser_link\332A\020par" - + "ent,user_link\022\213\002\n\024BatchCreateUserLinks\022;" - + ".google.analytics.admin.v1alpha.BatchCre" - + "ateUserLinksRequest\032<.google.analytics.a" - + "dmin.v1alpha.BatchCreateUserLinksRespons" - + "e\"x\202\323\344\223\002r\"2/v1alpha/{parent=accounts/*}/" - + "userLinks:batchCreate:\001*Z9\"4/v1alpha/{pa" - + "rent=properties/*}/userLinks:batchCreate" - + ":\001*\022\204\002\n\016UpdateUserLink\0225.google.analytic" - + "s.admin.v1alpha.UpdateUserLinkRequest\032(." - + "google.analytics.admin.v1alpha.UserLink\"" - + "\220\001\202\323\344\223\002~20/v1alpha/{user_link.name=accou" - + "nts/*/userLinks/*}:\tuser_linkZ?22/v1alph" - + "a/{user_link.name=properties/*/userLinks" - + "/*}:\tuser_link\332A\tuser_link\022\213\002\n\024BatchUpda" - + "teUserLinks\022;.google.analytics.admin.v1a" - + "lpha.BatchUpdateUserLinksRequest\032<.googl" - + "e.analytics.admin.v1alpha.BatchUpdateUse" - + "rLinksResponse\"x\202\323\344\223\002r\"2/v1alpha/{parent" - + "=accounts/*}/userLinks:batchUpdate:\001*Z9\"" - + "4/v1alpha/{parent=properties/*}/userLink" - + "s:batchUpdate:\001*\022\302\001\n\016DeleteUserLink\0225.go" - + "ogle.analytics.admin.v1alpha.DeleteUserL" - + "inkRequest\032\026.google.protobuf.Empty\"a\202\323\344\223", - "\002T*&/v1alpha/{name=accounts/*/userLinks/" - + "*}Z**(/v1alpha/{name=properties/*/userLi" - + "nks/*}\332A\004name\022\345\001\n\024BatchDeleteUserLinks\022;" - + ".google.analytics.admin.v1alpha.BatchDel" - + "eteUserLinksRequest\032\026.google.protobuf.Em" - + "pty\"x\202\323\344\223\002r\"2/v1alpha/{parent=accounts/*" - + "}/userLinks:batchDelete:\001*Z9\"4/v1alpha/{" - + "parent=properties/*}/userLinks:batchDele" - + "te:\001*\022\270\001\n\020GetWebDataStream\0227.google.anal" - + "ytics.admin.v1alpha.GetWebDataStreamRequ" - + "est\032-.google.analytics.admin.v1alpha.Web" - + "DataStream\"<\202\323\344\223\002/\022-/v1alpha/{name=prope" - + "rties/*/webDataStreams/*}\332A\004name\022\247\001\n\023Del" - + "eteWebDataStream\022:.google.analytics.admi" - + "n.v1alpha.DeleteWebDataStreamRequest\032\026.g" - + "oogle.protobuf.Empty\"<\202\323\344\223\002/*-/v1alpha/{" - + "name=properties/*/webDataStreams/*}\332A\004na" - + "me\022\366\001\n\023UpdateWebDataStream\022:.google.anal" - + "ytics.admin.v1alpha.UpdateWebDataStreamR" - + "equest\032-.google.analytics.admin.v1alpha." - + "WebDataStream\"t\202\323\344\223\002P2=/v1alpha/{web_dat" - + "a_stream.name=properties/*/webDataStream" - + "s/*}:\017web_data_stream\332A\033web_data_stream," - + "update_mask\022\341\001\n\023CreateWebDataStream\022:.go" - + "ogle.analytics.admin.v1alpha.CreateWebDa" - + "taStreamRequest\032-.google.analytics.admin" - + ".v1alpha.WebDataStream\"_\202\323\344\223\002@\"-/v1alpha" - + "/{parent=properties/*}/webDataStreams:\017w" - + "eb_data_stream\332A\026parent,web_data_stream\022" - + "\313\001\n\022ListWebDataStreams\0229.google.analytic" - + "s.admin.v1alpha.ListWebDataStreamsReques" - + "t\032:.google.analytics.admin.v1alpha.ListW" - + "ebDataStreamsResponse\">\202\323\344\223\002/\022-/v1alpha/" - + "{parent=properties/*}/webDataStreams\332A\006p" - + "arent\022\304\001\n\023GetIosAppDataStream\022:.google.a" - + "nalytics.admin.v1alpha.GetIosAppDataStre" - + "amRequest\0320.google.analytics.admin.v1alp" - + "ha.IosAppDataStream\"?\202\323\344\223\0022\0220/v1alpha/{n" - + "ame=properties/*/iosAppDataStreams/*}\332A\004" - + "name\022\260\001\n\026DeleteIosAppDataStream\022=.google" - + ".analytics.admin.v1alpha.DeleteIosAppDat" - + "aStreamRequest\032\026.google.protobuf.Empty\"?" - + "\202\323\344\223\0022*0/v1alpha/{name=properties/*/iosA" - + "ppDataStreams/*}\332A\004name\022\217\002\n\026UpdateIosApp" - + "DataStream\022=.google.analytics.admin.v1al" - + "pha.UpdateIosAppDataStreamRequest\0320.goog" - + "le.analytics.admin.v1alpha.IosAppDataStr" - + "eam\"\203\001\202\323\344\223\002[2D/v1alpha/{ios_app_data_str" - + "eam.name=properties/*/iosAppDataStreams/" - + "*}:\023ios_app_data_stream\332A\037ios_app_data_s" - + "tream,update_mask\022\327\001\n\025ListIosAppDataStre" - + "ams\022<.google.analytics.admin.v1alpha.Lis" - + "tIosAppDataStreamsRequest\032=.google.analy" - + "tics.admin.v1alpha.ListIosAppDataStreams" - + "Response\"A\202\323\344\223\0022\0220/v1alpha/{parent=prope" - + "rties/*}/iosAppDataStreams\332A\006parent\022\324\001\n\027" - + "GetAndroidAppDataStream\022>.google.analyti" - + "cs.admin.v1alpha.GetAndroidAppDataStream" - + "Request\0324.google.analytics.admin.v1alpha" - + ".AndroidAppDataStream\"C\202\323\344\223\0026\0224/v1alpha/" - + "{name=properties/*/androidAppDataStreams" - + "/*}\332A\004name\022\274\001\n\032DeleteAndroidAppDataStrea" - + "m\022A.google.analytics.admin.v1alpha.Delet" - + "eAndroidAppDataStreamRequest\032\026.google.pr" - + "otobuf.Empty\"C\202\323\344\223\0026*4/v1alpha/{name=pro" - + "perties/*/androidAppDataStreams/*}\332A\004nam" - + "e\022\253\002\n\032UpdateAndroidAppDataStream\022A.googl" - + "e.analytics.admin.v1alpha.UpdateAndroidA" - + "ppDataStreamRequest\0324.google.analytics.a" - + "dmin.v1alpha.AndroidAppDataStream\"\223\001\202\323\344\223" - + "\002g2L/v1alpha/{android_app_data_stream.na" - + "me=properties/*/androidAppDataStreams/*}" - + ":\027android_app_data_stream\332A#android_app_" - + "data_stream,update_mask\022\347\001\n\031ListAndroidA" - + "ppDataStreams\022@.google.analytics.admin.v" - + "1alpha.ListAndroidAppDataStreamsRequest\032" - + "A.google.analytics.admin.v1alpha.ListAnd" - + "roidAppDataStreamsResponse\"E\202\323\344\223\0026\0224/v1a" - + "lpha/{parent=properties/*}/androidAppDat" - + "aStreams\332A\006parent\022\376\001\n\036GetEnhancedMeasure" - + "mentSettings\022E.google.analytics.admin.v1" - + "alpha.GetEnhancedMeasurementSettingsRequ" - + "est\032;.google.analytics.admin.v1alpha.Enh" - + "ancedMeasurementSettings\"X\202\323\344\223\002K\022I/v1alp" - + "ha/{name=properties/*/webDataStreams/*/e" - + "nhancedMeasurementSettings}\332A\004name\022\350\002\n!U" - + "pdateEnhancedMeasurementSettings\022H.googl" - + "e.analytics.admin.v1alpha.UpdateEnhanced" - + "MeasurementSettingsRequest\032;.google.anal" - + "ytics.admin.v1alpha.EnhancedMeasurementS" - + "ettings\"\273\001\202\323\344\223\002\210\0012g/v1alpha/{enhanced_me" - + "asurement_settings.name=properties/*/web" - + "DataStreams/*/enhancedMeasurementSetting" - + "s}:\035enhanced_measurement_settings\332A)enha" - + "nced_measurement_settings,update_mask\022\331\001" - + "\n\022CreateFirebaseLink\0229.google.analytics." - + "admin.v1alpha.CreateFirebaseLinkRequest\032" - + ",.google.analytics.admin.v1alpha.Firebas" - + "eLink\"Z\202\323\344\223\002=\",/v1alpha/{parent=properti" - + "es/*}/firebaseLinks:\rfirebase_link\332A\024par" - + "ent,firebase_link\022\354\001\n\022UpdateFirebaseLink" - + "\0229.google.analytics.admin.v1alpha.Update" - + "FirebaseLinkRequest\032,.google.analytics.a" - + "dmin.v1alpha.FirebaseLink\"m\202\323\344\223\002K2:/v1al" - + "pha/{firebase_link.name=properties/*/fir" - + "ebaseLinks/*}:\rfirebase_link\332A\031firebase_" - + "link,update_mask\022\244\001\n\022DeleteFirebaseLink\022" - + "9.google.analytics.admin.v1alpha.DeleteF" - + "irebaseLinkRequest\032\026.google.protobuf.Emp" - + "ty\";\202\323\344\223\002.*,/v1alpha/{name=properties/*/" - + "firebaseLinks/*}\332A\004name\022\307\001\n\021ListFirebase" - + "Links\0228.google.analytics.admin.v1alpha.L" - + "istFirebaseLinksRequest\0329.google.analyti" - + "cs.admin.v1alpha.ListFirebaseLinksRespon" - + "se\"=\202\323\344\223\002.\022,/v1alpha/{parent=properties/" - + "*}/firebaseLinks\332A\006parent\022\306\001\n\020GetGlobalS" - + "iteTag\0227.google.analytics.admin.v1alpha." - + "GetGlobalSiteTagRequest\032-.google.analyti" - + "cs.admin.v1alpha.GlobalSiteTag\"J\202\323\344\223\002=\022;" - + "/v1alpha/{name=properties/*/webDataStrea" - + "ms/*/globalSiteTag}\332A\004name\022\341\001\n\023CreateGoo" - + "gleAdsLink\022:.google.analytics.admin.v1al" - + "pha.CreateGoogleAdsLinkRequest\032-.google." - + "analytics.admin.v1alpha.GoogleAdsLink\"_\202" - + "\323\344\223\002@\"-/v1alpha/{parent=properties/*}/go" - + "ogleAdsLinks:\017google_ads_link\332A\026parent,g" - + "oogle_ads_link\022\366\001\n\023UpdateGoogleAdsLink\022:" - + ".google.analytics.admin.v1alpha.UpdateGo" - + "ogleAdsLinkRequest\032-.google.analytics.ad" - + "min.v1alpha.GoogleAdsLink\"t\202\323\344\223\002P2=/v1al" - + "pha/{google_ads_link.name=properties/*/g" - + "oogleAdsLinks/*}:\017google_ads_link\332A\033goog" - + "le_ads_link,update_mask\022\247\001\n\023DeleteGoogle" - + "AdsLink\022:.google.analytics.admin.v1alpha" - + ".DeleteGoogleAdsLinkRequest\032\026.google.pro" - + "tobuf.Empty\"<\202\323\344\223\002/*-/v1alpha/{name=prop" - + "erties/*/googleAdsLinks/*}\332A\004name\022\313\001\n\022Li" - + "stGoogleAdsLinks\0229.google.analytics.admi" - + "n.v1alpha.ListGoogleAdsLinksRequest\032:.go" - + "ogle.analytics.admin.v1alpha.ListGoogleA" - + "dsLinksResponse\">\202\323\344\223\002/\022-/v1alpha/{paren" - + "t=properties/*}/googleAdsLinks\332A\006parent\022" - + "\313\001\n\026GetDataSharingSettings\022=.google.anal" - + "ytics.admin.v1alpha.GetDataSharingSettin" - + "gsRequest\0323.google.analytics.admin.v1alp" - + "ha.DataSharingSettings\"=\202\323\344\223\0020\022./v1alpha" - + "/{name=accounts/*/dataSharingSettings}\332A" - + "\004name\022\241\003\n\034GetMeasurementProtocolSecret\022C" - + ".google.analytics.admin.v1alpha.GetMeasu" - + "rementProtocolSecretRequest\0329.google.ana" - + "lytics.admin.v1alpha.MeasurementProtocol" - + "Secret\"\200\002\202\323\344\223\002\362\001\022J/v1alpha/{name=propert" - + "ies/*/webDataStreams/*/measurementProtoc" - + "olSecrets/*}ZO\022M/v1alpha/{name=propertie" - + "s/*/iosAppDataStreams/*/measurementProto" - + "colSecrets/*}ZS\022Q/v1alpha/{name=properti" - + "es/*/androidAppDataStreams/*/measurement" - + "ProtocolSecrets/*}\332A\004name\022\264\003\n\036ListMeasur" - + "ementProtocolSecrets\022E.google.analytics." - + "admin.v1alpha.ListMeasurementProtocolSec" - + "retsRequest\032F.google.analytics.admin.v1a" - + "lpha.ListMeasurementProtocolSecretsRespo" - + "nse\"\202\002\202\323\344\223\002\362\001\022J/v1alpha/{parent=properti" - + "es/*/webDataStreams/*}/measurementProtoc" - + "olSecretsZO\022M/v1alpha/{parent=properties" - + "/*/iosAppDataStreams/*}/measurementProto" - + "colSecretsZS\022Q/v1alpha/{parent=propertie" - + "s/*/androidAppDataStreams/*}/measurement" - + "ProtocolSecrets\332A\006parent\022\234\004\n\037CreateMeasu" - + "rementProtocolSecret\022F.google.analytics." - + "admin.v1alpha.CreateMeasurementProtocolS" - + "ecretRequest\0329.google.analytics.admin.v1" - + "alpha.MeasurementProtocolSecret\"\365\002\202\323\344\223\002\311" - + "\002\"J/v1alpha/{parent=properties/*/webData" - + "Streams/*}/measurementProtocolSecrets:\033m" - + "easurement_protocol_secretZl\"M/v1alpha/{" - + "parent=properties/*/iosAppDataStreams/*}" - + "/measurementProtocolSecrets:\033measurement" - + "_protocol_secretZp\"Q/v1alpha/{parent=pro" - + "perties/*/androidAppDataStreams/*}/measu" - + "rementProtocolSecrets:\033measurement_proto" - + "col_secret\332A\"parent,measurement_protocol" - + "_secret\022\204\003\n\037DeleteMeasurementProtocolSec" - + "ret\022F.google.analytics.admin.v1alpha.Del" - + "eteMeasurementProtocolSecretRequest\032\026.go" - + "ogle.protobuf.Empty\"\200\002\202\323\344\223\002\362\001*J/v1alpha/" - + "{name=properties/*/webDataStreams/*/meas" - + "urementProtocolSecrets/*}ZO*M/v1alpha/{n" - + "ame=properties/*/iosAppDataStreams/*/mea" - + "surementProtocolSecrets/*}ZS*Q/v1alpha/{" - + "name=properties/*/androidAppDataStreams/" - + "*/measurementProtocolSecrets/*}\332A\004name\022\367" - + "\004\n\037UpdateMeasurementProtocolSecret\022F.goo" - + "gle.analytics.admin.v1alpha.UpdateMeasur" - + "ementProtocolSecretRequest\0329.google.anal" - + "ytics.admin.v1alpha.MeasurementProtocolS" - + "ecret\"\320\003\202\323\344\223\002\237\0032f/v1alpha/{measurement_p" - + "rotocol_secret.name=properties/*/webData" - + "Streams/*/measurementProtocolSecrets/*}:" - + "\033measurement_protocol_secretZ\210\0012i/v1alph" - + "a/{measurement_protocol_secret.name=prop" + + "k\"\237\001\n%ListMeasurementProtocolSecretsRequ" + + "est\022O\n\006parent\030\001 \001(\tB?\340A\002\372A9\0227analyticsad" + + "min.googleapis.com/MeasurementProtocolSe" + + "cret\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\"\242\001\n&ListMeasurementProtocolSecretsRe" + + "sponse\022_\n\034measurement_protocol_secrets\030\001" + + " \003(\01329.google.analytics.admin.v1alpha.Me" + + "asurementProtocolSecret\022\027\n\017next_page_tok" + + "en\030\002 \001(\t\"l\n\037GetGoogleSignalsSettingsRequ" + + "est\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3analyticsadmi" + + "n.googleapis.com/GoogleSignalsSettings\"\267" + + "\001\n\"UpdateGoogleSignalsSettingsRequest\022[\n" + + "\027google_signals_settings\030\001 \001(\01325.google." + + "analytics.admin.v1alpha.GoogleSignalsSet" + + "tingsB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google" + + ".protobuf.FieldMaskB\003\340A\002\"\265\001\n\034CreateConve" + + "rsionEventRequest\022N\n\020conversion_event\030\001 " + + "\001(\0132/.google.analytics.admin.v1alpha.Con" + + "versionEventB\003\340A\002\022E\n\006parent\030\002 \001(\tB5\340A\002\372A" + + "/\022-analyticsadmin.googleapis.com/Convers" + + "ionEvent\"`\n\031GetConversionEventRequest\022C\n" + + "\004name\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmin.goog" + + "leapis.com/ConversionEvent\"c\n\034DeleteConv" + + "ersionEventRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/" + + "\n-analyticsadmin.googleapis.com/Conversi" + + "onEvent\"\213\001\n\033ListConversionEventsRequest\022" + + "E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-analyticsadmin." + + "googleapis.com/ConversionEvent\022\021\n\tpage_s" + + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\203\001\n\034ListCo" + + "nversionEventsResponse\022J\n\021conversion_eve" + + "nts\030\001 \003(\0132/.google.analytics.admin.v1alp" + + "ha.ConversionEvent\022\027\n\017next_page_token\030\002 " + + "\001(\t\"|\n\'GetDisplayVideo360AdvertiserLinkR" + + "equest\022Q\n\004name\030\001 \001(\tBC\340A\002\372A=\n;analyticsa" + + "dmin.googleapis.com/DisplayVideo360Adver" + + "tiserLink\"\247\001\n)ListDisplayVideo360Adverti" + + "serLinksRequest\022S\n\006parent\030\001 \001(\tBC\340A\002\372A=\022" + + ";analyticsadmin.googleapis.com/DisplayVi" + + "deo360AdvertiserLink\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\"\260\001\n*ListDisplayVideo" + + "360AdvertiserLinksResponse\022i\n\"display_vi" + + "deo_360_advertiser_links\030\001 \003(\0132=.google." + + "analytics.admin.v1alpha.DisplayVideo360A" + + "dvertiserLink\022\027\n\017next_page_token\030\002 \001(\t\"\360" + + "\001\n*CreateDisplayVideo360AdvertiserLinkRe" + + "quest\022S\n\006parent\030\001 \001(\tBC\340A\002\372A=\022;analytics" + + "admin.googleapis.com/DisplayVideo360Adve" + + "rtiserLink\022m\n!display_video_360_advertis" + + "er_link\030\002 \001(\0132=.google.analytics.admin.v" + + "1alpha.DisplayVideo360AdvertiserLinkB\003\340A" + + "\002\"\177\n*DeleteDisplayVideo360AdvertiserLink" + + "Request\022Q\n\004name\030\001 \001(\tBC\340A\002\372A=\n;analytics" + + "admin.googleapis.com/DisplayVideo360Adve" + + "rtiserLink\"\314\001\n*UpdateDisplayVideo360Adve" + + "rtiserLinkRequest\022h\n!display_video_360_a" + + "dvertiser_link\030\001 \001(\0132=.google.analytics." + + "admin.v1alpha.DisplayVideo360AdvertiserL" + + "ink\0224\n\013update_mask\030\002 \001(\0132\032.google.protob" + + "uf.FieldMaskB\003\340A\002\"\214\001\n/GetDisplayVideo360" + + "AdvertiserLinkProposalRequest\022Y\n\004name\030\001 " + + "\001(\tBK\340A\002\372AE\nCanalyticsadmin.googleapis.c" + + "om/DisplayVideo360AdvertiserLinkProposal" + + "\"\267\001\n1ListDisplayVideo360AdvertiserLinkPr" + + "oposalsRequest\022[\n\006parent\030\001 \001(\tBK\340A\002\372AE\022C" + + "analyticsadmin.googleapis.com/DisplayVid" + + "eo360AdvertiserLinkProposal\022\021\n\tpage_size" + + "\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\311\001\n2ListDispl" + + "ayVideo360AdvertiserLinkProposalsRespons" + + "e\022z\n+display_video_360_advertiser_link_p" + + "roposals\030\001 \003(\0132E.google.analytics.admin." + + "v1alpha.DisplayVideo360AdvertiserLinkPro" + + "posal\022\027\n\017next_page_token\030\002 \001(\t\"\221\002\n2Creat" + + "eDisplayVideo360AdvertiserLinkProposalRe" + + "quest\022[\n\006parent\030\001 \001(\tBK\340A\002\372AE\022Canalytics" + + "admin.googleapis.com/DisplayVideo360Adve" + + "rtiserLinkProposal\022~\n*display_video_360_" + + "advertiser_link_proposal\030\002 \001(\0132E.google." + + "analytics.admin.v1alpha.DisplayVideo360A" + + "dvertiserLinkProposalB\003\340A\002\"\217\001\n2DeleteDis" + + "playVideo360AdvertiserLinkProposalReques" + + "t\022Y\n\004name\030\001 \001(\tBK\340A\002\372AE\nCanalyticsadmin." + + "googleapis.com/DisplayVideo360Advertiser" + + "LinkProposal\"\220\001\n3ApproveDisplayVideo360A" + + "dvertiserLinkProposalRequest\022Y\n\004name\030\001 \001" + + "(\tBK\340A\002\372AE\nCanalyticsadmin.googleapis.co" + + "m/DisplayVideo360AdvertiserLinkProposal\"" + + "\240\001\n4ApproveDisplayVideo360AdvertiserLink" + + "ProposalResponse\022h\n!display_video_360_ad" + + "vertiser_link\030\001 \001(\0132=.google.analytics.a" + + "dmin.v1alpha.DisplayVideo360AdvertiserLi" + + "nk\"\217\001\n2CancelDisplayVideo360AdvertiserLi" + + "nkProposalRequest\022Y\n\004name\030\001 \001(\tBK\340A\002\372AE\n" + + "Canalyticsadmin.googleapis.com/DisplayVi" + + "deo360AdvertiserLinkProposal\"\265\001\n\034CreateC" + + "ustomDimensionRequest\022E\n\006parent\030\001 \001(\tB5\340" + + "A\002\372A/\022-analyticsadmin.googleapis.com/Cus" + + "tomDimension\022N\n\020custom_dimension\030\002 \001(\0132/" + + ".google.analytics.admin.v1alpha.CustomDi" + + "mensionB\003\340A\002\"\237\001\n\034UpdateCustomDimensionRe" + + "quest\022I\n\020custom_dimension\030\001 \001(\0132/.google" + + ".analytics.admin.v1alpha.CustomDimension" + + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." + + "FieldMaskB\003\340A\002\"\213\001\n\033ListCustomDimensionsR" + + "equest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-analytic" + + "sadmin.googleapis.com/CustomDimension\022\021\n" + + "\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\203\001\n" + + "\034ListCustomDimensionsResponse\022J\n\021custom_" + + "dimensions\030\001 \003(\0132/.google.analytics.admi" + + "n.v1alpha.CustomDimension\022\027\n\017next_page_t" + + "oken\030\002 \001(\t\"d\n\035ArchiveCustomDimensionRequ" + + "est\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmi" + + "n.googleapis.com/CustomDimension\"`\n\031GetC" + + "ustomDimensionRequest\022C\n\004name\030\001 \001(\tB5\340A\002" + + "\372A/\n-analyticsadmin.googleapis.com/Custo" + + "mDimension\"\251\001\n\031CreateCustomMetricRequest" + + "\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyticsadmin" + + ".googleapis.com/CustomMetric\022H\n\rcustom_m" + + "etric\030\002 \001(\0132,.google.analytics.admin.v1a" + + "lpha.CustomMetricB\003\340A\002\"\226\001\n\031UpdateCustomM" + + "etricRequest\022C\n\rcustom_metric\030\001 \001(\0132,.go" + + "ogle.analytics.admin.v1alpha.CustomMetri" + + "c\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf" + + ".FieldMaskB\003\340A\002\"\205\001\n\030ListCustomMetricsReq" + + "uest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyticsa" + + "dmin.googleapis.com/CustomMetric\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"z\n\031ListC" + + "ustomMetricsResponse\022D\n\016custom_metrics\030\001" + + " \003(\0132,.google.analytics.admin.v1alpha.Cu" + + "stomMetric\022\027\n\017next_page_token\030\002 \001(\t\"^\n\032A" + + "rchiveCustomMetricRequest\022@\n\004name\030\001 \001(\tB" + + "2\340A\002\372A,\n*analyticsadmin.googleapis.com/C" + + "ustomMetric\"Z\n\026GetCustomMetricRequest\022@\n" + + "\004name\030\001 \001(\tB2\340A\002\372A,\n*analyticsadmin.goog" + + "leapis.com/CustomMetric\"l\n\037GetDataRetent" + + "ionSettingsRequest\022I\n\004name\030\001 \001(\tB;\340A\002\372A5" + + "\n3analyticsadmin.googleapis.com/DataRete" + + "ntionSettings\"\267\001\n\"UpdateDataRetentionSet" + + "tingsRequest\022[\n\027data_retention_settings\030" + + "\001 \001(\01325.google.analytics.admin.v1alpha.D" + + "ataRetentionSettingsB\003\340A\002\0224\n\013update_mask" + + "\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\0022" + + "\242\232\001\n\025AnalyticsAdminService\022\223\001\n\nGetAccoun" + + "t\0221.google.analytics.admin.v1alpha.GetAc" + + "countRequest\032\'.google.analytics.admin.v1" + + "alpha.Account\")\202\323\344\223\002\034\022\032/v1alpha/{name=ac" + + "counts/*}\332A\004name\022\224\001\n\014ListAccounts\0223.goog" + + "le.analytics.admin.v1alpha.ListAccountsR" + + "equest\0324.google.analytics.admin.v1alpha." + + "ListAccountsResponse\"\031\202\323\344\223\002\023\022\021/v1alpha/a" + + "ccounts\022\210\001\n\rDeleteAccount\0224.google.analy" + + "tics.admin.v1alpha.DeleteAccountRequest\032" + + "\026.google.protobuf.Empty\")\202\323\344\223\002\034*\032/v1alph" + + "a/{name=accounts/*}\332A\004name\022\271\001\n\rUpdateAcc" + + "ount\0224.google.analytics.admin.v1alpha.Up" + + "dateAccountRequest\032\'.google.analytics.ad" + + "min.v1alpha.Account\"I\202\323\344\223\002-2\"/v1alpha/{a" + + "ccount.name=accounts/*}:\007account\332A\023accou" + + "nt,update_mask\022\314\001\n\026ProvisionAccountTicke" + + "t\022=.google.analytics.admin.v1alpha.Provi" + + "sionAccountTicketRequest\032>.google.analyt" + + "ics.admin.v1alpha.ProvisionAccountTicket" + + "Response\"3\202\323\344\223\002-\"(/v1alpha/accounts:prov" + + "isionAccountTicket:\001*\022\264\001\n\024ListAccountSum" + + "maries\022;.google.analytics.admin.v1alpha." + + "ListAccountSummariesRequest\032<.google.ana" + + "lytics.admin.v1alpha.ListAccountSummarie" + + "sResponse\"!\202\323\344\223\002\033\022\031/v1alpha/accountSumma" + + "ries\022\230\001\n\013GetProperty\0222.google.analytics." + + "admin.v1alpha.GetPropertyRequest\032(.googl" + + "e.analytics.admin.v1alpha.Property\"+\202\323\344\223" + + "\002\036\022\034/v1alpha/{name=properties/*}\332A\004name\022" + + "\234\001\n\016ListProperties\0225.google.analytics.ad" + + "min.v1alpha.ListPropertiesRequest\0326.goog" + + "le.analytics.admin.v1alpha.ListPropertie" + + "sResponse\"\033\202\323\344\223\002\025\022\023/v1alpha/properties\022\243", + "\001\n\016CreateProperty\0225.google.analytics.adm" + + "in.v1alpha.CreatePropertyRequest\032(.googl" + + "e.analytics.admin.v1alpha.Property\"0\202\323\344\223" + + "\002\037\"\023/v1alpha/properties:\010property\332A\010prop" + + "erty\022\236\001\n\016DeleteProperty\0225.google.analyti" + + "cs.admin.v1alpha.DeletePropertyRequest\032(" + + ".google.analytics.admin.v1alpha.Property" + + "\"+\202\323\344\223\002\036*\034/v1alpha/{name=properties/*}\332A" + + "\004name\022\301\001\n\016UpdateProperty\0225.google.analyt" + + "ics.admin.v1alpha.UpdatePropertyRequest\032" + + "(.google.analytics.admin.v1alpha.Propert" + + "y\"N\202\323\344\223\00212%/v1alpha/{property.name=prope" + + "rties/*}:\010property\332A\024property,update_mas" + + "k\022\316\001\n\013GetUserLink\0222.google.analytics.adm" + + "in.v1alpha.GetUserLinkRequest\032(.google.a" + + "nalytics.admin.v1alpha.UserLink\"a\202\323\344\223\002T\022" + + "&/v1alpha/{name=accounts/*/userLinks/*}Z" + + "*\022(/v1alpha/{name=properties/*/userLinks" + + "/*}\332A\004name\022\366\001\n\021BatchGetUserLinks\0228.googl" + + "e.analytics.admin.v1alpha.BatchGetUserLi" + + "nksRequest\0329.google.analytics.admin.v1al" + + "pha.BatchGetUserLinksResponse\"l\202\323\344\223\002f\022//" + + "v1alpha/{parent=accounts/*}/userLinks:ba" + + "tchGetZ3\0221/v1alpha/{parent=properties/*}" + + "/userLinks:batchGet\022\341\001\n\rListUserLinks\0224." + + "google.analytics.admin.v1alpha.ListUserL" + + "inksRequest\0325.google.analytics.admin.v1a" + + "lpha.ListUserLinksResponse\"c\202\323\344\223\002T\022&/v1a" + + "lpha/{parent=accounts/*}/userLinksZ*\022(/v" + + "1alpha/{parent=properties/*}/userLinks\332A" + + "\006parent\022\355\001\n\016AuditUserLinks\0225.google.anal" + + "ytics.admin.v1alpha.AuditUserLinksReques" + + "t\0326.google.analytics.admin.v1alpha.Audit" + + "UserLinksResponse\"l\202\323\344\223\002f\",/v1alpha/{par" + + "ent=accounts/*}/userLinks:audit:\001*Z3\"./v" + + "1alpha/{parent=properties/*}/userLinks:a" + + "udit:\001*\022\367\001\n\016CreateUserLink\0225.google.anal" + + "ytics.admin.v1alpha.CreateUserLinkReques" + + "t\032(.google.analytics.admin.v1alpha.UserL" + + "ink\"\203\001\202\323\344\223\002j\"&/v1alpha/{parent=accounts/" + + "*}/userLinks:\tuser_linkZ5\"(/v1alpha/{par" + + "ent=properties/*}/userLinks:\tuser_link\332A" + + "\020parent,user_link\022\213\002\n\024BatchCreateUserLin" + + "ks\022;.google.analytics.admin.v1alpha.Batc" + + "hCreateUserLinksRequest\032<.google.analyti" + + "cs.admin.v1alpha.BatchCreateUserLinksRes" + + "ponse\"x\202\323\344\223\002r\"2/v1alpha/{parent=accounts" + + "/*}/userLinks:batchCreate:\001*Z9\"4/v1alpha" + + "/{parent=properties/*}/userLinks:batchCr" + + "eate:\001*\022\204\002\n\016UpdateUserLink\0225.google.anal" + + "ytics.admin.v1alpha.UpdateUserLinkReques" + + "t\032(.google.analytics.admin.v1alpha.UserL" + + "ink\"\220\001\202\323\344\223\002~20/v1alpha/{user_link.name=a" + + "ccounts/*/userLinks/*}:\tuser_linkZ?22/v1" + + "alpha/{user_link.name=properties/*/userL" + + "inks/*}:\tuser_link\332A\tuser_link\022\213\002\n\024Batch" + + "UpdateUserLinks\022;.google.analytics.admin" + + ".v1alpha.BatchUpdateUserLinksRequest\032<.g" + + "oogle.analytics.admin.v1alpha.BatchUpdat" + + "eUserLinksResponse\"x\202\323\344\223\002r\"2/v1alpha/{pa" + + "rent=accounts/*}/userLinks:batchUpdate:\001" + + "*Z9\"4/v1alpha/{parent=properties/*}/user" + + "Links:batchUpdate:\001*\022\302\001\n\016DeleteUserLink\022" + + "5.google.analytics.admin.v1alpha.DeleteU" + + "serLinkRequest\032\026.google.protobuf.Empty\"a" + + "\202\323\344\223\002T*&/v1alpha/{name=accounts/*/userLi" + + "nks/*}Z**(/v1alpha/{name=properties/*/us" + + "erLinks/*}\332A\004name\022\345\001\n\024BatchDeleteUserLin" + + "ks\022;.google.analytics.admin.v1alpha.Batc" + + "hDeleteUserLinksRequest\032\026.google.protobu" + + "f.Empty\"x\202\323\344\223\002r\"2/v1alpha/{parent=accoun" + + "ts/*}/userLinks:batchDelete:\001*Z9\"4/v1alp" + + "ha/{parent=properties/*}/userLinks:batch" + + "Delete:\001*\022\270\001\n\020GetWebDataStream\0227.google." + + "analytics.admin.v1alpha.GetWebDataStream" + + "Request\032-.google.analytics.admin.v1alpha" + + ".WebDataStream\"<\202\323\344\223\002/\022-/v1alpha/{name=p" + + "roperties/*/webDataStreams/*}\332A\004name\022\247\001\n" + + "\023DeleteWebDataStream\022:.google.analytics." + + "admin.v1alpha.DeleteWebDataStreamRequest" + + "\032\026.google.protobuf.Empty\"<\202\323\344\223\002/*-/v1alp" + + "ha/{name=properties/*/webDataStreams/*}\332" + + "A\004name\022\366\001\n\023UpdateWebDataStream\022:.google." + + "analytics.admin.v1alpha.UpdateWebDataStr" + + "eamRequest\032-.google.analytics.admin.v1al" + + "pha.WebDataStream\"t\202\323\344\223\002P2=/v1alpha/{web" + + "_data_stream.name=properties/*/webDataSt" + + "reams/*}:\017web_data_stream\332A\033web_data_str" + + "eam,update_mask\022\341\001\n\023CreateWebDataStream\022" + + ":.google.analytics.admin.v1alpha.CreateW" + + "ebDataStreamRequest\032-.google.analytics.a" + + "dmin.v1alpha.WebDataStream\"_\202\323\344\223\002@\"-/v1a" + + "lpha/{parent=properties/*}/webDataStream" + + "s:\017web_data_stream\332A\026parent,web_data_str" + + "eam\022\313\001\n\022ListWebDataStreams\0229.google.anal" + + "ytics.admin.v1alpha.ListWebDataStreamsRe" + + "quest\032:.google.analytics.admin.v1alpha.L" + + "istWebDataStreamsResponse\">\202\323\344\223\002/\022-/v1al" + + "pha/{parent=properties/*}/webDataStreams" + + "\332A\006parent\022\304\001\n\023GetIosAppDataStream\022:.goog" + + "le.analytics.admin.v1alpha.GetIosAppData" + + "StreamRequest\0320.google.analytics.admin.v" + + "1alpha.IosAppDataStream\"?\202\323\344\223\0022\0220/v1alph" + + "a/{name=properties/*/iosAppDataStreams/*" + + "}\332A\004name\022\260\001\n\026DeleteIosAppDataStream\022=.go" + + "ogle.analytics.admin.v1alpha.DeleteIosAp" + + "pDataStreamRequest\032\026.google.protobuf.Emp" + + "ty\"?\202\323\344\223\0022*0/v1alpha/{name=properties/*/" + + "iosAppDataStreams/*}\332A\004name\022\217\002\n\026UpdateIo" + + "sAppDataStream\022=.google.analytics.admin." + + "v1alpha.UpdateIosAppDataStreamRequest\0320." + + "google.analytics.admin.v1alpha.IosAppDat" + + "aStream\"\203\001\202\323\344\223\002[2D/v1alpha/{ios_app_data" + + "_stream.name=properties/*/iosAppDataStre" + + "ams/*}:\023ios_app_data_stream\332A\037ios_app_da" + + "ta_stream,update_mask\022\327\001\n\025ListIosAppData" + + "Streams\022<.google.analytics.admin.v1alpha" + + ".ListIosAppDataStreamsRequest\032=.google.a" + + "nalytics.admin.v1alpha.ListIosAppDataStr" + + "eamsResponse\"A\202\323\344\223\0022\0220/v1alpha/{parent=p" + + "roperties/*}/iosAppDataStreams\332A\006parent\022" + + "\324\001\n\027GetAndroidAppDataStream\022>.google.ana" + + "lytics.admin.v1alpha.GetAndroidAppDataSt" + + "reamRequest\0324.google.analytics.admin.v1a" + + "lpha.AndroidAppDataStream\"C\202\323\344\223\0026\0224/v1al" + + "pha/{name=properties/*/androidAppDataStr" + + "eams/*}\332A\004name\022\274\001\n\032DeleteAndroidAppDataS" + + "tream\022A.google.analytics.admin.v1alpha.D" + + "eleteAndroidAppDataStreamRequest\032\026.googl" + + "e.protobuf.Empty\"C\202\323\344\223\0026*4/v1alpha/{name" + + "=properties/*/androidAppDataStreams/*}\332A" + + "\004name\022\253\002\n\032UpdateAndroidAppDataStream\022A.g" + + "oogle.analytics.admin.v1alpha.UpdateAndr" + + "oidAppDataStreamRequest\0324.google.analyti" + + "cs.admin.v1alpha.AndroidAppDataStream\"\223\001" + + "\202\323\344\223\002g2L/v1alpha/{android_app_data_strea" + + "m.name=properties/*/androidAppDataStream" + + "s/*}:\027android_app_data_stream\332A#android_" + + "app_data_stream,update_mask\022\347\001\n\031ListAndr" + + "oidAppDataStreams\022@.google.analytics.adm" + + "in.v1alpha.ListAndroidAppDataStreamsRequ" + + "est\032A.google.analytics.admin.v1alpha.Lis" + + "tAndroidAppDataStreamsResponse\"E\202\323\344\223\0026\0224" + + "/v1alpha/{parent=properties/*}/androidAp" + + "pDataStreams\332A\006parent\022\376\001\n\036GetEnhancedMea" + + "surementSettings\022E.google.analytics.admi" + + "n.v1alpha.GetEnhancedMeasurementSettings" + + "Request\032;.google.analytics.admin.v1alpha" + + ".EnhancedMeasurementSettings\"X\202\323\344\223\002K\022I/v" + + "1alpha/{name=properties/*/webDataStreams" + + "/*/enhancedMeasurementSettings}\332A\004name\022\350" + + "\002\n!UpdateEnhancedMeasurementSettings\022H.g" + + "oogle.analytics.admin.v1alpha.UpdateEnha" + + "ncedMeasurementSettingsRequest\032;.google." + + "analytics.admin.v1alpha.EnhancedMeasurem" + + "entSettings\"\273\001\202\323\344\223\002\210\0012g/v1alpha/{enhance" + + "d_measurement_settings.name=properties/*" + + "/webDataStreams/*/enhancedMeasurementSet" + + "tings}:\035enhanced_measurement_settings\332A)" + + "enhanced_measurement_settings,update_mas" + + "k\022\331\001\n\022CreateFirebaseLink\0229.google.analyt" + + "ics.admin.v1alpha.CreateFirebaseLinkRequ" + + "est\032,.google.analytics.admin.v1alpha.Fir" + + "ebaseLink\"Z\202\323\344\223\002=\",/v1alpha/{parent=prop" + + "erties/*}/firebaseLinks:\rfirebase_link\332A" + + "\024parent,firebase_link\022\244\001\n\022DeleteFirebase" + + "Link\0229.google.analytics.admin.v1alpha.De" + + "leteFirebaseLinkRequest\032\026.google.protobu" + + "f.Empty\";\202\323\344\223\002.*,/v1alpha/{name=properti" + + "es/*/firebaseLinks/*}\332A\004name\022\307\001\n\021ListFir" + + "ebaseLinks\0228.google.analytics.admin.v1al" + + "pha.ListFirebaseLinksRequest\0329.google.an" + + "alytics.admin.v1alpha.ListFirebaseLinksR" + + "esponse\"=\202\323\344\223\002.\022,/v1alpha/{parent=proper" + + "ties/*}/firebaseLinks\332A\006parent\022\306\001\n\020GetGl" + + "obalSiteTag\0227.google.analytics.admin.v1a" + + "lpha.GetGlobalSiteTagRequest\032-.google.an" + + "alytics.admin.v1alpha.GlobalSiteTag\"J\202\323\344" + + "\223\002=\022;/v1alpha/{name=properties/*/webData" + + "Streams/*/globalSiteTag}\332A\004name\022\341\001\n\023Crea" + + "teGoogleAdsLink\022:.google.analytics.admin" + + ".v1alpha.CreateGoogleAdsLinkRequest\032-.go" + + "ogle.analytics.admin.v1alpha.GoogleAdsLi" + + "nk\"_\202\323\344\223\002@\"-/v1alpha/{parent=properties/" + + "*}/googleAdsLinks:\017google_ads_link\332A\026par" + + "ent,google_ads_link\022\366\001\n\023UpdateGoogleAdsL" + + "ink\022:.google.analytics.admin.v1alpha.Upd" + + "ateGoogleAdsLinkRequest\032-.google.analyti" + + "cs.admin.v1alpha.GoogleAdsLink\"t\202\323\344\223\002P2=" + + "/v1alpha/{google_ads_link.name=propertie" + + "s/*/googleAdsLinks/*}:\017google_ads_link\332A" + + "\033google_ads_link,update_mask\022\247\001\n\023DeleteG" + + "oogleAdsLink\022:.google.analytics.admin.v1" + + "alpha.DeleteGoogleAdsLinkRequest\032\026.googl" + + "e.protobuf.Empty\"<\202\323\344\223\002/*-/v1alpha/{name" + + "=properties/*/googleAdsLinks/*}\332A\004name\022\313" + + "\001\n\022ListGoogleAdsLinks\0229.google.analytics" + + ".admin.v1alpha.ListGoogleAdsLinksRequest" + + "\032:.google.analytics.admin.v1alpha.ListGo" + + "ogleAdsLinksResponse\">\202\323\344\223\002/\022-/v1alpha/{" + + "parent=properties/*}/googleAdsLinks\332A\006pa" + + "rent\022\313\001\n\026GetDataSharingSettings\022=.google" + + ".analytics.admin.v1alpha.GetDataSharingS" + + "ettingsRequest\0323.google.analytics.admin." + + "v1alpha.DataSharingSettings\"=\202\323\344\223\0020\022./v1" + + "alpha/{name=accounts/*/dataSharingSettin" + + "gs}\332A\004name\022\241\003\n\034GetMeasurementProtocolSec" + + "ret\022C.google.analytics.admin.v1alpha.Get" + + "MeasurementProtocolSecretRequest\0329.googl" + + "e.analytics.admin.v1alpha.MeasurementPro" + + "tocolSecret\"\200\002\202\323\344\223\002\362\001\022J/v1alpha/{name=pr" + + "operties/*/webDataStreams/*/measurementP" + + "rotocolSecrets/*}ZO\022M/v1alpha/{name=prop" + "erties/*/iosAppDataStreams/*/measurement" - + "ProtocolSecrets/*}:\033measurement_protocol" - + "_secretZ\214\0012m/v1alpha/{measurement_protoc" - + "ol_secret.name=properties/*/androidAppDa" - + "taStreams/*/measurementProtocolSecrets/*" - + "}:\033measurement_protocol_secret\332A\'measure" - + "ment_protocol_secret,update_mask\022\344\001\n\031Sea" - + "rchChangeHistoryEvents\022@.google.analytic" - + "s.admin.v1alpha.SearchChangeHistoryEvent" - + "sRequest\032A.google.analytics.admin.v1alph" - + "a.SearchChangeHistoryEventsResponse\"B\202\323\344" - + "\223\002<\"7/v1alpha/{account=accounts/*}:searc" - + "hChangeHistoryEvents:\001*\022\325\001\n\030GetGoogleSig" - + "nalsSettings\022?.google.analytics.admin.v1" - + "alpha.GetGoogleSignalsSettingsRequest\0325." - + "google.analytics.admin.v1alpha.GoogleSig" - + "nalsSettings\"A\202\323\344\223\0024\0222/v1alpha/{name=pro" - + "perties/*/googleSignalsSettings}\332A\004name\022" - + "\254\002\n\033UpdateGoogleSignalsSettings\022B.google" - + ".analytics.admin.v1alpha.UpdateGoogleSig" - + "nalsSettingsRequest\0325.google.analytics.a" - + "dmin.v1alpha.GoogleSignalsSettings\"\221\001\202\323\344" - + "\223\002e2J/v1alpha/{google_signals_settings.n" - + "ame=properties/*/googleSignalsSettings}:" - + "\027google_signals_settings\332A#google_signal" - + "s_settings,update_mask\022\353\001\n\025CreateConvers" - + "ionEvent\022<.google.analytics.admin.v1alph" - + "a.CreateConversionEventRequest\032/.google." - + "analytics.admin.v1alpha.ConversionEvent\"" - + "c\202\323\344\223\002C\"//v1alpha/{parent=properties/*}/" - + "conversionEvents:\020conversion_event\332A\027par" - + "ent,conversion_event\022\300\001\n\022GetConversionEv" - + "ent\0229.google.analytics.admin.v1alpha.Get" - + "ConversionEventRequest\032/.google.analytic" - + "s.admin.v1alpha.ConversionEvent\">\202\323\344\223\0021\022" - + "//v1alpha/{name=properties/*/conversionE" - + "vents/*}\332A\004name\022\255\001\n\025DeleteConversionEven" - + "t\022<.google.analytics.admin.v1alpha.Delet" - + "eConversionEventRequest\032\026.google.protobu" - + "f.Empty\">\202\323\344\223\0021*//v1alpha/{name=properti" - + "es/*/conversionEvents/*}\332A\004name\022\323\001\n\024List" - + "ConversionEvents\022;.google.analytics.admi" - + "n.v1alpha.ListConversionEventsRequest\032<." - + "google.analytics.admin.v1alpha.ListConve" - + "rsionEventsResponse\"@\202\323\344\223\0021\022//v1alpha/{p" - + "arent=properties/*}/conversionEvents\332A\006p" - + "arent\022\353\001\n\025CreateCustomDimension\022<.google" - + ".analytics.admin.v1alpha.CreateCustomDim" - + "ensionRequest\032/.google.analytics.admin.v" - + "1alpha.CustomDimension\"c\202\323\344\223\002C\"//v1alpha" - + "/{parent=properties/*}/customDimensions:" - + "\020custom_dimension\332A\027parent,custom_dimens" - + "ion\022\201\002\n\025UpdateCustomDimension\022<.google.a" - + "nalytics.admin.v1alpha.UpdateCustomDimen" - + "sionRequest\032/.google.analytics.admin.v1a" - + "lpha.CustomDimension\"y\202\323\344\223\002T2@/v1alpha/{" - + "custom_dimension.name=properties/*/custo" - + "mDimensions/*}:\020custom_dimension\332A\034custo" - + "m_dimension,update_mask\022\323\001\n\024ListCustomDi" - + "mensions\022;.google.analytics.admin.v1alph" - + "a.ListCustomDimensionsRequest\032<.google.a" - + "nalytics.admin.v1alpha.ListCustomDimensi" - + "onsResponse\"@\202\323\344\223\0021\022//v1alpha/{parent=pr" - + "operties/*}/customDimensions\332A\006parent\022\272\001" - + "\n\026ArchiveCustomDimension\022=.google.analyt" - + "ics.admin.v1alpha.ArchiveCustomDimension" - + "Request\032\026.google.protobuf.Empty\"I\202\323\344\223\002<\"" - + "7/v1alpha/{name=properties/*/customDimen" - + "sions/*}:archive:\001*\332A\004name\022\300\001\n\022GetCustom" - + "Dimension\0229.google.analytics.admin.v1alp" - + "ha.GetCustomDimensionRequest\032/.google.an" - + "alytics.admin.v1alpha.CustomDimension\">\202" - + "\323\344\223\0021\022//v1alpha/{name=properties/*/custo" - + "mDimensions/*}\332A\004name\022\331\001\n\022CreateCustomMe" - + "tric\0229.google.analytics.admin.v1alpha.Cr" - + "eateCustomMetricRequest\032,.google.analyti" - + "cs.admin.v1alpha.CustomMetric\"Z\202\323\344\223\002=\",/" + + "ProtocolSecrets/*}ZS\022Q/v1alpha/{name=pro" + + "perties/*/androidAppDataStreams/*/measur" + + "ementProtocolSecrets/*}\332A\004name\022\264\003\n\036ListM" + + "easurementProtocolSecrets\022E.google.analy" + + "tics.admin.v1alpha.ListMeasurementProtoc" + + "olSecretsRequest\032F.google.analytics.admi" + + "n.v1alpha.ListMeasurementProtocolSecrets" + + "Response\"\202\002\202\323\344\223\002\362\001\022J/v1alpha/{parent=pro" + + "perties/*/webDataStreams/*}/measurementP" + + "rotocolSecretsZO\022M/v1alpha/{parent=prope" + + "rties/*/iosAppDataStreams/*}/measurement" + + "ProtocolSecretsZS\022Q/v1alpha/{parent=prop" + + "erties/*/androidAppDataStreams/*}/measur" + + "ementProtocolSecrets\332A\006parent\022\234\004\n\037Create" + + "MeasurementProtocolSecret\022F.google.analy" + + "tics.admin.v1alpha.CreateMeasurementProt" + + "ocolSecretRequest\0329.google.analytics.adm" + + "in.v1alpha.MeasurementProtocolSecret\"\365\002\202" + + "\323\344\223\002\311\002\"J/v1alpha/{parent=properties/*/we" + + "bDataStreams/*}/measurementProtocolSecre" + + "ts:\033measurement_protocol_secretZl\"M/v1al" + + "pha/{parent=properties/*/iosAppDataStrea" + + "ms/*}/measurementProtocolSecrets:\033measur" + + "ement_protocol_secretZp\"Q/v1alpha/{paren" + + "t=properties/*/androidAppDataStreams/*}/" + + "measurementProtocolSecrets:\033measurement_" + + "protocol_secret\332A\"parent,measurement_pro" + + "tocol_secret\022\204\003\n\037DeleteMeasurementProtoc" + + "olSecret\022F.google.analytics.admin.v1alph" + + "a.DeleteMeasurementProtocolSecretRequest" + + "\032\026.google.protobuf.Empty\"\200\002\202\323\344\223\002\362\001*J/v1a" + + "lpha/{name=properties/*/webDataStreams/*" + + "/measurementProtocolSecrets/*}ZO*M/v1alp" + + "ha/{name=properties/*/iosAppDataStreams/" + + "*/measurementProtocolSecrets/*}ZS*Q/v1al" + + "pha/{name=properties/*/androidAppDataStr" + + "eams/*/measurementProtocolSecrets/*}\332A\004n" + + "ame\022\367\004\n\037UpdateMeasurementProtocolSecret\022" + + "F.google.analytics.admin.v1alpha.UpdateM" + + "easurementProtocolSecretRequest\0329.google" + + ".analytics.admin.v1alpha.MeasurementProt" + + "ocolSecret\"\320\003\202\323\344\223\002\237\0032f/v1alpha/{measurem" + + "ent_protocol_secret.name=properties/*/we" + + "bDataStreams/*/measurementProtocolSecret" + + "s/*}:\033measurement_protocol_secretZ\210\0012i/v" + + "1alpha/{measurement_protocol_secret.name" + + "=properties/*/iosAppDataStreams/*/measur" + + "ementProtocolSecrets/*}:\033measurement_pro" + + "tocol_secretZ\214\0012m/v1alpha/{measurement_p" + + "rotocol_secret.name=properties/*/android" + + "AppDataStreams/*/measurementProtocolSecr" + + "ets/*}:\033measurement_protocol_secret\332A\'me" + + "asurement_protocol_secret,update_mask\022\344\001" + + "\n\031SearchChangeHistoryEvents\022@.google.ana" + + "lytics.admin.v1alpha.SearchChangeHistory" + + "EventsRequest\032A.google.analytics.admin.v" + + "1alpha.SearchChangeHistoryEventsResponse" + + "\"B\202\323\344\223\002<\"7/v1alpha/{account=accounts/*}:" + + "searchChangeHistoryEvents:\001*\022\325\001\n\030GetGoog" + + "leSignalsSettings\022?.google.analytics.adm" + + "in.v1alpha.GetGoogleSignalsSettingsReque" + + "st\0325.google.analytics.admin.v1alpha.Goog" + + "leSignalsSettings\"A\202\323\344\223\0024\0222/v1alpha/{nam" + + "e=properties/*/googleSignalsSettings}\332A\004" + + "name\022\254\002\n\033UpdateGoogleSignalsSettings\022B.g" + + "oogle.analytics.admin.v1alpha.UpdateGoog" + + "leSignalsSettingsRequest\0325.google.analyt" + + "ics.admin.v1alpha.GoogleSignalsSettings\"" + + "\221\001\202\323\344\223\002e2J/v1alpha/{google_signals_setti" + + "ngs.name=properties/*/googleSignalsSetti" + + "ngs}:\027google_signals_settings\332A#google_s" + + "ignals_settings,update_mask\022\353\001\n\025CreateCo" + + "nversionEvent\022<.google.analytics.admin.v" + + "1alpha.CreateConversionEventRequest\032/.go" + + "ogle.analytics.admin.v1alpha.ConversionE" + + "vent\"c\202\323\344\223\002C\"//v1alpha/{parent=propertie" + + "s/*}/conversionEvents:\020conversion_event\332" + + "A\027parent,conversion_event\022\300\001\n\022GetConvers" + + "ionEvent\0229.google.analytics.admin.v1alph" + + "a.GetConversionEventRequest\032/.google.ana" + + "lytics.admin.v1alpha.ConversionEvent\">\202\323" + + "\344\223\0021\022//v1alpha/{name=properties/*/conver" + + "sionEvents/*}\332A\004name\022\255\001\n\025DeleteConversio" + + "nEvent\022<.google.analytics.admin.v1alpha." + + "DeleteConversionEventRequest\032\026.google.pr" + + "otobuf.Empty\">\202\323\344\223\0021*//v1alpha/{name=pro" + + "perties/*/conversionEvents/*}\332A\004name\022\323\001\n" + + "\024ListConversionEvents\022;.google.analytics" + + ".admin.v1alpha.ListConversionEventsReque" + + "st\032<.google.analytics.admin.v1alpha.List" + + "ConversionEventsResponse\"@\202\323\344\223\0021\022//v1alp" + + "ha/{parent=properties/*}/conversionEvent" + + "s\332A\006parent\022\370\001\n GetDisplayVideo360Adverti" + + "serLink\022G.google.analytics.admin.v1alpha" + + ".GetDisplayVideo360AdvertiserLinkRequest" + + "\032=.google.analytics.admin.v1alpha.Displa" + + "yVideo360AdvertiserLink\"L\202\323\344\223\002?\022=/v1alph" + + "a/{name=properties/*/displayVideo360Adve" + + "rtiserLinks/*}\332A\004name\022\213\002\n\"ListDisplayVid" + + "eo360AdvertiserLinks\022I.google.analytics." + + "admin.v1alpha.ListDisplayVideo360Adverti" + + "serLinksRequest\032J.google.analytics.admin" + + ".v1alpha.ListDisplayVideo360AdvertiserLi" + + "nksResponse\"N\202\323\344\223\002?\022=/v1alpha/{parent=pr" + + "operties/*}/displayVideo360AdvertiserLin" + + "ks\332A\006parent\022\306\002\n#CreateDisplayVideo360Adv" + + "ertiserLink\022J.google.analytics.admin.v1a" + + "lpha.CreateDisplayVideo360AdvertiserLink" + + "Request\032=.google.analytics.admin.v1alpha" + + ".DisplayVideo360AdvertiserLink\"\223\001\202\323\344\223\002b\"" + + "=/v1alpha/{parent=properties/*}/displayV" + + "ideo360AdvertiserLinks:!display_video_36" + + "0_advertiser_link\332A(parent,display_video" + + "_360_advertiser_link\022\327\001\n#DeleteDisplayVi" + + "deo360AdvertiserLink\022J.google.analytics." + + "admin.v1alpha.DeleteDisplayVideo360Adver" + + "tiserLinkRequest\032\026.google.protobuf.Empty" + + "\"L\202\323\344\223\002?*=/v1alpha/{name=properties/*/di" + + "splayVideo360AdvertiserLinks/*}\332A\004name\022\356" + + "\002\n#UpdateDisplayVideo360AdvertiserLink\022J" + + ".google.analytics.admin.v1alpha.UpdateDi" + + "splayVideo360AdvertiserLinkRequest\032=.goo" + + "gle.analytics.admin.v1alpha.DisplayVideo" + + "360AdvertiserLink\"\273\001\202\323\344\223\002\204\0012_/v1alpha/{d" + + "isplay_video_360_advertiser_link.name=pr" + + "operties/*/displayVideo360AdvertiserLink" + + "s/*}:!display_video_360_advertiser_link\332" + + "A-display_video_360_advertiser_link,upda" + + "te_mask\022\230\002\n(GetDisplayVideo360Advertiser" + + "LinkProposal\022O.google.analytics.admin.v1" + + "alpha.GetDisplayVideo360AdvertiserLinkPr" + + "oposalRequest\032E.google.analytics.admin.v" + + "1alpha.DisplayVideo360AdvertiserLinkProp" + + "osal\"T\202\323\344\223\002G\022E/v1alpha/{name=properties/" + + "*/displayVideo360AdvertiserLinkProposals" + + "/*}\332A\004name\022\253\002\n*ListDisplayVideo360Advert" + + "iserLinkProposals\022Q.google.analytics.adm" + + "in.v1alpha.ListDisplayVideo360Advertiser" + + "LinkProposalsRequest\032R.google.analytics." + + "admin.v1alpha.ListDisplayVideo360Adverti" + + "serLinkProposalsResponse\"V\202\323\344\223\002G\022E/v1alp" + + "ha/{parent=properties/*}/displayVideo360" + + "AdvertiserLinkProposals\332A\006parent\022\370\002\n+Cre" + + "ateDisplayVideo360AdvertiserLinkProposal" + + "\022R.google.analytics.admin.v1alpha.Create" + + "DisplayVideo360AdvertiserLinkProposalReq" + + "uest\032E.google.analytics.admin.v1alpha.Di" + + "splayVideo360AdvertiserLinkProposal\"\255\001\202\323" + + "\344\223\002s\"E/v1alpha/{parent=properties/*}/dis" + + "playVideo360AdvertiserLinkProposals:*dis" + + "play_video_360_advertiser_link_proposal\332" + + "A1parent,display_video_360_advertiser_li" + + "nk_proposal\022\357\001\n+DeleteDisplayVideo360Adv" + + "ertiserLinkProposal\022R.google.analytics.a" + + "dmin.v1alpha.DeleteDisplayVideo360Advert" + + "iserLinkProposalRequest\032\026.google.protobu" + + "f.Empty\"T\202\323\344\223\002G*E/v1alpha/{name=properti" + + "es/*/displayVideo360AdvertiserLinkPropos" + + "als/*}\332A\004name\022\263\002\n,ApproveDisplayVideo360" + + "AdvertiserLinkProposal\022S.google.analytic" + + "s.admin.v1alpha.ApproveDisplayVideo360Ad" + + "vertiserLinkProposalRequest\032T.google.ana" + + "lytics.admin.v1alpha.ApproveDisplayVideo" + + "360AdvertiserLinkProposalResponse\"X\202\323\344\223\002" + + "R\"M/v1alpha/{name=properties/*/displayVi" + + "deo360AdvertiserLinkProposals/*}:approve" + + ":\001*\022\241\002\n+CancelDisplayVideo360AdvertiserL" + + "inkProposal\022R.google.analytics.admin.v1a" + + "lpha.CancelDisplayVideo360AdvertiserLink" + + "ProposalRequest\032E.google.analytics.admin" + + ".v1alpha.DisplayVideo360AdvertiserLinkPr" + + "oposal\"W\202\323\344\223\002Q\"L/v1alpha/{name=propertie" + + "s/*/displayVideo360AdvertiserLinkProposa" + + "ls/*}:cancel:\001*\022\353\001\n\025CreateCustomDimensio" + + "n\022<.google.analytics.admin.v1alpha.Creat" + + "eCustomDimensionRequest\032/.google.analyti" + + "cs.admin.v1alpha.CustomDimension\"c\202\323\344\223\002C" + + "\"//v1alpha/{parent=properties/*}/customD" + + "imensions:\020custom_dimension\332A\027parent,cus" + + "tom_dimension\022\201\002\n\025UpdateCustomDimension\022" + + "<.google.analytics.admin.v1alpha.UpdateC" + + "ustomDimensionRequest\032/.google.analytics" + + ".admin.v1alpha.CustomDimension\"y\202\323\344\223\002T2@" + + "/v1alpha/{custom_dimension.name=properti" + + "es/*/customDimensions/*}:\020custom_dimensi" + + "on\332A\034custom_dimension,update_mask\022\323\001\n\024Li", + "stCustomDimensions\022;.google.analytics.ad" + + "min.v1alpha.ListCustomDimensionsRequest\032" + + "<.google.analytics.admin.v1alpha.ListCus" + + "tomDimensionsResponse\"@\202\323\344\223\0021\022//v1alpha/" + + "{parent=properties/*}/customDimensions\332A" + + "\006parent\022\272\001\n\026ArchiveCustomDimension\022=.goo" + + "gle.analytics.admin.v1alpha.ArchiveCusto" + + "mDimensionRequest\032\026.google.protobuf.Empt" + + "y\"I\202\323\344\223\002<\"7/v1alpha/{name=properties/*/c" + + "ustomDimensions/*}:archive:\001*\332A\004name\022\300\001\n" + + "\022GetCustomDimension\0229.google.analytics.a" + + "dmin.v1alpha.GetCustomDimensionRequest\032/" + + ".google.analytics.admin.v1alpha.CustomDi" + + "mension\">\202\323\344\223\0021\022//v1alpha/{name=properti" + + "es/*/customDimensions/*}\332A\004name\022\331\001\n\022Crea" + + "teCustomMetric\0229.google.analytics.admin." + + "v1alpha.CreateCustomMetricRequest\032,.goog" + + "le.analytics.admin.v1alpha.CustomMetric\"" + + "Z\202\323\344\223\002=\",/v1alpha/{parent=properties/*}/" + + "customMetrics:\rcustom_metric\332A\024parent,cu" + + "stom_metric\022\354\001\n\022UpdateCustomMetric\0229.goo" + + "gle.analytics.admin.v1alpha.UpdateCustom" + + "MetricRequest\032,.google.analytics.admin.v" + + "1alpha.CustomMetric\"m\202\323\344\223\002K2:/v1alpha/{c" + + "ustom_metric.name=properties/*/customMet" + + "rics/*}:\rcustom_metric\332A\031custom_metric,u" + + "pdate_mask\022\307\001\n\021ListCustomMetrics\0228.googl" + + "e.analytics.admin.v1alpha.ListCustomMetr" + + "icsRequest\0329.google.analytics.admin.v1al" + + "pha.ListCustomMetricsResponse\"=\202\323\344\223\002.\022,/" + "v1alpha/{parent=properties/*}/customMetr" - + "ics:\rcustom_metric\332A\024parent,custom_metri" - + "c\022\354\001\n\022UpdateCustomMetric\0229.google.analyt" - + "ics.admin.v1alpha.UpdateCustomMetricRequ" - + "est\032,.google.analytics.admin.v1alpha.Cus" - + "tomMetric\"m\202\323\344\223\002K2:/v1alpha/{custom_metr" - + "ic.name=properties/*/customMetrics/*}:\rc" - + "ustom_metric\332A\031custom_metric,update_mask" - + "\022\307\001\n\021ListCustomMetrics\0228.google.analytic" - + "s.admin.v1alpha.ListCustomMetricsRequest" - + "\0329.google.analytics.admin.v1alpha.ListCu" - + "stomMetricsResponse\"=\202\323\344\223\002.\022,/v1alpha/{p" - + "arent=properties/*}/customMetrics\332A\006pare" - + "nt\022\261\001\n\023ArchiveCustomMetric\022:.google.anal" - + "ytics.admin.v1alpha.ArchiveCustomMetricR" - + "equest\032\026.google.protobuf.Empty\"F\202\323\344\223\0029\"4" - + "/v1alpha/{name=properties/*/customMetric" - + "s/*}:archive:\001*\332A\004name\022\264\001\n\017GetCustomMetr" - + "ic\0226.google.analytics.admin.v1alpha.GetC" - + "ustomMetricRequest\032,.google.analytics.ad" - + "min.v1alpha.CustomMetric\";\202\323\344\223\002.\022,/v1alp" - + "ha/{name=properties/*/customMetrics/*}\332A" - + "\004name\032\374\001\312A\035analyticsadmin.googleapis.com" - + "\322A\330\001https://www.googleapis.com/auth/anal" - + "ytics.edit,https://www.googleapis.com/au" - + "th/analytics.manage.users,https://www.go" - + "ogleapis.com/auth/analytics.manage.users" - + ".readonly,https://www.googleapis.com/aut" - + "h/analytics.readonlyB\200\001\n\"com.google.anal" - + "ytics.admin.v1alphaB\023AnalyticsAdminProto" - + "P\001ZCgoogle.golang.org/genproto/googleapi" - + "s/analytics/admin/v1alpha;adminb\006proto3" + + "ics\332A\006parent\022\261\001\n\023ArchiveCustomMetric\022:.g" + + "oogle.analytics.admin.v1alpha.ArchiveCus" + + "tomMetricRequest\032\026.google.protobuf.Empty" + + "\"F\202\323\344\223\0029\"4/v1alpha/{name=properties/*/cu" + + "stomMetrics/*}:archive:\001*\332A\004name\022\264\001\n\017Get" + + "CustomMetric\0226.google.analytics.admin.v1" + + "alpha.GetCustomMetricRequest\032,.google.an" + + "alytics.admin.v1alpha.CustomMetric\";\202\323\344\223" + + "\002.\022,/v1alpha/{name=properties/*/customMe" + + "trics/*}\332A\004name\022\325\001\n\030GetDataRetentionSett" + + "ings\022?.google.analytics.admin.v1alpha.Ge" + + "tDataRetentionSettingsRequest\0325.google.a" + + "nalytics.admin.v1alpha.DataRetentionSett" + + "ings\"A\202\323\344\223\0024\0222/v1alpha/{name=properties/" + + "*/dataRetentionSettings}\332A\004name\022\254\002\n\033Upda" + + "teDataRetentionSettings\022B.google.analyti" + + "cs.admin.v1alpha.UpdateDataRetentionSett" + + "ingsRequest\0325.google.analytics.admin.v1a" + + "lpha.DataRetentionSettings\"\221\001\202\323\344\223\002e2J/v1" + + "alpha/{data_retention_settings.name=prop" + + "erties/*/dataRetentionSettings}:\027data_re" + + "tention_settings\332A#data_retention_settin" + + "gs,update_mask\032\374\001\312A\035analyticsadmin.googl" + + "eapis.com\322A\330\001https://www.googleapis.com/" + + "auth/analytics.edit,https://www.googleap" + + "is.com/auth/analytics.manage.users,https" + + "://www.googleapis.com/auth/analytics.man" + + "age.users.readonly,https://www.googleapi" + + "s.com/auth/analytics.readonlyB\200\001\n\"com.go" + + "ogle.analytics.admin.v1alphaB\023AnalyticsA" + + "dminProtoP\001ZCgoogle.golang.org/genproto/" + + "googleapis/analytics/admin/v1alpha;admin" + + "b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1484,16 +1698,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Parent", "FirebaseLink", }); - internal_static_google_analytics_admin_v1alpha_UpdateFirebaseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(47); - internal_static_google_analytics_admin_v1alpha_UpdateFirebaseLinkRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_UpdateFirebaseLinkRequest_descriptor, - new java.lang.String[] { - "FirebaseLink", "UpdateMask", - }); internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(47); internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor, @@ -1501,7 +1707,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(49); + getDescriptor().getMessageTypes().get(48); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor, @@ -1509,7 +1715,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(49); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor, @@ -1517,7 +1723,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirebaseLinks", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(50); internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor, @@ -1525,7 +1731,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(51); internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor, @@ -1533,7 +1739,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "GoogleAdsLink", }); internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(52); internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor, @@ -1541,7 +1747,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GoogleAdsLink", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(53); internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor, @@ -1549,7 +1755,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(54); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor, @@ -1557,7 +1763,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(55); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor, @@ -1565,7 +1771,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GoogleAdsLinks", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(57); + getDescriptor().getMessageTypes().get(56); internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor, @@ -1573,7 +1779,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor = - getDescriptor().getMessageTypes().get(58); + getDescriptor().getMessageTypes().get(57); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor, @@ -1581,7 +1787,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor = - getDescriptor().getMessageTypes().get(59); + getDescriptor().getMessageTypes().get(58); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor, @@ -1589,7 +1795,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AccountSummaries", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(60); + getDescriptor().getMessageTypes().get(59); internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor, @@ -1605,7 +1811,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PageToken", }); internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(61); + getDescriptor().getMessageTypes().get(60); internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor, @@ -1613,7 +1819,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ChangeHistoryEvents", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(62); + getDescriptor().getMessageTypes().get(61); internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor, @@ -1621,7 +1827,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(63); + getDescriptor().getMessageTypes().get(62); internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor, @@ -1629,7 +1835,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "MeasurementProtocolSecret", }); internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(64); + getDescriptor().getMessageTypes().get(63); internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor, @@ -1637,7 +1843,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor = - getDescriptor().getMessageTypes().get(65); + getDescriptor().getMessageTypes().get(64); internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor, @@ -1645,7 +1851,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MeasurementProtocolSecret", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor = - getDescriptor().getMessageTypes().get(66); + getDescriptor().getMessageTypes().get(65); internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor, @@ -1653,7 +1859,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor = - getDescriptor().getMessageTypes().get(67); + getDescriptor().getMessageTypes().get(66); internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor, @@ -1661,7 +1867,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MeasurementProtocolSecrets", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(68); + getDescriptor().getMessageTypes().get(67); internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor, @@ -1669,7 +1875,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(69); + getDescriptor().getMessageTypes().get(68); internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor, @@ -1677,7 +1883,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GoogleSignalsSettings", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(70); + getDescriptor().getMessageTypes().get(69); internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor, @@ -1685,7 +1891,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConversionEvent", "Parent", }); internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(71); + getDescriptor().getMessageTypes().get(70); internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor, @@ -1693,7 +1899,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor = - getDescriptor().getMessageTypes().get(72); + getDescriptor().getMessageTypes().get(71); internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor, @@ -1701,7 +1907,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor = - getDescriptor().getMessageTypes().get(73); + getDescriptor().getMessageTypes().get(72); internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor, @@ -1709,15 +1915,127 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor = - getDescriptor().getMessageTypes().get(74); + getDescriptor().getMessageTypes().get(73); internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor, new java.lang.String[] { "ConversionEvents", "NextPageToken", }); - internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor = + internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(74); + internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor = getDescriptor().getMessageTypes().get(75); + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor = + getDescriptor().getMessageTypes().get(76); + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor, + new java.lang.String[] { + "DisplayVideo360AdvertiserLinks", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(77); + internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor, + new java.lang.String[] { + "Parent", "DisplayVideo360AdvertiserLink", + }); + internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(78); + internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor = + getDescriptor().getMessageTypes().get(79); + internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor, + new java.lang.String[] { + "DisplayVideo360AdvertiserLink", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor = + getDescriptor().getMessageTypes().get(80); + internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor = + getDescriptor().getMessageTypes().get(81); + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor = + getDescriptor().getMessageTypes().get(82); + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor, + new java.lang.String[] { + "DisplayVideo360AdvertiserLinkProposals", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor = + getDescriptor().getMessageTypes().get(83); + internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor, + new java.lang.String[] { + "Parent", "DisplayVideo360AdvertiserLinkProposal", + }); + internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor = + getDescriptor().getMessageTypes().get(84); + internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor = + getDescriptor().getMessageTypes().get(85); + internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor = + getDescriptor().getMessageTypes().get(86); + internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor, + new java.lang.String[] { + "DisplayVideo360AdvertiserLink", + }); + internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor = + getDescriptor().getMessageTypes().get(87); + internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor = + getDescriptor().getMessageTypes().get(88); internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor, @@ -1725,7 +2043,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "CustomDimension", }); internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(76); + getDescriptor().getMessageTypes().get(89); internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor, @@ -1733,7 +2051,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomDimension", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor = - getDescriptor().getMessageTypes().get(77); + getDescriptor().getMessageTypes().get(90); internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor, @@ -1741,7 +2059,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor = - getDescriptor().getMessageTypes().get(78); + getDescriptor().getMessageTypes().get(91); internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor, @@ -1749,7 +2067,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomDimensions", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(79); + getDescriptor().getMessageTypes().get(92); internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor, @@ -1757,7 +2075,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor = - getDescriptor().getMessageTypes().get(80); + getDescriptor().getMessageTypes().get(93); internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor, @@ -1765,7 +2083,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(81); + getDescriptor().getMessageTypes().get(94); internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor, @@ -1773,7 +2091,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "CustomMetric", }); internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(82); + getDescriptor().getMessageTypes().get(95); internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor, @@ -1781,7 +2099,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomMetric", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor = - getDescriptor().getMessageTypes().get(83); + getDescriptor().getMessageTypes().get(96); internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor, @@ -1789,7 +2107,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor = - getDescriptor().getMessageTypes().get(84); + getDescriptor().getMessageTypes().get(97); internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor, @@ -1797,7 +2115,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomMetrics", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(85); + getDescriptor().getMessageTypes().get(98); internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor, @@ -1805,13 +2123,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor = - getDescriptor().getMessageTypes().get(86); + getDescriptor().getMessageTypes().get(99); internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor, new java.lang.String[] { "Name", }); + internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(100); + internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(101); + internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor, + new java.lang.String[] { + "DataRetentionSettings", "UpdateMask", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.java new file mode 100644 index 00000000..843a4385 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.java @@ -0,0 +1,719 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ApproveDisplayVideo360AdvertiserLinkProposal RPC.
+ * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} + */ +public final class ApproveDisplayVideo360AdvertiserLinkProposalRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) + ApproveDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() to construct. + private ApproveDisplayVideo360AdvertiserLinkProposalRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApproveDisplayVideo360AdvertiserLinkProposalRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ApproveDisplayVideo360AdvertiserLinkProposalRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ApproveDisplayVideo360AdvertiserLinkProposalRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + 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.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + .class, + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * 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.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest other = + (com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) + 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.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 message for ApproveDisplayVideo360AdvertiserLinkProposal RPC.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) + com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + .class, + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.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.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + build() { + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + buildPartial() { + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + result = + new com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest(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.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + other) { + if (other + == com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + .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.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * 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.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) + private static final com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest(); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + ApproveDisplayVideo360AdvertiserLinkProposalRequest> + PARSER = + new com.google.protobuf.AbstractParser< + ApproveDisplayVideo360AdvertiserLinkProposalRequest>() { + @java.lang.Override + public ApproveDisplayVideo360AdvertiserLinkProposalRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApproveDisplayVideo360AdvertiserLinkProposalRequest( + input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java new file mode 100644 index 00000000..db4a4828 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ApproveDisplayVideo360AdvertiserLinkProposalRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * 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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.java new file mode 100644 index 00000000..4e25cada --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponse.java @@ -0,0 +1,851 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ApproveDisplayVideo360AdvertiserLinkProposal RPC.
+ * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} + */ +public final class ApproveDisplayVideo360AdvertiserLinkProposalResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) + ApproveDisplayVideo360AdvertiserLinkProposalResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ApproveDisplayVideo360AdvertiserLinkProposalResponse.newBuilder() to construct. + private ApproveDisplayVideo360AdvertiserLinkProposalResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ApproveDisplayVideo360AdvertiserLinkProposalResponse() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ApproveDisplayVideo360AdvertiserLinkProposalResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ApproveDisplayVideo360AdvertiserLinkProposalResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + 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.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder subBuilder = + null; + if (displayVideo360AdvertiserLink_ != null) { + subBuilder = displayVideo360AdvertiserLink_.toBuilder(); + } + displayVideo360AdvertiserLink_ = + input.readMessage( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(displayVideo360AdvertiserLink_); + displayVideo360AdvertiserLink_ = 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.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + .class, + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + .Builder.class); + } + + public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + displayVideo360AdvertiserLink_; + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink created as a result of approving the
+   * proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + @java.lang.Override + public boolean hasDisplayVideo360AdvertiserLink() { + return displayVideo360AdvertiserLink_ != null; + } + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink created as a result of approving the
+   * proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return The displayVideo360AdvertiserLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink() { + return displayVideo360AdvertiserLink_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() + : displayVideo360AdvertiserLink_; + } + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink created as a result of approving the
+   * proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder() { + return getDisplayVideo360AdvertiserLink(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (displayVideo360AdvertiserLink_ != null) { + output.writeMessage(1, getDisplayVideo360AdvertiserLink()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (displayVideo360AdvertiserLink_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getDisplayVideo360AdvertiserLink()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse other = + (com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) + obj; + + if (hasDisplayVideo360AdvertiserLink() != other.hasDisplayVideo360AdvertiserLink()) + return false; + if (hasDisplayVideo360AdvertiserLink()) { + if (!getDisplayVideo360AdvertiserLink().equals(other.getDisplayVideo360AdvertiserLink())) + return false; + } + if (!unknownFields.equals(other.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 (hasDisplayVideo360AdvertiserLink()) { + hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER; + hash = (53 * hash) + getDisplayVideo360AdvertiserLink().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 message for ApproveDisplayVideo360AdvertiserLinkProposal RPC.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) + com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse.class, + com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.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 (displayVideo360AdvertiserLinkBuilder_ == null) { + displayVideo360AdvertiserLink_ = null; + } else { + displayVideo360AdvertiserLink_ = null; + displayVideo360AdvertiserLinkBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ApproveDisplayVideo360AdvertiserLinkProposalResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + build() { + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + buildPartial() { + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + result = + new com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse(this); + if (displayVideo360AdvertiserLinkBuilder_ == null) { + result.displayVideo360AdvertiserLink_ = displayVideo360AdvertiserLink_; + } else { + result.displayVideo360AdvertiserLink_ = displayVideo360AdvertiserLinkBuilder_.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.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + other) { + if (other + == com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + .getDefaultInstance()) return this; + if (other.hasDisplayVideo360AdvertiserLink()) { + mergeDisplayVideo360AdvertiserLink(other.getDisplayVideo360AdvertiserLink()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + displayVideo360AdvertiserLink_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + displayVideo360AdvertiserLinkBuilder_; + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink created as a result of approving the
+     * proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + public boolean hasDisplayVideo360AdvertiserLink() { + return displayVideo360AdvertiserLinkBuilder_ != null + || displayVideo360AdvertiserLink_ != null; + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink created as a result of approving the
+     * proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return The displayVideo360AdvertiserLink. + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink() { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + return displayVideo360AdvertiserLink_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() + : displayVideo360AdvertiserLink_; + } else { + return displayVideo360AdvertiserLinkBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink created as a result of approving the
+     * proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public Builder setDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + displayVideo360AdvertiserLink_ = value; + onChanged(); + } else { + displayVideo360AdvertiserLinkBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink created as a result of approving the
+     * proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public Builder setDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder builderForValue) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + displayVideo360AdvertiserLink_ = builderForValue.build(); + onChanged(); + } else { + displayVideo360AdvertiserLinkBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink created as a result of approving the
+     * proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public Builder mergeDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + if (displayVideo360AdvertiserLink_ != null) { + displayVideo360AdvertiserLink_ = + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.newBuilder( + displayVideo360AdvertiserLink_) + .mergeFrom(value) + .buildPartial(); + } else { + displayVideo360AdvertiserLink_ = value; + } + onChanged(); + } else { + displayVideo360AdvertiserLinkBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink created as a result of approving the
+     * proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public Builder clearDisplayVideo360AdvertiserLink() { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + displayVideo360AdvertiserLink_ = null; + onChanged(); + } else { + displayVideo360AdvertiserLink_ = null; + displayVideo360AdvertiserLinkBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink created as a result of approving the
+     * proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder + getDisplayVideo360AdvertiserLinkBuilder() { + + onChanged(); + return getDisplayVideo360AdvertiserLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink created as a result of approving the
+     * proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder() { + if (displayVideo360AdvertiserLinkBuilder_ != null) { + return displayVideo360AdvertiserLinkBuilder_.getMessageOrBuilder(); + } else { + return displayVideo360AdvertiserLink_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() + : displayVideo360AdvertiserLink_; + } + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink created as a result of approving the
+     * proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + getDisplayVideo360AdvertiserLinkFieldBuilder() { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + displayVideo360AdvertiserLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder>( + getDisplayVideo360AdvertiserLink(), getParentForChildren(), isClean()); + displayVideo360AdvertiserLink_ = null; + } + return displayVideo360AdvertiserLinkBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) + private static final com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse(); + } + + public static com.google.analytics.admin.v1alpha + .ApproveDisplayVideo360AdvertiserLinkProposalResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + ApproveDisplayVideo360AdvertiserLinkProposalResponse> + PARSER = + new com.google.protobuf.AbstractParser< + ApproveDisplayVideo360AdvertiserLinkProposalResponse>() { + @java.lang.Override + public ApproveDisplayVideo360AdvertiserLinkProposalResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ApproveDisplayVideo360AdvertiserLinkProposalResponse( + input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponseOrBuilder.java new file mode 100644 index 00000000..3bdcd0ef --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalResponseOrBuilder.java @@ -0,0 +1,71 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ApproveDisplayVideo360AdvertiserLinkProposalResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ApproveDisplayVideo360AdvertiserLinkProposalResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink created as a result of approving the
+   * proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + boolean hasDisplayVideo360AdvertiserLink(); + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink created as a result of approving the
+   * proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return The displayVideo360AdvertiserLink. + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink(); + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink created as a result of approving the
+   * proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.java new file mode 100644 index 00000000..af467a9a --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.java @@ -0,0 +1,716 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CancelDisplayVideo360AdvertiserLinkProposal RPC.
+ * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} + */ +public final class CancelDisplayVideo360AdvertiserLinkProposalRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) + CancelDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() to construct. + private CancelDisplayVideo360AdvertiserLinkProposalRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CancelDisplayVideo360AdvertiserLinkProposalRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CancelDisplayVideo360AdvertiserLinkProposalRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CancelDisplayVideo360AdvertiserLinkProposalRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + 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.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + .class, + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * 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.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest other = + (com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) 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.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 message for CancelDisplayVideo360AdvertiserLinkProposal RPC.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) + com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + .class, + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.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.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CancelDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + build() { + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + buildPartial() { + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest result = + new com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest( + 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.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + other) { + if (other + == com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + .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.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * 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.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) + private static final com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest(); + } + + public static com.google.analytics.admin.v1alpha + .CancelDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + CancelDisplayVideo360AdvertiserLinkProposalRequest> + PARSER = + new com.google.protobuf.AbstractParser< + CancelDisplayVideo360AdvertiserLinkProposalRequest>() { + @java.lang.Override + public CancelDisplayVideo360AdvertiserLinkProposalRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CancelDisplayVideo360AdvertiserLinkProposalRequest( + input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java new file mode 100644 index 00000000..9f4a2a4d --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CancelDisplayVideo360AdvertiserLinkProposalRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CancelDisplayVideo360AdvertiserLinkProposalRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * 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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java index eba78cee..bdc74a42 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java @@ -450,6 +450,98 @@ public interface ChangeHistoryResourceOrBuilder com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder getGoogleSignalsSettingsOrBuilder(); + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+     * history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + boolean hasDisplayVideo360AdvertiserLink(); + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+     * history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + * + * @return The displayVideo360AdvertiserLink. + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink(); + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+     * history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder(); + + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+     * change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + * + * @return Whether the displayVideo360AdvertiserLinkProposal field is set. + */ + boolean hasDisplayVideo360AdvertiserLinkProposal(); + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+     * change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + * + * @return The displayVideo360AdvertiserLinkProposal. + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDisplayVideo360AdvertiserLinkProposal(); + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+     * change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder + getDisplayVideo360AdvertiserLinkProposalOrBuilder(); + /** * * @@ -597,6 +689,45 @@ public interface ChangeHistoryResourceOrBuilder */ com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder(); + /** + * + * + *
+     * A snapshot of a data retention settings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + * + * @return Whether the dataRetentionSettings field is set. + */ + boolean hasDataRetentionSettings(); + /** + * + * + *
+     * A snapshot of a data retention settings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + * + * @return The dataRetentionSettings. + */ + com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetentionSettings(); + /** + * + * + *
+     * A snapshot of a data retention settings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + */ + com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder + getDataRetentionSettingsOrBuilder(); + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.ResourceCase getResourceCase(); } @@ -799,6 +930,51 @@ private ChangeHistoryResource( resourceCase_ = 8; break; } + case 74: + { + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder + subBuilder = null; + if (resourceCase_ == 9) { + subBuilder = + ((com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_) + .toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 9; + break; + } + case 82: + { + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + subBuilder = null; + if (resourceCase_ == 10) { + subBuilder = + ((com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + resource_) + .toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 10; + break; + } case 90: { com.google.analytics.admin.v1alpha.ConversionEvent.Builder subBuilder = null; @@ -876,6 +1052,26 @@ private ChangeHistoryResource( resourceCase_ = 14; break; } + case 122: + { + com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder subBuilder = null; + if (resourceCase_ == 15) { + subBuilder = + ((com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_) + .toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.DataRetentionSettings.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 15; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -926,10 +1122,13 @@ public enum ResourceCase FIREBASE_LINK(6), GOOGLE_ADS_LINK(7), GOOGLE_SIGNALS_SETTINGS(8), + DISPLAY_VIDEO_360_ADVERTISER_LINK(9), + DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL(10), CONVERSION_EVENT(11), MEASUREMENT_PROTOCOL_SECRET(12), CUSTOM_DIMENSION(13), CUSTOM_METRIC(14), + DATA_RETENTION_SETTINGS(15), RESOURCE_NOT_SET(0); private final int value; @@ -964,6 +1163,10 @@ public static ResourceCase forNumber(int value) { return GOOGLE_ADS_LINK; case 8: return GOOGLE_SIGNALS_SETTINGS; + case 9: + return DISPLAY_VIDEO_360_ADVERTISER_LINK; + case 10: + return DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL; case 11: return CONVERSION_EVENT; case 12: @@ -972,6 +1175,8 @@ public static ResourceCase forNumber(int value) { return CUSTOM_DIMENSION; case 14: return CUSTOM_METRIC; + case 15: + return DATA_RETENTION_SETTINGS; case 0: return RESOURCE_NOT_SET; default: @@ -1405,6 +1610,132 @@ public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignals return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); } + public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER = 9; + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+     * history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + @java.lang.Override + public boolean hasDisplayVideo360AdvertiserLink() { + return resourceCase_ == 9; + } + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+     * history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + * + * @return The displayVideo360AdvertiserLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink() { + if (resourceCase_ == 9) { + return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_; + } + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+     * history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder() { + if (resourceCase_ == 9) { + return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_; + } + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance(); + } + + public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL_FIELD_NUMBER = 10; + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+     * change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + * + * @return Whether the displayVideo360AdvertiserLinkProposal field is set. + */ + @java.lang.Override + public boolean hasDisplayVideo360AdvertiserLinkProposal() { + return resourceCase_ == 10; + } + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+     * change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + * + * @return The displayVideo360AdvertiserLinkProposal. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDisplayVideo360AdvertiserLinkProposal() { + if (resourceCase_ == 10) { + return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) resource_; + } + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+     * change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder + getDisplayVideo360AdvertiserLinkProposalOrBuilder() { + if (resourceCase_ == 10) { + return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) resource_; + } + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance(); + } + public static final int CONVERSION_EVENT_FIELD_NUMBER = 11; /** * @@ -1619,6 +1950,61 @@ public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricO return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); } + public static final int DATA_RETENTION_SETTINGS_FIELD_NUMBER = 15; + /** + * + * + *
+     * A snapshot of a data retention settings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + * + * @return Whether the dataRetentionSettings field is set. + */ + @java.lang.Override + public boolean hasDataRetentionSettings() { + return resourceCase_ == 15; + } + /** + * + * + *
+     * A snapshot of a data retention settings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + * + * @return The dataRetentionSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetentionSettings() { + if (resourceCase_ == 15) { + return (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a data retention settings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder + getDataRetentionSettingsOrBuilder() { + if (resourceCase_ == 15) { + return (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1658,6 +2044,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 8, (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_); } + if (resourceCase_ == 9) { + output.writeMessage( + 9, (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_); + } + if (resourceCase_ == 10) { + output.writeMessage( + 10, + (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) resource_); + } if (resourceCase_ == 11) { output.writeMessage(11, (com.google.analytics.admin.v1alpha.ConversionEvent) resource_); } @@ -1671,6 +2066,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (resourceCase_ == 14) { output.writeMessage(14, (com.google.analytics.admin.v1alpha.CustomMetric) resource_); } + if (resourceCase_ == 15) { + output.writeMessage( + 15, (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_); + } unknownFields.writeTo(output); } @@ -1720,6 +2119,18 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 8, (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_); } + if (resourceCase_ == 9) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_); + } + if (resourceCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, + (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + resource_); + } if (resourceCase_ == 11) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -1740,6 +2151,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 14, (com.google.analytics.admin.v1alpha.CustomMetric) resource_); } + if (resourceCase_ == 15) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 15, (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1784,6 +2200,14 @@ public boolean equals(final java.lang.Object obj) { case 8: if (!getGoogleSignalsSettings().equals(other.getGoogleSignalsSettings())) return false; break; + case 9: + if (!getDisplayVideo360AdvertiserLink().equals(other.getDisplayVideo360AdvertiserLink())) + return false; + break; + case 10: + if (!getDisplayVideo360AdvertiserLinkProposal() + .equals(other.getDisplayVideo360AdvertiserLinkProposal())) return false; + break; case 11: if (!getConversionEvent().equals(other.getConversionEvent())) return false; break; @@ -1797,6 +2221,9 @@ public boolean equals(final java.lang.Object obj) { case 14: if (!getCustomMetric().equals(other.getCustomMetric())) return false; break; + case 15: + if (!getDataRetentionSettings().equals(other.getDataRetentionSettings())) return false; + break; case 0: default: } @@ -1844,6 +2271,14 @@ public int hashCode() { hash = (37 * hash) + GOOGLE_SIGNALS_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getGoogleSignalsSettings().hashCode(); break; + case 9: + hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER; + hash = (53 * hash) + getDisplayVideo360AdvertiserLink().hashCode(); + break; + case 10: + hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL_FIELD_NUMBER; + hash = (53 * hash) + getDisplayVideo360AdvertiserLinkProposal().hashCode(); + break; case 11: hash = (37 * hash) + CONVERSION_EVENT_FIELD_NUMBER; hash = (53 * hash) + getConversionEvent().hashCode(); @@ -1860,6 +2295,10 @@ public int hashCode() { hash = (37 * hash) + CUSTOM_METRIC_FIELD_NUMBER; hash = (53 * hash) + getCustomMetric().hashCode(); break; + case 15: + hash = (37 * hash) + DATA_RETENTION_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getDataRetentionSettings().hashCode(); + break; case 0: default: } @@ -2110,6 +2549,20 @@ public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResou result.resource_ = googleSignalsSettingsBuilder_.build(); } } + if (resourceCase_ == 9) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = displayVideo360AdvertiserLinkBuilder_.build(); + } + } + if (resourceCase_ == 10) { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = displayVideo360AdvertiserLinkProposalBuilder_.build(); + } + } if (resourceCase_ == 11) { if (conversionEventBuilder_ == null) { result.resource_ = resource_; @@ -2138,6 +2591,13 @@ public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResou result.resource_ = customMetricBuilder_.build(); } } + if (resourceCase_ == 15) { + if (dataRetentionSettingsBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = dataRetentionSettingsBuilder_.build(); + } + } result.resourceCase_ = resourceCase_; onBuilt(); return result; @@ -2237,6 +2697,17 @@ public Builder mergeFrom( mergeGoogleSignalsSettings(other.getGoogleSignalsSettings()); break; } + case DISPLAY_VIDEO_360_ADVERTISER_LINK: + { + mergeDisplayVideo360AdvertiserLink(other.getDisplayVideo360AdvertiserLink()); + break; + } + case DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL: + { + mergeDisplayVideo360AdvertiserLinkProposal( + other.getDisplayVideo360AdvertiserLinkProposal()); + break; + } case CONVERSION_EVENT: { mergeConversionEvent(other.getConversionEvent()); @@ -2257,6 +2728,11 @@ public Builder mergeFrom( mergeCustomMetric(other.getCustomMetric()); break; } + case DATA_RETENTION_SETTINGS: + { + mergeDataRetentionSettings(other.getDataRetentionSettings()); + break; + } case RESOURCE_NOT_SET: { break; @@ -4019,6 +4495,510 @@ public Builder clearGoogleSignalsSettings() { return googleSignalsSettingsBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + displayVideo360AdvertiserLinkBuilder_; + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + @java.lang.Override + public boolean hasDisplayVideo360AdvertiserLink() { + return resourceCase_ == 9; + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + * + * @return The displayVideo360AdvertiserLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink() { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + if (resourceCase_ == 9) { + return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_; + } + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + .getDefaultInstance(); + } else { + if (resourceCase_ == 9) { + return displayVideo360AdvertiserLinkBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + .getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + */ + public Builder setDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + displayVideo360AdvertiserLinkBuilder_.setMessage(value); + } + resourceCase_ = 9; + return this; + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + */ + public Builder setDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder + builderForValue) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + displayVideo360AdvertiserLinkBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 9; + return this; + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + */ + public Builder mergeDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + if (resourceCase_ == 9 + && resource_ + != com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + .getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.newBuilder( + (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) + resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 9) { + displayVideo360AdvertiserLinkBuilder_.mergeFrom(value); + } + displayVideo360AdvertiserLinkBuilder_.setMessage(value); + } + resourceCase_ = 9; + return this; + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + */ + public Builder clearDisplayVideo360AdvertiserLink() { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + if (resourceCase_ == 9) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 9) { + resourceCase_ = 0; + resource_ = null; + } + displayVideo360AdvertiserLinkBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder + getDisplayVideo360AdvertiserLinkBuilder() { + return getDisplayVideo360AdvertiserLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder() { + if ((resourceCase_ == 9) && (displayVideo360AdvertiserLinkBuilder_ != null)) { + return displayVideo360AdvertiserLinkBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 9) { + return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_; + } + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + .getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLink resource in change
+       * history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + getDisplayVideo360AdvertiserLinkFieldBuilder() { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + if (!(resourceCase_ == 9)) { + resource_ = + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + .getDefaultInstance(); + } + displayVideo360AdvertiserLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder>( + (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 9; + onChanged(); + ; + return displayVideo360AdvertiserLinkBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> + displayVideo360AdvertiserLinkProposalBuilder_; + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+       * change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + * + * @return Whether the displayVideo360AdvertiserLinkProposal field is set. + */ + @java.lang.Override + public boolean hasDisplayVideo360AdvertiserLinkProposal() { + return resourceCase_ == 10; + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+       * change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + * + * @return The displayVideo360AdvertiserLinkProposal. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDisplayVideo360AdvertiserLinkProposal() { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + if (resourceCase_ == 10) { + return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + resource_; + } + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance(); + } else { + if (resourceCase_ == 10) { + return displayVideo360AdvertiserLinkProposalBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+       * change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + */ + public Builder setDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal value) { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalBuilder_.setMessage(value); + } + resourceCase_ = 10; + return this; + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+       * change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + */ + public Builder setDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + builderForValue) { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 10; + return this; + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+       * change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + */ + public Builder mergeDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal value) { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + if (resourceCase_ == 10 + && resource_ + != com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.newBuilder( + (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 10) { + displayVideo360AdvertiserLinkProposalBuilder_.mergeFrom(value); + } + displayVideo360AdvertiserLinkProposalBuilder_.setMessage(value); + } + resourceCase_ = 10; + return this; + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+       * change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + */ + public Builder clearDisplayVideo360AdvertiserLinkProposal() { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + if (resourceCase_ == 10) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 10) { + resourceCase_ = 0; + resource_ = null; + } + displayVideo360AdvertiserLinkProposalBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+       * change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + getDisplayVideo360AdvertiserLinkProposalBuilder() { + return getDisplayVideo360AdvertiserLinkProposalFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+       * change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder + getDisplayVideo360AdvertiserLinkProposalOrBuilder() { + if ((resourceCase_ == 10) && (displayVideo360AdvertiserLinkProposalBuilder_ != null)) { + return displayVideo360AdvertiserLinkProposalBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 10) { + return (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + resource_; + } + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in
+       * change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> + getDisplayVideo360AdvertiserLinkProposalFieldBuilder() { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + if (!(resourceCase_ == 10)) { + resource_ = + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance(); + } + displayVideo360AdvertiserLinkProposalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, + com.google.analytics.admin.v1alpha + .DisplayVideo360AdvertiserLinkProposalOrBuilder>( + (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 10; + onChanged(); + ; + return displayVideo360AdvertiserLinkProposalBuilder_; + } + private com.google.protobuf.SingleFieldBuilderV3< com.google.analytics.admin.v1alpha.ConversionEvent, com.google.analytics.admin.v1alpha.ConversionEvent.Builder, @@ -4890,6 +5870,231 @@ public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricO return customMetricBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataRetentionSettings, + com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder> + dataRetentionSettingsBuilder_; + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + * + * @return Whether the dataRetentionSettings field is set. + */ + @java.lang.Override + public boolean hasDataRetentionSettings() { + return resourceCase_ == 15; + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + * + * @return The dataRetentionSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetentionSettings() { + if (dataRetentionSettingsBuilder_ == null) { + if (resourceCase_ == 15) { + return (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance(); + } else { + if (resourceCase_ == 15) { + return dataRetentionSettingsBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + */ + public Builder setDataRetentionSettings( + com.google.analytics.admin.v1alpha.DataRetentionSettings value) { + if (dataRetentionSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + dataRetentionSettingsBuilder_.setMessage(value); + } + resourceCase_ = 15; + return this; + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + */ + public Builder setDataRetentionSettings( + com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder builderForValue) { + if (dataRetentionSettingsBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + dataRetentionSettingsBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 15; + return this; + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + */ + public Builder mergeDataRetentionSettings( + com.google.analytics.admin.v1alpha.DataRetentionSettings value) { + if (dataRetentionSettingsBuilder_ == null) { + if (resourceCase_ == 15 + && resource_ + != com.google.analytics.admin.v1alpha.DataRetentionSettings + .getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.DataRetentionSettings.newBuilder( + (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 15) { + dataRetentionSettingsBuilder_.mergeFrom(value); + } + dataRetentionSettingsBuilder_.setMessage(value); + } + resourceCase_ = 15; + return this; + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + */ + public Builder clearDataRetentionSettings() { + if (dataRetentionSettingsBuilder_ == null) { + if (resourceCase_ == 15) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 15) { + resourceCase_ = 0; + resource_ = null; + } + dataRetentionSettingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + */ + public com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder + getDataRetentionSettingsBuilder() { + return getDataRetentionSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder + getDataRetentionSettingsOrBuilder() { + if ((resourceCase_ == 15) && (dataRetentionSettingsBuilder_ != null)) { + return dataRetentionSettingsBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 15) { + return (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_; + } + return com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a data retention settings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 15; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataRetentionSettings, + com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder> + getDataRetentionSettingsFieldBuilder() { + if (dataRetentionSettingsBuilder_ == null) { + if (!(resourceCase_ == 15)) { + resource_ = + com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance(); + } + dataRetentionSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DataRetentionSettings, + com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder>( + (com.google.analytics.admin.v1alpha.DataRetentionSettings) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 15; + onChanged(); + ; + return dataRetentionSettingsBuilder_; + } + @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java index f78d42cf..ac15b7ca 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java @@ -158,6 +158,16 @@ public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMes * CUSTOM_METRIC = 12; */ CUSTOM_METRIC(12), + /** + * + * + *
+   * DataRetentionSettings resource
+   * 
+ * + * DATA_RETENTION_SETTINGS = 13; + */ + DATA_RETENTION_SETTINGS(13), UNRECOGNIZED(-1), ; @@ -291,6 +301,16 @@ public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMes * CUSTOM_METRIC = 12; */ public static final int CUSTOM_METRIC_VALUE = 12; + /** + * + * + *
+   * DataRetentionSettings resource
+   * 
+ * + * DATA_RETENTION_SETTINGS = 13; + */ + public static final int DATA_RETENTION_SETTINGS_VALUE = 13; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -342,6 +362,8 @@ public static ChangeHistoryResourceType forNumber(int value) { return CUSTOM_DIMENSION; case 12: return CUSTOM_METRIC; + case 13: + return DATA_RETENTION_SETTINGS; default: return null; } diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java index 037f5a97..7e3b68f7 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java @@ -102,7 +102,12 @@ private ConversionEvent( } case 32: { - isDeletable_ = input.readBool(); + deletable_ = input.readBool(); + break; + } + case 40: + { + custom_ = input.readBool(); break; } default: @@ -290,8 +295,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); } - public static final int IS_DELETABLE_FIELD_NUMBER = 4; - private boolean isDeletable_; + public static final int DELETABLE_FIELD_NUMBER = 4; + private boolean deletable_; /** * * @@ -299,13 +304,36 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * Output only. If set, this event can currently be deleted via DeleteConversionEvent. *
* - * bool is_deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The deletable. + */ + @java.lang.Override + public boolean getDeletable() { + return deletable_; + } + + public static final int CUSTOM_FIELD_NUMBER = 5; + private boolean custom_; + /** + * + * + *
+   * Output only. If set to true, this conversion event refers to a custom event.  If set to
+   * false, this conversion event refers to a default event in GA. Default
+   * events typically have special meaning in GA. Default events are usually
+   * created for you by the GA system, but in some cases can be created by
+   * property admins. Custom events count towards the maximum number of
+   * custom conversion events that may be created per property.
+   * 
+ * + * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The isDeletable. + * @return The custom. */ @java.lang.Override - public boolean getIsDeletable() { - return isDeletable_; + public boolean getCustom() { + return custom_; } private byte memoizedIsInitialized = -1; @@ -331,8 +359,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createTime_ != null) { output.writeMessage(3, getCreateTime()); } - if (isDeletable_ != false) { - output.writeBool(4, isDeletable_); + if (deletable_ != false) { + output.writeBool(4, deletable_); + } + if (custom_ != false) { + output.writeBool(5, custom_); } unknownFields.writeTo(output); } @@ -352,8 +383,11 @@ public int getSerializedSize() { if (createTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } - if (isDeletable_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, isDeletable_); + if (deletable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, deletable_); + } + if (custom_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, custom_); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -377,7 +411,8 @@ public boolean equals(final java.lang.Object obj) { if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } - if (getIsDeletable() != other.getIsDeletable()) return false; + if (getDeletable() != other.getDeletable()) return false; + if (getCustom() != other.getCustom()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -397,8 +432,10 @@ public int hashCode() { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } - hash = (37 * hash) + IS_DELETABLE_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIsDeletable()); + hash = (37 * hash) + DELETABLE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeletable()); + hash = (37 * hash) + CUSTOM_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getCustom()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -554,7 +591,9 @@ public Builder clear() { createTime_ = null; createTimeBuilder_ = null; } - isDeletable_ = false; + deletable_ = false; + + custom_ = false; return this; } @@ -590,7 +629,8 @@ public com.google.analytics.admin.v1alpha.ConversionEvent buildPartial() { } else { result.createTime_ = createTimeBuilder_.build(); } - result.isDeletable_ = isDeletable_; + result.deletable_ = deletable_; + result.custom_ = custom_; onBuilt(); return result; } @@ -652,8 +692,11 @@ public Builder mergeFrom(com.google.analytics.admin.v1alpha.ConversionEvent othe if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } - if (other.getIsDeletable() != false) { - setIsDeletable(other.getIsDeletable()); + if (other.getDeletable() != false) { + setDeletable(other.getDeletable()); + } + if (other.getCustom() != false) { + setCustom(other.getCustom()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1108,7 +1151,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTimeBuilder_; } - private boolean isDeletable_; + private boolean deletable_; /** * * @@ -1116,13 +1159,13 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * Output only. If set, this event can currently be deleted via DeleteConversionEvent. *
* - * bool is_deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The isDeletable. + * @return The deletable. */ @java.lang.Override - public boolean getIsDeletable() { - return isDeletable_; + public boolean getDeletable() { + return deletable_; } /** * @@ -1131,14 +1174,14 @@ public boolean getIsDeletable() { * Output only. If set, this event can currently be deleted via DeleteConversionEvent. * * - * bool is_deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @param value The isDeletable to set. + * @param value The deletable to set. * @return This builder for chaining. */ - public Builder setIsDeletable(boolean value) { + public Builder setDeletable(boolean value) { - isDeletable_ = value; + deletable_ = value; onChanged(); return this; } @@ -1149,13 +1192,80 @@ public Builder setIsDeletable(boolean value) { * Output only. If set, this event can currently be deleted via DeleteConversionEvent. * * - * bool is_deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDeletable() { + + deletable_ = false; + onChanged(); + return this; + } + + private boolean custom_; + /** + * + * + *
+     * Output only. If set to true, this conversion event refers to a custom event.  If set to
+     * false, this conversion event refers to a default event in GA. Default
+     * events typically have special meaning in GA. Default events are usually
+     * created for you by the GA system, but in some cases can be created by
+     * property admins. Custom events count towards the maximum number of
+     * custom conversion events that may be created per property.
+     * 
+ * + * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The custom. + */ + @java.lang.Override + public boolean getCustom() { + return custom_; + } + /** + * + * + *
+     * Output only. If set to true, this conversion event refers to a custom event.  If set to
+     * false, this conversion event refers to a default event in GA. Default
+     * events typically have special meaning in GA. Default events are usually
+     * created for you by the GA system, but in some cases can be created by
+     * property admins. Custom events count towards the maximum number of
+     * custom conversion events that may be created per property.
+     * 
+ * + * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The custom to set. + * @return This builder for chaining. + */ + public Builder setCustom(boolean value) { + + custom_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set to true, this conversion event refers to a custom event.  If set to
+     * false, this conversion event refers to a default event in GA. Default
+     * events typically have special meaning in GA. Default events are usually
+     * created for you by the GA system, but in some cases can be created by
+     * property admins. Custom events count towards the maximum number of
+     * custom conversion events that may be created per property.
+     * 
+ * + * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ - public Builder clearIsDeletable() { + public Builder clearCustom() { - isDeletable_ = false; + custom_ = false; onChanged(); return this; } diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java index 4ff6a999..b42b2f98 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java @@ -122,9 +122,27 @@ public interface ConversionEventOrBuilder * Output only. If set, this event can currently be deleted via DeleteConversionEvent. * * - * bool is_deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * bool deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * - * @return The isDeletable. + * @return The deletable. */ - boolean getIsDeletable(); + boolean getDeletable(); + + /** + * + * + *
+   * Output only. If set to true, this conversion event refers to a custom event.  If set to
+   * false, this conversion event refers to a default event in GA. Default
+   * events typically have special meaning in GA. Default events are usually
+   * created for you by the GA system, but in some cases can be created by
+   * property admins. Custom events count towards the maximum number of
+   * custom conversion events that may be created per property.
+   * 
+ * + * bool custom = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The custom. + */ + boolean getCustom(); } diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.java new file mode 100644 index 00000000..3ade309e --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateDisplayVideo360AdvertiserLinkProposal RPC.
+ * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} + */ +public final class CreateDisplayVideo360AdvertiserLinkProposalRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) + CreateDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() to construct. + private CreateDisplayVideo360AdvertiserLinkProposalRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateDisplayVideo360AdvertiserLinkProposalRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateDisplayVideo360AdvertiserLinkProposalRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateDisplayVideo360AdvertiserLinkProposalRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + subBuilder = null; + if (displayVideo360AdvertiserLinkProposal_ != null) { + subBuilder = displayVideo360AdvertiserLinkProposal_.toBuilder(); + } + displayVideo360AdvertiserLinkProposal_ = + input.readMessage( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(displayVideo360AdvertiserLinkProposal_); + displayVideo360AdvertiserLinkProposal_ = 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.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + .class, + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + .Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + displayVideo360AdvertiserLinkProposal_; + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the displayVideo360AdvertiserLinkProposal field is set. + */ + @java.lang.Override + public boolean hasDisplayVideo360AdvertiserLinkProposal() { + return displayVideo360AdvertiserLinkProposal_ != null; + } + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The displayVideo360AdvertiserLinkProposal. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDisplayVideo360AdvertiserLinkProposal() { + return displayVideo360AdvertiserLinkProposal_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance() + : displayVideo360AdvertiserLinkProposal_; + } + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder + getDisplayVideo360AdvertiserLinkProposalOrBuilder() { + return getDisplayVideo360AdvertiserLinkProposal(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (displayVideo360AdvertiserLinkProposal_ != null) { + output.writeMessage(2, getDisplayVideo360AdvertiserLinkProposal()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (displayVideo360AdvertiserLinkProposal_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getDisplayVideo360AdvertiserLinkProposal()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest other = + (com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasDisplayVideo360AdvertiserLinkProposal() + != other.hasDisplayVideo360AdvertiserLinkProposal()) return false; + if (hasDisplayVideo360AdvertiserLinkProposal()) { + if (!getDisplayVideo360AdvertiserLinkProposal() + .equals(other.getDisplayVideo360AdvertiserLinkProposal())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasDisplayVideo360AdvertiserLinkProposal()) { + hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL_FIELD_NUMBER; + hash = (53 * hash) + getDisplayVideo360AdvertiserLinkProposal().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 message for CreateDisplayVideo360AdvertiserLinkProposal RPC.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) + com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + .class, + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + displayVideo360AdvertiserLinkProposal_ = null; + } else { + displayVideo360AdvertiserLinkProposal_ = null; + displayVideo360AdvertiserLinkProposalBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + build() { + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + buildPartial() { + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest result = + new com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest( + this); + result.parent_ = parent_; + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + result.displayVideo360AdvertiserLinkProposal_ = displayVideo360AdvertiserLinkProposal_; + } else { + result.displayVideo360AdvertiserLinkProposal_ = + displayVideo360AdvertiserLinkProposalBuilder_.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.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + other) { + if (other + == com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasDisplayVideo360AdvertiserLinkProposal()) { + mergeDisplayVideo360AdvertiserLinkProposal( + other.getDisplayVideo360AdvertiserLinkProposal()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + displayVideo360AdvertiserLinkProposal_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> + displayVideo360AdvertiserLinkProposalBuilder_; + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the displayVideo360AdvertiserLinkProposal field is set. + */ + public boolean hasDisplayVideo360AdvertiserLinkProposal() { + return displayVideo360AdvertiserLinkProposalBuilder_ != null + || displayVideo360AdvertiserLinkProposal_ != null; + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The displayVideo360AdvertiserLinkProposal. + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDisplayVideo360AdvertiserLinkProposal() { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + return displayVideo360AdvertiserLinkProposal_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance() + : displayVideo360AdvertiserLinkProposal_; + } else { + return displayVideo360AdvertiserLinkProposalBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal value) { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + displayVideo360AdvertiserLinkProposal_ = value; + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + builderForValue) { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + displayVideo360AdvertiserLinkProposal_ = builderForValue.build(); + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDisplayVideo360AdvertiserLinkProposal( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal value) { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + if (displayVideo360AdvertiserLinkProposal_ != null) { + displayVideo360AdvertiserLinkProposal_ = + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.newBuilder( + displayVideo360AdvertiserLinkProposal_) + .mergeFrom(value) + .buildPartial(); + } else { + displayVideo360AdvertiserLinkProposal_ = value; + } + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDisplayVideo360AdvertiserLinkProposal() { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + displayVideo360AdvertiserLinkProposal_ = null; + onChanged(); + } else { + displayVideo360AdvertiserLinkProposal_ = null; + displayVideo360AdvertiserLinkProposalBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + getDisplayVideo360AdvertiserLinkProposalBuilder() { + + onChanged(); + return getDisplayVideo360AdvertiserLinkProposalFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder + getDisplayVideo360AdvertiserLinkProposalOrBuilder() { + if (displayVideo360AdvertiserLinkProposalBuilder_ != null) { + return displayVideo360AdvertiserLinkProposalBuilder_.getMessageOrBuilder(); + } else { + return displayVideo360AdvertiserLinkProposal_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance() + : displayVideo360AdvertiserLinkProposal_; + } + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> + getDisplayVideo360AdvertiserLinkProposalFieldBuilder() { + if (displayVideo360AdvertiserLinkProposalBuilder_ == null) { + displayVideo360AdvertiserLinkProposalBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder>( + getDisplayVideo360AdvertiserLinkProposal(), getParentForChildren(), isClean()); + displayVideo360AdvertiserLinkProposal_ = null; + } + return displayVideo360AdvertiserLinkProposalBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) + private static final com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest(); + } + + public static com.google.analytics.admin.v1alpha + .CreateDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + CreateDisplayVideo360AdvertiserLinkProposalRequest> + PARSER = + new com.google.protobuf.AbstractParser< + CreateDisplayVideo360AdvertiserLinkProposalRequest>() { + @java.lang.Override + public CreateDisplayVideo360AdvertiserLinkProposalRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDisplayVideo360AdvertiserLinkProposalRequest( + input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java new file mode 100644 index 00000000..91d8814f --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateDisplayVideo360AdvertiserLinkProposalRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkProposalRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the displayVideo360AdvertiserLinkProposal field is set. + */ + boolean hasDisplayVideo360AdvertiserLinkProposal(); + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The displayVideo360AdvertiserLinkProposal. + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDisplayVideo360AdvertiserLinkProposal(); + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLinkProposal to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder + getDisplayVideo360AdvertiserLinkProposalOrBuilder(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequest.java new file mode 100644 index 00000000..4271dcd4 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequest.java @@ -0,0 +1,998 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for CreateDisplayVideo360AdvertiserLink RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} + */ +public final class CreateDisplayVideo360AdvertiserLinkRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) + CreateDisplayVideo360AdvertiserLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateDisplayVideo360AdvertiserLinkRequest.newBuilder() to construct. + private CreateDisplayVideo360AdvertiserLinkRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateDisplayVideo360AdvertiserLinkRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateDisplayVideo360AdvertiserLinkRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateDisplayVideo360AdvertiserLinkRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder subBuilder = + null; + if (displayVideo360AdvertiserLink_ != null) { + subBuilder = displayVideo360AdvertiserLink_.toBuilder(); + } + displayVideo360AdvertiserLink_ = + input.readMessage( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(displayVideo360AdvertiserLink_); + displayVideo360AdvertiserLink_ = 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.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.class, + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + displayVideo360AdvertiserLink_; + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + @java.lang.Override + public boolean hasDisplayVideo360AdvertiserLink() { + return displayVideo360AdvertiserLink_ != null; + } + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The displayVideo360AdvertiserLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink() { + return displayVideo360AdvertiserLink_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() + : displayVideo360AdvertiserLink_; + } + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder() { + return getDisplayVideo360AdvertiserLink(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (displayVideo360AdvertiserLink_ != null) { + output.writeMessage(2, getDisplayVideo360AdvertiserLink()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (displayVideo360AdvertiserLink_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getDisplayVideo360AdvertiserLink()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest other = + (com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasDisplayVideo360AdvertiserLink() != other.hasDisplayVideo360AdvertiserLink()) + return false; + if (hasDisplayVideo360AdvertiserLink()) { + if (!getDisplayVideo360AdvertiserLink().equals(other.getDisplayVideo360AdvertiserLink())) + return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasDisplayVideo360AdvertiserLink()) { + hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER; + hash = (53 * hash) + getDisplayVideo360AdvertiserLink().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 message for CreateDisplayVideo360AdvertiserLink RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.class, + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + if (displayVideo360AdvertiserLinkBuilder_ == null) { + displayVideo360AdvertiserLink_ = null; + } else { + displayVideo360AdvertiserLink_ = null; + displayVideo360AdvertiserLinkBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest build() { + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + buildPartial() { + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest result = + new com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest(this); + result.parent_ = parent_; + if (displayVideo360AdvertiserLinkBuilder_ == null) { + result.displayVideo360AdvertiserLink_ = displayVideo360AdvertiserLink_; + } else { + result.displayVideo360AdvertiserLink_ = displayVideo360AdvertiserLinkBuilder_.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.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasDisplayVideo360AdvertiserLink()) { + mergeDisplayVideo360AdvertiserLink(other.getDisplayVideo360AdvertiserLink()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + displayVideo360AdvertiserLink_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + displayVideo360AdvertiserLinkBuilder_; + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + public boolean hasDisplayVideo360AdvertiserLink() { + return displayVideo360AdvertiserLinkBuilder_ != null + || displayVideo360AdvertiserLink_ != null; + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The displayVideo360AdvertiserLink. + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink() { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + return displayVideo360AdvertiserLink_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() + : displayVideo360AdvertiserLink_; + } else { + return displayVideo360AdvertiserLinkBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + displayVideo360AdvertiserLink_ = value; + onChanged(); + } else { + displayVideo360AdvertiserLinkBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder builderForValue) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + displayVideo360AdvertiserLink_ = builderForValue.build(); + onChanged(); + } else { + displayVideo360AdvertiserLinkBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + if (displayVideo360AdvertiserLink_ != null) { + displayVideo360AdvertiserLink_ = + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.newBuilder( + displayVideo360AdvertiserLink_) + .mergeFrom(value) + .buildPartial(); + } else { + displayVideo360AdvertiserLink_ = value; + } + onChanged(); + } else { + displayVideo360AdvertiserLinkBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearDisplayVideo360AdvertiserLink() { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + displayVideo360AdvertiserLink_ = null; + onChanged(); + } else { + displayVideo360AdvertiserLink_ = null; + displayVideo360AdvertiserLinkBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder + getDisplayVideo360AdvertiserLinkBuilder() { + + onChanged(); + return getDisplayVideo360AdvertiserLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder() { + if (displayVideo360AdvertiserLinkBuilder_ != null) { + return displayVideo360AdvertiserLinkBuilder_.getMessageOrBuilder(); + } else { + return displayVideo360AdvertiserLink_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() + : displayVideo360AdvertiserLink_; + } + } + /** + * + * + *
+     * Required. The DisplayVideo360AdvertiserLink to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + getDisplayVideo360AdvertiserLinkFieldBuilder() { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + displayVideo360AdvertiserLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder>( + getDisplayVideo360AdvertiserLink(), getParentForChildren(), isClean()); + displayVideo360AdvertiserLink_ = null; + } + return displayVideo360AdvertiserLinkBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) + private static final com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateDisplayVideo360AdvertiserLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateDisplayVideo360AdvertiserLinkRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequestOrBuilder.java new file mode 100644 index 00000000..53dabbab --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequestOrBuilder.java @@ -0,0 +1,97 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateDisplayVideo360AdvertiserLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateDisplayVideo360AdvertiserLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + boolean hasDisplayVideo360AdvertiserLink(); + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The displayVideo360AdvertiserLink. + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink(); + /** + * + * + *
+   * Required. The DisplayVideo360AdvertiserLink to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java index 5986982c..979c8191 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java @@ -849,11 +849,11 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-   * Required. Immutable. The type for the custom metric's value.
+   * Required. The type for the custom metric's value.
    * 
* * - * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for measurementUnit. @@ -866,11 +866,11 @@ public int getMeasurementUnitValue() { * * *
-   * Required. Immutable. The type for the custom metric's value.
+   * Required. The type for the custom metric's value.
    * 
* * - * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @return The measurementUnit. @@ -1821,11 +1821,11 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. Immutable. The type for the custom metric's value.
+     * Required. The type for the custom metric's value.
      * 
* * - * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for measurementUnit. @@ -1838,11 +1838,11 @@ public int getMeasurementUnitValue() { * * *
-     * Required. Immutable. The type for the custom metric's value.
+     * Required. The type for the custom metric's value.
      * 
* * - * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The enum numeric value on the wire for measurementUnit to set. @@ -1858,11 +1858,11 @@ public Builder setMeasurementUnitValue(int value) { * * *
-     * Required. Immutable. The type for the custom metric's value.
+     * Required. The type for the custom metric's value.
      * 
* * - * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @return The measurementUnit. @@ -1880,11 +1880,11 @@ public com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit getMeasur * * *
-     * Required. Immutable. The type for the custom metric's value.
+     * Required. The type for the custom metric's value.
      * 
* * - * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @param value The measurementUnit to set. @@ -1904,11 +1904,11 @@ public Builder setMeasurementUnit( * * *
-     * Required. Immutable. The type for the custom metric's value.
+     * Required. The type for the custom metric's value.
      * 
* * - * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @return This builder for chaining. diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java index 9dd2d54d..d0a48396 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java @@ -151,11 +151,11 @@ public interface CustomMetricOrBuilder * * *
-   * Required. Immutable. The type for the custom metric's value.
+   * Required. The type for the custom metric's value.
    * 
* * - * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @return The enum numeric value on the wire for measurementUnit. @@ -165,11 +165,11 @@ public interface CustomMetricOrBuilder * * *
-   * Required. Immutable. The type for the custom metric's value.
+   * Required. The type for the custom metric's value.
    * 
* * - * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * .google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit measurement_unit = 5 [(.google.api.field_behavior) = REQUIRED]; * * * @return The measurementUnit. diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java new file mode 100644 index 00000000..34919b69 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java @@ -0,0 +1,1151 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Settings values for data retention. This is a singleton resource.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataRetentionSettings} + */ +public final class DataRetentionSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DataRetentionSettings) + DataRetentionSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use DataRetentionSettings.newBuilder() to construct. + private DataRetentionSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DataRetentionSettings() { + name_ = ""; + eventDataRetention_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DataRetentionSettings(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DataRetentionSettings( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + 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(); + + eventDataRetention_ = rawValue; + break; + } + case 24: + { + resetUserDataOnNewActivity_ = 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.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataRetentionSettings.class, + com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder.class); + } + + /** + * + * + *
+   * Valid values for the data retention duration.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration} + */ + public enum RetentionDuration implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Data retention time duration is not specified.
+     * 
+ * + * RETENTION_DURATION_UNSPECIFIED = 0; + */ + RETENTION_DURATION_UNSPECIFIED(0), + /** + * + * + *
+     * The data retention time duration is 2 months.
+     * 
+ * + * TWO_MONTHS = 1; + */ + TWO_MONTHS(1), + /** + * + * + *
+     * The data retention time duration is 14 months.
+     * 
+ * + * FOURTEEN_MONTHS = 3; + */ + FOURTEEN_MONTHS(3), + /** + * + * + *
+     * The data retention time duration is 26 months.
+     * Available to 360 properties only.
+     * 
+ * + * TWENTY_SIX_MONTHS = 4; + */ + TWENTY_SIX_MONTHS(4), + /** + * + * + *
+     * The data retention time duration is 38 months.
+     * Available to 360 properties only.
+     * 
+ * + * THIRTY_EIGHT_MONTHS = 5; + */ + THIRTY_EIGHT_MONTHS(5), + /** + * + * + *
+     * The data retention time duration is 50 months.
+     * Available to 360 properties only.
+     * 
+ * + * FIFTY_MONTHS = 6; + */ + FIFTY_MONTHS(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Data retention time duration is not specified.
+     * 
+ * + * RETENTION_DURATION_UNSPECIFIED = 0; + */ + public static final int RETENTION_DURATION_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * The data retention time duration is 2 months.
+     * 
+ * + * TWO_MONTHS = 1; + */ + public static final int TWO_MONTHS_VALUE = 1; + /** + * + * + *
+     * The data retention time duration is 14 months.
+     * 
+ * + * FOURTEEN_MONTHS = 3; + */ + public static final int FOURTEEN_MONTHS_VALUE = 3; + /** + * + * + *
+     * The data retention time duration is 26 months.
+     * Available to 360 properties only.
+     * 
+ * + * TWENTY_SIX_MONTHS = 4; + */ + public static final int TWENTY_SIX_MONTHS_VALUE = 4; + /** + * + * + *
+     * The data retention time duration is 38 months.
+     * Available to 360 properties only.
+     * 
+ * + * THIRTY_EIGHT_MONTHS = 5; + */ + public static final int THIRTY_EIGHT_MONTHS_VALUE = 5; + /** + * + * + *
+     * The data retention time duration is 50 months.
+     * Available to 360 properties only.
+     * 
+ * + * FIFTY_MONTHS = 6; + */ + public static final int FIFTY_MONTHS_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 RetentionDuration 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 RetentionDuration forNumber(int value) { + switch (value) { + case 0: + return RETENTION_DURATION_UNSPECIFIED; + case 1: + return TWO_MONTHS; + case 3: + return FOURTEEN_MONTHS; + case 4: + return TWENTY_SIX_MONTHS; + case 5: + return THIRTY_EIGHT_MONTHS; + case 6: + return FIFTY_MONTHS; + 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 RetentionDuration findValueByNumber(int number) { + return RetentionDuration.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.admin.v1alpha.DataRetentionSettings.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RetentionDuration[] VALUES = values(); + + public static RetentionDuration 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 RetentionDuration(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. Resource name for this DataRetentionSetting resource.
+   * Format: properties/{property}/dataRetentionSettings
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Resource name for this DataRetentionSetting resource.
+   * Format: properties/{property}/dataRetentionSettings
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENT_DATA_RETENTION_FIELD_NUMBER = 2; + private int eventDataRetention_; + /** + * + * + *
+   * The length of time that event-level data is retained.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @return The enum numeric value on the wire for eventDataRetention. + */ + @java.lang.Override + public int getEventDataRetentionValue() { + return eventDataRetention_; + } + /** + * + * + *
+   * The length of time that event-level data is retained.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @return The eventDataRetention. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration + getEventDataRetention() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration result = + com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration.valueOf( + eventDataRetention_); + return result == null + ? com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration.UNRECOGNIZED + : result; + } + + public static final int RESET_USER_DATA_ON_NEW_ACTIVITY_FIELD_NUMBER = 3; + private boolean resetUserDataOnNewActivity_; + /** + * + * + *
+   * If true, reset the retention period for the user identifier with every
+   * event from that user.
+   * 
+ * + * bool reset_user_data_on_new_activity = 3; + * + * @return The resetUserDataOnNewActivity. + */ + @java.lang.Override + public boolean getResetUserDataOnNewActivity() { + return resetUserDataOnNewActivity_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (eventDataRetention_ + != com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration + .RETENTION_DURATION_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, eventDataRetention_); + } + if (resetUserDataOnNewActivity_ != false) { + output.writeBool(3, resetUserDataOnNewActivity_); + } + 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 (eventDataRetention_ + != com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration + .RETENTION_DURATION_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, eventDataRetention_); + } + if (resetUserDataOnNewActivity_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, resetUserDataOnNewActivity_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.DataRetentionSettings)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DataRetentionSettings other = + (com.google.analytics.admin.v1alpha.DataRetentionSettings) obj; + + if (!getName().equals(other.getName())) return false; + if (eventDataRetention_ != other.eventDataRetention_) return false; + if (getResetUserDataOnNewActivity() != other.getResetUserDataOnNewActivity()) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + 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) + EVENT_DATA_RETENTION_FIELD_NUMBER; + hash = (53 * hash) + eventDataRetention_; + hash = (37 * hash) + RESET_USER_DATA_ON_NEW_ACTIVITY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getResetUserDataOnNewActivity()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DataRetentionSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Settings values for data retention. This is a singleton resource.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DataRetentionSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DataRetentionSettings) + com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DataRetentionSettings.class, + com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DataRetentionSettings.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.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_ = ""; + + eventDataRetention_ = 0; + + resetUserDataOnNewActivity_ = false; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRetentionSettings getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRetentionSettings build() { + com.google.analytics.admin.v1alpha.DataRetentionSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRetentionSettings buildPartial() { + com.google.analytics.admin.v1alpha.DataRetentionSettings result = + new com.google.analytics.admin.v1alpha.DataRetentionSettings(this); + result.name_ = name_; + result.eventDataRetention_ = eventDataRetention_; + result.resetUserDataOnNewActivity_ = resetUserDataOnNewActivity_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.DataRetentionSettings) { + return mergeFrom((com.google.analytics.admin.v1alpha.DataRetentionSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.DataRetentionSettings other) { + if (other == com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.eventDataRetention_ != 0) { + setEventDataRetentionValue(other.getEventDataRetentionValue()); + } + if (other.getResetUserDataOnNewActivity() != false) { + setResetUserDataOnNewActivity(other.getResetUserDataOnNewActivity()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.admin.v1alpha.DataRetentionSettings parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.DataRetentionSettings) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name for this DataRetentionSetting resource.
+     * Format: properties/{property}/dataRetentionSettings
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Resource name for this DataRetentionSetting resource.
+     * Format: properties/{property}/dataRetentionSettings
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Resource name for this DataRetentionSetting resource.
+     * Format: properties/{property}/dataRetentionSettings
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name for this DataRetentionSetting resource.
+     * Format: properties/{property}/dataRetentionSettings
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Resource name for this DataRetentionSetting resource.
+     * Format: properties/{property}/dataRetentionSettings
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int eventDataRetention_ = 0; + /** + * + * + *
+     * The length of time that event-level data is retained.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @return The enum numeric value on the wire for eventDataRetention. + */ + @java.lang.Override + public int getEventDataRetentionValue() { + return eventDataRetention_; + } + /** + * + * + *
+     * The length of time that event-level data is retained.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @param value The enum numeric value on the wire for eventDataRetention to set. + * @return This builder for chaining. + */ + public Builder setEventDataRetentionValue(int value) { + + eventDataRetention_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The length of time that event-level data is retained.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @return The eventDataRetention. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration + getEventDataRetention() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration result = + com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration.valueOf( + eventDataRetention_); + return result == null + ? com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * The length of time that event-level data is retained.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @param value The eventDataRetention to set. + * @return This builder for chaining. + */ + public Builder setEventDataRetention( + com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration value) { + if (value == null) { + throw new NullPointerException(); + } + + eventDataRetention_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The length of time that event-level data is retained.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @return This builder for chaining. + */ + public Builder clearEventDataRetention() { + + eventDataRetention_ = 0; + onChanged(); + return this; + } + + private boolean resetUserDataOnNewActivity_; + /** + * + * + *
+     * If true, reset the retention period for the user identifier with every
+     * event from that user.
+     * 
+ * + * bool reset_user_data_on_new_activity = 3; + * + * @return The resetUserDataOnNewActivity. + */ + @java.lang.Override + public boolean getResetUserDataOnNewActivity() { + return resetUserDataOnNewActivity_; + } + /** + * + * + *
+     * If true, reset the retention period for the user identifier with every
+     * event from that user.
+     * 
+ * + * bool reset_user_data_on_new_activity = 3; + * + * @param value The resetUserDataOnNewActivity to set. + * @return This builder for chaining. + */ + public Builder setResetUserDataOnNewActivity(boolean value) { + + resetUserDataOnNewActivity_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, reset the retention period for the user identifier with every
+     * event from that user.
+     * 
+ * + * bool reset_user_data_on_new_activity = 3; + * + * @return This builder for chaining. + */ + public Builder clearResetUserDataOnNewActivity() { + + resetUserDataOnNewActivity_ = 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.admin.v1alpha.DataRetentionSettings) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DataRetentionSettings) + private static final com.google.analytics.admin.v1alpha.DataRetentionSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DataRetentionSettings(); + } + + public static com.google.analytics.admin.v1alpha.DataRetentionSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DataRetentionSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DataRetentionSettings(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DataRetentionSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsName.java new file mode 100644 index 00000000..6065284b --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsName.java @@ -0,0 +1,169 @@ +/* + * 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.admin.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 DataRetentionSettingsName implements ResourceName { + private static final PathTemplate PROPERTY = + PathTemplate.createWithoutUrlEncoding("properties/{property}/dataRetentionSettings"); + private volatile Map fieldValuesMap; + private final String property; + + @Deprecated + protected DataRetentionSettingsName() { + property = null; + } + + private DataRetentionSettingsName(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 DataRetentionSettingsName of(String property) { + return newBuilder().setProperty(property).build(); + } + + public static String format(String property) { + return newBuilder().setProperty(property).build().toString(); + } + + public static DataRetentionSettingsName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY.validatedMatch( + formattedString, + "DataRetentionSettingsName.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 (DataRetentionSettingsName 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()) { + DataRetentionSettingsName that = ((DataRetentionSettingsName) 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}/dataRetentionSettings. */ + 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(DataRetentionSettingsName dataRetentionSettingsName) { + this.property = dataRetentionSettingsName.property; + } + + public DataRetentionSettingsName build() { + return new DataRetentionSettingsName(this); + } + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsOrBuilder.java new file mode 100644 index 00000000..b7b92511 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsOrBuilder.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/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface DataRetentionSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DataRetentionSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name for this DataRetentionSetting resource.
+   * Format: properties/{property}/dataRetentionSettings
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name for this DataRetentionSetting resource.
+   * Format: properties/{property}/dataRetentionSettings
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The length of time that event-level data is retained.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @return The enum numeric value on the wire for eventDataRetention. + */ + int getEventDataRetentionValue(); + /** + * + * + *
+   * The length of time that event-level data is retained.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration event_data_retention = 2; + * + * + * @return The eventDataRetention. + */ + com.google.analytics.admin.v1alpha.DataRetentionSettings.RetentionDuration + getEventDataRetention(); + + /** + * + * + *
+   * If true, reset the retention period for the user identifier with every
+   * event from that user.
+   * 
+ * + * bool reset_user_data_on_new_activity = 3; + * + * @return The resetUserDataOnNewActivity. + */ + boolean getResetUserDataOnNewActivity(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.java new file mode 100644 index 00000000..d8d3e12f --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.java @@ -0,0 +1,716 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for DeleteDisplayVideo360AdvertiserLinkProposal RPC.
+ * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} + */ +public final class DeleteDisplayVideo360AdvertiserLinkProposalRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) + DeleteDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() to construct. + private DeleteDisplayVideo360AdvertiserLinkProposalRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteDisplayVideo360AdvertiserLinkProposalRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteDisplayVideo360AdvertiserLinkProposalRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteDisplayVideo360AdvertiserLinkProposalRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + 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.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + .class, + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * 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.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest other = + (com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) 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.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 message for DeleteDisplayVideo360AdvertiserLinkProposal RPC.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) + com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + .class, + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.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.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + build() { + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + buildPartial() { + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest result = + new com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest( + 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.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + .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.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * 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.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) + private static final com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest(); + } + + public static com.google.analytics.admin.v1alpha + .DeleteDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + DeleteDisplayVideo360AdvertiserLinkProposalRequest> + PARSER = + new com.google.protobuf.AbstractParser< + DeleteDisplayVideo360AdvertiserLinkProposalRequest>() { + @java.lang.Override + public DeleteDisplayVideo360AdvertiserLinkProposalRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteDisplayVideo360AdvertiserLinkProposalRequest( + input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java new file mode 100644 index 00000000..ae5ef085 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteDisplayVideo360AdvertiserLinkProposalRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkProposalRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * 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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.java new file mode 100644 index 00000000..103167f9 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.java @@ -0,0 +1,686 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for DeleteDisplayVideo360AdvertiserLink RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} + */ +public final class DeleteDisplayVideo360AdvertiserLinkRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) + DeleteDisplayVideo360AdvertiserLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder() to construct. + private DeleteDisplayVideo360AdvertiserLinkRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteDisplayVideo360AdvertiserLinkRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteDisplayVideo360AdvertiserLinkRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteDisplayVideo360AdvertiserLinkRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + 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.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.class, + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLink to delete.
+   * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLink to delete.
+   * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
+   * 
+ * + * + * 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.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest other = + (com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) 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.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 message for DeleteDisplayVideo360AdvertiserLink RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.class, + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.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.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest build() { + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + buildPartial() { + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest result = + new com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest(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.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + .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.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLink to delete.
+     * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLink to delete.
+     * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLink to delete.
+     * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLink to delete.
+     * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLink to delete.
+     * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
+     * 
+ * + * + * 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.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) + private static final com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteDisplayVideo360AdvertiserLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteDisplayVideo360AdvertiserLinkRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequestOrBuilder.java new file mode 100644 index 00000000..0bbad963 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteDisplayVideo360AdvertiserLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteDisplayVideo360AdvertiserLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLink to delete.
+   * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLink to delete.
+   * Example format: properties/1234/displayVideo360AdvertiserLinks/5678
+   * 
+ * + * + * 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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java new file mode 100644 index 00000000..44017ad3 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java @@ -0,0 +1,1998 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A link between a GA4 property and a Display & Video 360 advertiser.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} + */ +public final class DisplayVideo360AdvertiserLink extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) + DisplayVideo360AdvertiserLinkOrBuilder { + private static final long serialVersionUID = 0L; + // Use DisplayVideo360AdvertiserLink.newBuilder() to construct. + private DisplayVideo360AdvertiserLink(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DisplayVideo360AdvertiserLink() { + name_ = ""; + advertiserId_ = ""; + advertiserDisplayName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DisplayVideo360AdvertiserLink(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DisplayVideo360AdvertiserLink( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + 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(); + + advertiserId_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + advertiserDisplayName_ = s; + break; + } + case 34: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (adsPersonalizationEnabled_ != null) { + subBuilder = adsPersonalizationEnabled_.toBuilder(); + } + adsPersonalizationEnabled_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(adsPersonalizationEnabled_); + adsPersonalizationEnabled_ = subBuilder.buildPartial(); + } + + break; + } + case 42: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (campaignDataSharingEnabled_ != null) { + subBuilder = campaignDataSharingEnabled_.toBuilder(); + } + campaignDataSharingEnabled_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(campaignDataSharingEnabled_); + campaignDataSharingEnabled_ = subBuilder.buildPartial(); + } + + break; + } + case 50: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (costDataSharingEnabled_ != null) { + subBuilder = costDataSharingEnabled_.toBuilder(); + } + costDataSharingEnabled_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(costDataSharingEnabled_); + costDataSharingEnabled_ = 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.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.class, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The resource name for this DisplayVideo360AdvertiserLink resource.
+   * Format: properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
+   * Note: linkId is not the Display & Video 360 Advertiser ID
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name for this DisplayVideo360AdvertiserLink resource.
+   * Format: properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
+   * Note: linkId is not the Display & Video 360 Advertiser ID
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADVERTISER_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object advertiserId_; + /** + * + * + *
+   * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+   * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The advertiserId. + */ + @java.lang.Override + public java.lang.String getAdvertiserId() { + java.lang.Object ref = advertiserId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + advertiserId_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+   * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for advertiserId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdvertiserIdBytes() { + java.lang.Object ref = advertiserId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertiserId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADVERTISER_DISPLAY_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object advertiserDisplayName_; + /** + * + * + *
+   * Output only. The display name of the Display & Video 360 Advertiser.
+   * 
+ * + * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The advertiserDisplayName. + */ + @java.lang.Override + public java.lang.String getAdvertiserDisplayName() { + java.lang.Object ref = advertiserDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + advertiserDisplayName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The display name of the Display & Video 360 Advertiser.
+   * 
+ * + * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for advertiserDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdvertiserDisplayNameBytes() { + java.lang.Object ref = advertiserDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertiserDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER = 4; + private com.google.protobuf.BoolValue adsPersonalizationEnabled_; + /** + * + * + *
+   * Enables personalized advertising features with this integration.
+   * If this field is not set on create/update, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + * + * @return Whether the adsPersonalizationEnabled field is set. + */ + @java.lang.Override + public boolean hasAdsPersonalizationEnabled() { + return adsPersonalizationEnabled_ != null; + } + /** + * + * + *
+   * Enables personalized advertising features with this integration.
+   * If this field is not set on create/update, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + * + * @return The adsPersonalizationEnabled. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } + /** + * + * + *
+   * Enables personalized advertising features with this integration.
+   * If this field is not set on create/update, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { + return getAdsPersonalizationEnabled(); + } + + public static final int CAMPAIGN_DATA_SHARING_ENABLED_FIELD_NUMBER = 5; + private com.google.protobuf.BoolValue campaignDataSharingEnabled_; + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Display & Video 360 into the GA4
+   * property. After link creation, this can only be updated from the Display &
+   * Video 360 product.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the campaignDataSharingEnabled field is set. + */ + @java.lang.Override + public boolean hasCampaignDataSharingEnabled() { + return campaignDataSharingEnabled_ != null; + } + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Display & Video 360 into the GA4
+   * property. After link creation, this can only be updated from the Display &
+   * Video 360 product.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The campaignDataSharingEnabled. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getCampaignDataSharingEnabled() { + return campaignDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : campaignDataSharingEnabled_; + } + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Display & Video 360 into the GA4
+   * property. After link creation, this can only be updated from the Display &
+   * Video 360 product.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder() { + return getCampaignDataSharingEnabled(); + } + + public static final int COST_DATA_SHARING_ENABLED_FIELD_NUMBER = 6; + private com.google.protobuf.BoolValue costDataSharingEnabled_; + /** + * + * + *
+   * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
+   * property. This can only be enabled if campaign_data_import_enabled is
+   * enabled. After link creation, this can only be updated from the Display &
+   * Video 360 product.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the costDataSharingEnabled field is set. + */ + @java.lang.Override + public boolean hasCostDataSharingEnabled() { + return costDataSharingEnabled_ != null; + } + /** + * + * + *
+   * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
+   * property. This can only be enabled if campaign_data_import_enabled is
+   * enabled. After link creation, this can only be updated from the Display &
+   * Video 360 product.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The costDataSharingEnabled. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getCostDataSharingEnabled() { + return costDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : costDataSharingEnabled_; + } + /** + * + * + *
+   * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
+   * property. This can only be enabled if campaign_data_import_enabled is
+   * enabled. After link creation, this can only be updated from the Display &
+   * Video 360 product.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder() { + return getCostDataSharingEnabled(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (!getAdvertiserIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, advertiserId_); + } + if (!getAdvertiserDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, advertiserDisplayName_); + } + if (adsPersonalizationEnabled_ != null) { + output.writeMessage(4, getAdsPersonalizationEnabled()); + } + if (campaignDataSharingEnabled_ != null) { + output.writeMessage(5, getCampaignDataSharingEnabled()); + } + if (costDataSharingEnabled_ != null) { + output.writeMessage(6, getCostDataSharingEnabled()); + } + 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 (!getAdvertiserIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, advertiserId_); + } + if (!getAdvertiserDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, advertiserDisplayName_); + } + if (adsPersonalizationEnabled_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getAdsPersonalizationEnabled()); + } + if (campaignDataSharingEnabled_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, getCampaignDataSharingEnabled()); + } + if (costDataSharingEnabled_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCostDataSharingEnabled()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink other = + (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) obj; + + if (!getName().equals(other.getName())) return false; + if (!getAdvertiserId().equals(other.getAdvertiserId())) return false; + if (!getAdvertiserDisplayName().equals(other.getAdvertiserDisplayName())) return false; + if (hasAdsPersonalizationEnabled() != other.hasAdsPersonalizationEnabled()) return false; + if (hasAdsPersonalizationEnabled()) { + if (!getAdsPersonalizationEnabled().equals(other.getAdsPersonalizationEnabled())) + return false; + } + if (hasCampaignDataSharingEnabled() != other.hasCampaignDataSharingEnabled()) return false; + if (hasCampaignDataSharingEnabled()) { + if (!getCampaignDataSharingEnabled().equals(other.getCampaignDataSharingEnabled())) + return false; + } + if (hasCostDataSharingEnabled() != other.hasCostDataSharingEnabled()) return false; + if (hasCostDataSharingEnabled()) { + if (!getCostDataSharingEnabled().equals(other.getCostDataSharingEnabled())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + 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) + ADVERTISER_ID_FIELD_NUMBER; + hash = (53 * hash) + getAdvertiserId().hashCode(); + hash = (37 * hash) + ADVERTISER_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAdvertiserDisplayName().hashCode(); + if (hasAdsPersonalizationEnabled()) { + hash = (37 * hash) + ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + getAdsPersonalizationEnabled().hashCode(); + } + if (hasCampaignDataSharingEnabled()) { + hash = (37 * hash) + CAMPAIGN_DATA_SHARING_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + getCampaignDataSharingEnabled().hashCode(); + } + if (hasCostDataSharingEnabled()) { + hash = (37 * hash) + COST_DATA_SHARING_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + getCostDataSharingEnabled().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 link between a GA4 property and a Display & Video 360 advertiser.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.class, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.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_ = ""; + + advertiserId_ = ""; + + advertiserDisplayName_ = ""; + + if (adsPersonalizationEnabledBuilder_ == null) { + adsPersonalizationEnabled_ = null; + } else { + adsPersonalizationEnabled_ = null; + adsPersonalizationEnabledBuilder_ = null; + } + if (campaignDataSharingEnabledBuilder_ == null) { + campaignDataSharingEnabled_ = null; + } else { + campaignDataSharingEnabled_ = null; + campaignDataSharingEnabledBuilder_ = null; + } + if (costDataSharingEnabledBuilder_ == null) { + costDataSharingEnabled_ = null; + } else { + costDataSharingEnabled_ = null; + costDataSharingEnabledBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink build() { + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink buildPartial() { + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink result = + new com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink(this); + result.name_ = name_; + result.advertiserId_ = advertiserId_; + result.advertiserDisplayName_ = advertiserDisplayName_; + if (adsPersonalizationEnabledBuilder_ == null) { + result.adsPersonalizationEnabled_ = adsPersonalizationEnabled_; + } else { + result.adsPersonalizationEnabled_ = adsPersonalizationEnabledBuilder_.build(); + } + if (campaignDataSharingEnabledBuilder_ == null) { + result.campaignDataSharingEnabled_ = campaignDataSharingEnabled_; + } else { + result.campaignDataSharingEnabled_ = campaignDataSharingEnabledBuilder_.build(); + } + if (costDataSharingEnabledBuilder_ == null) { + result.costDataSharingEnabled_ = costDataSharingEnabled_; + } else { + result.costDataSharingEnabled_ = costDataSharingEnabledBuilder_.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.admin.v1alpha.DisplayVideo360AdvertiserLink) { + return mergeFrom((com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink other) { + if (other + == com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getAdvertiserId().isEmpty()) { + advertiserId_ = other.advertiserId_; + onChanged(); + } + if (!other.getAdvertiserDisplayName().isEmpty()) { + advertiserDisplayName_ = other.advertiserDisplayName_; + onChanged(); + } + if (other.hasAdsPersonalizationEnabled()) { + mergeAdsPersonalizationEnabled(other.getAdsPersonalizationEnabled()); + } + if (other.hasCampaignDataSharingEnabled()) { + mergeCampaignDataSharingEnabled(other.getCampaignDataSharingEnabled()); + } + if (other.hasCostDataSharingEnabled()) { + mergeCostDataSharingEnabled(other.getCostDataSharingEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.admin.v1alpha.DisplayVideo360AdvertiserLink parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name for this DisplayVideo360AdvertiserLink resource.
+     * Format: properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
+     * Note: linkId is not the Display & Video 360 Advertiser ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name for this DisplayVideo360AdvertiserLink resource.
+     * Format: properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
+     * Note: linkId is not the Display & Video 360 Advertiser ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name for this DisplayVideo360AdvertiserLink resource.
+     * Format: properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
+     * Note: linkId is not the Display & Video 360 Advertiser ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name for this DisplayVideo360AdvertiserLink resource.
+     * Format: properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
+     * Note: linkId is not the Display & Video 360 Advertiser ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name for this DisplayVideo360AdvertiserLink resource.
+     * Format: properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
+     * Note: linkId is not the Display & Video 360 Advertiser ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object advertiserId_ = ""; + /** + * + * + *
+     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The advertiserId. + */ + public java.lang.String getAdvertiserId() { + java.lang.Object ref = advertiserId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + advertiserId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for advertiserId. + */ + public com.google.protobuf.ByteString getAdvertiserIdBytes() { + java.lang.Object ref = advertiserId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertiserId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The advertiserId to set. + * @return This builder for chaining. + */ + public Builder setAdvertiserId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + advertiserId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearAdvertiserId() { + + advertiserId_ = getDefaultInstance().getAdvertiserId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for advertiserId to set. + * @return This builder for chaining. + */ + public Builder setAdvertiserIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + advertiserId_ = value; + onChanged(); + return this; + } + + private java.lang.Object advertiserDisplayName_ = ""; + /** + * + * + *
+     * Output only. The display name of the Display & Video 360 Advertiser.
+     * 
+ * + * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The advertiserDisplayName. + */ + public java.lang.String getAdvertiserDisplayName() { + java.lang.Object ref = advertiserDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + advertiserDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The display name of the Display & Video 360 Advertiser.
+     * 
+ * + * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for advertiserDisplayName. + */ + public com.google.protobuf.ByteString getAdvertiserDisplayNameBytes() { + java.lang.Object ref = advertiserDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertiserDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The display name of the Display & Video 360 Advertiser.
+     * 
+ * + * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The advertiserDisplayName to set. + * @return This builder for chaining. + */ + public Builder setAdvertiserDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + advertiserDisplayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The display name of the Display & Video 360 Advertiser.
+     * 
+ * + * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAdvertiserDisplayName() { + + advertiserDisplayName_ = getDefaultInstance().getAdvertiserDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The display name of the Display & Video 360 Advertiser.
+     * 
+ * + * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for advertiserDisplayName to set. + * @return This builder for chaining. + */ + public Builder setAdvertiserDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + advertiserDisplayName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue adsPersonalizationEnabled_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + adsPersonalizationEnabledBuilder_; + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + * + * @return Whether the adsPersonalizationEnabled field is set. + */ + public boolean hasAdsPersonalizationEnabled() { + return adsPersonalizationEnabledBuilder_ != null || adsPersonalizationEnabled_ != null; + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + * + * @return The adsPersonalizationEnabled. + */ + public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { + if (adsPersonalizationEnabledBuilder_ == null) { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } else { + return adsPersonalizationEnabledBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + */ + public Builder setAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { + if (adsPersonalizationEnabledBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + adsPersonalizationEnabled_ = value; + onChanged(); + } else { + adsPersonalizationEnabledBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + */ + public Builder setAdsPersonalizationEnabled( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (adsPersonalizationEnabledBuilder_ == null) { + adsPersonalizationEnabled_ = builderForValue.build(); + onChanged(); + } else { + adsPersonalizationEnabledBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + */ + public Builder mergeAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { + if (adsPersonalizationEnabledBuilder_ == null) { + if (adsPersonalizationEnabled_ != null) { + adsPersonalizationEnabled_ = + com.google.protobuf.BoolValue.newBuilder(adsPersonalizationEnabled_) + .mergeFrom(value) + .buildPartial(); + } else { + adsPersonalizationEnabled_ = value; + } + onChanged(); + } else { + adsPersonalizationEnabledBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + */ + public Builder clearAdsPersonalizationEnabled() { + if (adsPersonalizationEnabledBuilder_ == null) { + adsPersonalizationEnabled_ = null; + onChanged(); + } else { + adsPersonalizationEnabled_ = null; + adsPersonalizationEnabledBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + */ + public com.google.protobuf.BoolValue.Builder getAdsPersonalizationEnabledBuilder() { + + onChanged(); + return getAdsPersonalizationEnabledFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + */ + public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { + if (adsPersonalizationEnabledBuilder_ != null) { + return adsPersonalizationEnabledBuilder_.getMessageOrBuilder(); + } else { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } + } + /** + * + * + *
+     * Enables personalized advertising features with this integration.
+     * If this field is not set on create/update, it will be defaulted to true.
+     * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getAdsPersonalizationEnabledFieldBuilder() { + if (adsPersonalizationEnabledBuilder_ == null) { + adsPersonalizationEnabledBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getAdsPersonalizationEnabled(), getParentForChildren(), isClean()); + adsPersonalizationEnabled_ = null; + } + return adsPersonalizationEnabledBuilder_; + } + + private com.google.protobuf.BoolValue campaignDataSharingEnabled_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + campaignDataSharingEnabledBuilder_; + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360 into the GA4
+     * property. After link creation, this can only be updated from the Display &
+     * Video 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the campaignDataSharingEnabled field is set. + */ + public boolean hasCampaignDataSharingEnabled() { + return campaignDataSharingEnabledBuilder_ != null || campaignDataSharingEnabled_ != null; + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360 into the GA4
+     * property. After link creation, this can only be updated from the Display &
+     * Video 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The campaignDataSharingEnabled. + */ + public com.google.protobuf.BoolValue getCampaignDataSharingEnabled() { + if (campaignDataSharingEnabledBuilder_ == null) { + return campaignDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : campaignDataSharingEnabled_; + } else { + return campaignDataSharingEnabledBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360 into the GA4
+     * property. After link creation, this can only be updated from the Display &
+     * Video 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setCampaignDataSharingEnabled(com.google.protobuf.BoolValue value) { + if (campaignDataSharingEnabledBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + campaignDataSharingEnabled_ = value; + onChanged(); + } else { + campaignDataSharingEnabledBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360 into the GA4
+     * property. After link creation, this can only be updated from the Display &
+     * Video 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setCampaignDataSharingEnabled( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (campaignDataSharingEnabledBuilder_ == null) { + campaignDataSharingEnabled_ = builderForValue.build(); + onChanged(); + } else { + campaignDataSharingEnabledBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360 into the GA4
+     * property. After link creation, this can only be updated from the Display &
+     * Video 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeCampaignDataSharingEnabled(com.google.protobuf.BoolValue value) { + if (campaignDataSharingEnabledBuilder_ == null) { + if (campaignDataSharingEnabled_ != null) { + campaignDataSharingEnabled_ = + com.google.protobuf.BoolValue.newBuilder(campaignDataSharingEnabled_) + .mergeFrom(value) + .buildPartial(); + } else { + campaignDataSharingEnabled_ = value; + } + onChanged(); + } else { + campaignDataSharingEnabledBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360 into the GA4
+     * property. After link creation, this can only be updated from the Display &
+     * Video 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearCampaignDataSharingEnabled() { + if (campaignDataSharingEnabledBuilder_ == null) { + campaignDataSharingEnabled_ = null; + onChanged(); + } else { + campaignDataSharingEnabled_ = null; + campaignDataSharingEnabledBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360 into the GA4
+     * property. After link creation, this can only be updated from the Display &
+     * Video 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValue.Builder getCampaignDataSharingEnabledBuilder() { + + onChanged(); + return getCampaignDataSharingEnabledFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360 into the GA4
+     * property. After link creation, this can only be updated from the Display &
+     * Video 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder() { + if (campaignDataSharingEnabledBuilder_ != null) { + return campaignDataSharingEnabledBuilder_.getMessageOrBuilder(); + } else { + return campaignDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : campaignDataSharingEnabled_; + } + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360 into the GA4
+     * property. After link creation, this can only be updated from the Display &
+     * Video 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getCampaignDataSharingEnabledFieldBuilder() { + if (campaignDataSharingEnabledBuilder_ == null) { + campaignDataSharingEnabledBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getCampaignDataSharingEnabled(), getParentForChildren(), isClean()); + campaignDataSharingEnabled_ = null; + } + return campaignDataSharingEnabledBuilder_; + } + + private com.google.protobuf.BoolValue costDataSharingEnabled_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + costDataSharingEnabledBuilder_; + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
+     * property. This can only be enabled if campaign_data_import_enabled is
+     * enabled. After link creation, this can only be updated from the Display &
+     * Video 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the costDataSharingEnabled field is set. + */ + public boolean hasCostDataSharingEnabled() { + return costDataSharingEnabledBuilder_ != null || costDataSharingEnabled_ != null; + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
+     * property. This can only be enabled if campaign_data_import_enabled is
+     * enabled. After link creation, this can only be updated from the Display &
+     * Video 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The costDataSharingEnabled. + */ + public com.google.protobuf.BoolValue getCostDataSharingEnabled() { + if (costDataSharingEnabledBuilder_ == null) { + return costDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : costDataSharingEnabled_; + } else { + return costDataSharingEnabledBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
+     * property. This can only be enabled if campaign_data_import_enabled is
+     * enabled. After link creation, this can only be updated from the Display &
+     * Video 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setCostDataSharingEnabled(com.google.protobuf.BoolValue value) { + if (costDataSharingEnabledBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + costDataSharingEnabled_ = value; + onChanged(); + } else { + costDataSharingEnabledBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
+     * property. This can only be enabled if campaign_data_import_enabled is
+     * enabled. After link creation, this can only be updated from the Display &
+     * Video 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setCostDataSharingEnabled( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (costDataSharingEnabledBuilder_ == null) { + costDataSharingEnabled_ = builderForValue.build(); + onChanged(); + } else { + costDataSharingEnabledBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
+     * property. This can only be enabled if campaign_data_import_enabled is
+     * enabled. After link creation, this can only be updated from the Display &
+     * Video 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeCostDataSharingEnabled(com.google.protobuf.BoolValue value) { + if (costDataSharingEnabledBuilder_ == null) { + if (costDataSharingEnabled_ != null) { + costDataSharingEnabled_ = + com.google.protobuf.BoolValue.newBuilder(costDataSharingEnabled_) + .mergeFrom(value) + .buildPartial(); + } else { + costDataSharingEnabled_ = value; + } + onChanged(); + } else { + costDataSharingEnabledBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
+     * property. This can only be enabled if campaign_data_import_enabled is
+     * enabled. After link creation, this can only be updated from the Display &
+     * Video 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearCostDataSharingEnabled() { + if (costDataSharingEnabledBuilder_ == null) { + costDataSharingEnabled_ = null; + onChanged(); + } else { + costDataSharingEnabled_ = null; + costDataSharingEnabledBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
+     * property. This can only be enabled if campaign_data_import_enabled is
+     * enabled. After link creation, this can only be updated from the Display &
+     * Video 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValue.Builder getCostDataSharingEnabledBuilder() { + + onChanged(); + return getCostDataSharingEnabledFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
+     * property. This can only be enabled if campaign_data_import_enabled is
+     * enabled. After link creation, this can only be updated from the Display &
+     * Video 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder() { + if (costDataSharingEnabledBuilder_ != null) { + return costDataSharingEnabledBuilder_.getMessageOrBuilder(); + } else { + return costDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : costDataSharingEnabled_; + } + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
+     * property. This can only be enabled if campaign_data_import_enabled is
+     * enabled. After link creation, this can only be updated from the Display &
+     * Video 360 product.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getCostDataSharingEnabledFieldBuilder() { + if (costDataSharingEnabledBuilder_ == null) { + costDataSharingEnabledBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getCostDataSharingEnabled(), getParentForChildren(), isClean()); + costDataSharingEnabled_ = null; + } + return costDataSharingEnabledBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) + private static final com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink(); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisplayVideo360AdvertiserLink parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DisplayVideo360AdvertiserLink(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkName.java new file mode 100644 index 00000000..7e013443 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkName.java @@ -0,0 +1,208 @@ +/* + * 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.admin.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 DisplayVideo360AdvertiserLinkName implements ResourceName { + private static final PathTemplate PROPERTY_DISPLAY_VIDEO360_ADVERTISER_LINK = + PathTemplate.createWithoutUrlEncoding( + "properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}"); + private volatile Map fieldValuesMap; + private final String property; + private final String displayVideo360AdvertiserLink; + + @Deprecated + protected DisplayVideo360AdvertiserLinkName() { + property = null; + displayVideo360AdvertiserLink = null; + } + + private DisplayVideo360AdvertiserLinkName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + displayVideo360AdvertiserLink = + Preconditions.checkNotNull(builder.getDisplayVideo360AdvertiserLink()); + } + + public String getProperty() { + return property; + } + + public String getDisplayVideo360AdvertiserLink() { + return displayVideo360AdvertiserLink; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DisplayVideo360AdvertiserLinkName of( + String property, String displayVideo360AdvertiserLink) { + return newBuilder() + .setProperty(property) + .setDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink) + .build(); + } + + public static String format(String property, String displayVideo360AdvertiserLink) { + return newBuilder() + .setProperty(property) + .setDisplayVideo360AdvertiserLink(displayVideo360AdvertiserLink) + .build() + .toString(); + } + + public static DisplayVideo360AdvertiserLinkName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY_DISPLAY_VIDEO360_ADVERTISER_LINK.validatedMatch( + formattedString, + "DisplayVideo360AdvertiserLinkName.parse: formattedString not in valid format"); + return of(matchMap.get("property"), matchMap.get("display_video_360_advertiser_link")); + } + + 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 (DisplayVideo360AdvertiserLinkName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROPERTY_DISPLAY_VIDEO360_ADVERTISER_LINK.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); + } + if (displayVideo360AdvertiserLink != null) { + fieldMapBuilder.put("display_video_360_advertiser_link", displayVideo360AdvertiserLink); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROPERTY_DISPLAY_VIDEO360_ADVERTISER_LINK.instantiate( + "property", property, "display_video_360_advertiser_link", displayVideo360AdvertiserLink); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + DisplayVideo360AdvertiserLinkName that = ((DisplayVideo360AdvertiserLinkName) o); + return Objects.equals(this.property, that.property) + && Objects.equals(this.displayVideo360AdvertiserLink, that.displayVideo360AdvertiserLink); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(property); + h *= 1000003; + h ^= Objects.hashCode(displayVideo360AdvertiserLink); + return h; + } + + /** + * Builder for + * properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}. + */ + public static class Builder { + private String property; + private String displayVideo360AdvertiserLink; + + protected Builder() {} + + public String getProperty() { + return property; + } + + public String getDisplayVideo360AdvertiserLink() { + return displayVideo360AdvertiserLink; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + public Builder setDisplayVideo360AdvertiserLink(String displayVideo360AdvertiserLink) { + this.displayVideo360AdvertiserLink = displayVideo360AdvertiserLink; + return this; + } + + private Builder(DisplayVideo360AdvertiserLinkName displayVideo360AdvertiserLinkName) { + this.property = displayVideo360AdvertiserLinkName.property; + this.displayVideo360AdvertiserLink = + displayVideo360AdvertiserLinkName.displayVideo360AdvertiserLink; + } + + public DisplayVideo360AdvertiserLinkName build() { + return new DisplayVideo360AdvertiserLinkName(this); + } + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java new file mode 100644 index 00000000..a8b0748b --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java @@ -0,0 +1,245 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface DisplayVideo360AdvertiserLinkOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name for this DisplayVideo360AdvertiserLink resource.
+   * Format: properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
+   * Note: linkId is not the Display & Video 360 Advertiser ID
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name for this DisplayVideo360AdvertiserLink resource.
+   * Format: properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
+   * Note: linkId is not the Display & Video 360 Advertiser ID
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+   * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The advertiserId. + */ + java.lang.String getAdvertiserId(); + /** + * + * + *
+   * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+   * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for advertiserId. + */ + com.google.protobuf.ByteString getAdvertiserIdBytes(); + + /** + * + * + *
+   * Output only. The display name of the Display & Video 360 Advertiser.
+   * 
+ * + * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The advertiserDisplayName. + */ + java.lang.String getAdvertiserDisplayName(); + /** + * + * + *
+   * Output only. The display name of the Display & Video 360 Advertiser.
+   * 
+ * + * string advertiser_display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for advertiserDisplayName. + */ + com.google.protobuf.ByteString getAdvertiserDisplayNameBytes(); + + /** + * + * + *
+   * Enables personalized advertising features with this integration.
+   * If this field is not set on create/update, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + * + * @return Whether the adsPersonalizationEnabled field is set. + */ + boolean hasAdsPersonalizationEnabled(); + /** + * + * + *
+   * Enables personalized advertising features with this integration.
+   * If this field is not set on create/update, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + * + * @return The adsPersonalizationEnabled. + */ + com.google.protobuf.BoolValue getAdsPersonalizationEnabled(); + /** + * + * + *
+   * Enables personalized advertising features with this integration.
+   * If this field is not set on create/update, it will be defaulted to true.
+   * 
+ * + * .google.protobuf.BoolValue ads_personalization_enabled = 4; + */ + com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder(); + + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Display & Video 360 into the GA4
+   * property. After link creation, this can only be updated from the Display &
+   * Video 360 product.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the campaignDataSharingEnabled field is set. + */ + boolean hasCampaignDataSharingEnabled(); + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Display & Video 360 into the GA4
+   * property. After link creation, this can only be updated from the Display &
+   * Video 360 product.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The campaignDataSharingEnabled. + */ + com.google.protobuf.BoolValue getCampaignDataSharingEnabled(); + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Display & Video 360 into the GA4
+   * property. After link creation, this can only be updated from the Display &
+   * Video 360 product.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder(); + + /** + * + * + *
+   * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
+   * property. This can only be enabled if campaign_data_import_enabled is
+   * enabled. After link creation, this can only be updated from the Display &
+   * Video 360 product.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the costDataSharingEnabled field is set. + */ + boolean hasCostDataSharingEnabled(); + /** + * + * + *
+   * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
+   * property. This can only be enabled if campaign_data_import_enabled is
+   * enabled. After link creation, this can only be updated from the Display &
+   * Video 360 product.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The costDataSharingEnabled. + */ + com.google.protobuf.BoolValue getCostDataSharingEnabled(); + /** + * + * + *
+   * Immutable. Enables the import of cost data from Display & Video 360 into the GA4
+   * property. This can only be enabled if campaign_data_import_enabled is
+   * enabled. After link creation, this can only be updated from the Display &
+   * Video 360 product.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java new file mode 100644 index 00000000..abfe4880 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java @@ -0,0 +1,2536 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * A proposal for a link between an GA4 property and a Display & Video 360
+ * advertiser.
+ * A proposal is converted to a DisplayVideo360AdvertiserLink once approved.
+ * Google Analytics admins approve inbound proposals while Display & Video 360
+ * admins approve outbound proposals.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} + */ +public final class DisplayVideo360AdvertiserLinkProposal + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + DisplayVideo360AdvertiserLinkProposalOrBuilder { + private static final long serialVersionUID = 0L; + // Use DisplayVideo360AdvertiserLinkProposal.newBuilder() to construct. + private DisplayVideo360AdvertiserLinkProposal( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DisplayVideo360AdvertiserLinkProposal() { + name_ = ""; + advertiserId_ = ""; + advertiserDisplayName_ = ""; + validationEmail_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DisplayVideo360AdvertiserLinkProposal(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DisplayVideo360AdvertiserLinkProposal( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + 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(); + + advertiserId_ = s; + break; + } + case 26: + { + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.Builder subBuilder = + null; + if (linkProposalStatusDetails_ != null) { + subBuilder = linkProposalStatusDetails_.toBuilder(); + } + linkProposalStatusDetails_ = + input.readMessage( + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(linkProposalStatusDetails_); + linkProposalStatusDetails_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + advertiserDisplayName_ = s; + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + + validationEmail_ = s; + break; + } + case 50: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (adsPersonalizationEnabled_ != null) { + subBuilder = adsPersonalizationEnabled_.toBuilder(); + } + adsPersonalizationEnabled_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(adsPersonalizationEnabled_); + adsPersonalizationEnabled_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (campaignDataSharingEnabled_ != null) { + subBuilder = campaignDataSharingEnabled_.toBuilder(); + } + campaignDataSharingEnabled_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(campaignDataSharingEnabled_); + campaignDataSharingEnabled_ = subBuilder.buildPartial(); + } + + break; + } + case 66: + { + com.google.protobuf.BoolValue.Builder subBuilder = null; + if (costDataSharingEnabled_ != null) { + subBuilder = costDataSharingEnabled_.toBuilder(); + } + costDataSharingEnabled_ = + input.readMessage(com.google.protobuf.BoolValue.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(costDataSharingEnabled_); + costDataSharingEnabled_ = 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.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.class, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. The resource name for this DisplayVideo360AdvertiserLinkProposal resource.
+   * Format:
+   * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
+   * Note: proposalId is not the Display & Video 360 Advertiser ID
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The resource name for this DisplayVideo360AdvertiserLinkProposal resource.
+   * Format:
+   * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
+   * Note: proposalId is not the Display & Video 360 Advertiser ID
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADVERTISER_ID_FIELD_NUMBER = 2; + private volatile java.lang.Object advertiserId_; + /** + * + * + *
+   * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+   * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The advertiserId. + */ + @java.lang.Override + public java.lang.String getAdvertiserId() { + java.lang.Object ref = advertiserId_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + advertiserId_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+   * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for advertiserId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdvertiserIdBytes() { + java.lang.Object ref = advertiserId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertiserId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LINK_PROPOSAL_STATUS_DETAILS_FIELD_NUMBER = 3; + private com.google.analytics.admin.v1alpha.LinkProposalStatusDetails linkProposalStatusDetails_; + /** + * + * + *
+   * Output only. The status information for this link proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the linkProposalStatusDetails field is set. + */ + @java.lang.Override + public boolean hasLinkProposalStatusDetails() { + return linkProposalStatusDetails_ != null; + } + /** + * + * + *
+   * Output only. The status information for this link proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The linkProposalStatusDetails. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.LinkProposalStatusDetails + getLinkProposalStatusDetails() { + return linkProposalStatusDetails_ == null + ? com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.getDefaultInstance() + : linkProposalStatusDetails_; + } + /** + * + * + *
+   * Output only. The status information for this link proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.LinkProposalStatusDetailsOrBuilder + getLinkProposalStatusDetailsOrBuilder() { + return getLinkProposalStatusDetails(); + } + + public static final int ADVERTISER_DISPLAY_NAME_FIELD_NUMBER = 4; + private volatile java.lang.Object advertiserDisplayName_; + /** + * + * + *
+   * Output only. The display name of the Display & Video Advertiser.
+   * Only populated for proposals that originated from Display & Video 360.
+   * 
+ * + * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The advertiserDisplayName. + */ + @java.lang.Override + public java.lang.String getAdvertiserDisplayName() { + java.lang.Object ref = advertiserDisplayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + advertiserDisplayName_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The display name of the Display & Video Advertiser.
+   * Only populated for proposals that originated from Display & Video 360.
+   * 
+ * + * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for advertiserDisplayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdvertiserDisplayNameBytes() { + java.lang.Object ref = advertiserDisplayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertiserDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATION_EMAIL_FIELD_NUMBER = 5; + private volatile java.lang.Object validationEmail_; + /** + * + * + *
+   * Input only. On a proposal being sent to Display & Video 360, this field must be set to
+   * the email address of an admin on the target advertiser. This is used to
+   * verify that the Google Analytics admin is aware of at least one admin on
+   * the Display & Video 360 Advertiser. This does not restrict approval of the
+   * proposal to a single user. Any admin on the Display & Video 360 Advertiser
+   * may approve the proposal.
+   * 
+ * + * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The validationEmail. + */ + @java.lang.Override + public java.lang.String getValidationEmail() { + java.lang.Object ref = validationEmail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + validationEmail_ = s; + return s; + } + } + /** + * + * + *
+   * Input only. On a proposal being sent to Display & Video 360, this field must be set to
+   * the email address of an admin on the target advertiser. This is used to
+   * verify that the Google Analytics admin is aware of at least one admin on
+   * the Display & Video 360 Advertiser. This does not restrict approval of the
+   * proposal to a single user. Any admin on the Display & Video 360 Advertiser
+   * may approve the proposal.
+   * 
+ * + * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for validationEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValidationEmailBytes() { + java.lang.Object ref = validationEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + validationEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER = 6; + private com.google.protobuf.BoolValue adsPersonalizationEnabled_; + /** + * + * + *
+   * Immutable. Enables personalized advertising features with this integration.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the adsPersonalizationEnabled field is set. + */ + @java.lang.Override + public boolean hasAdsPersonalizationEnabled() { + return adsPersonalizationEnabled_ != null; + } + /** + * + * + *
+   * Immutable. Enables personalized advertising features with this integration.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The adsPersonalizationEnabled. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } + /** + * + * + *
+   * Immutable. Enables personalized advertising features with this integration.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { + return getAdsPersonalizationEnabled(); + } + + public static final int CAMPAIGN_DATA_SHARING_ENABLED_FIELD_NUMBER = 7; + private com.google.protobuf.BoolValue campaignDataSharingEnabled_; + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Display & Video 360.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the campaignDataSharingEnabled field is set. + */ + @java.lang.Override + public boolean hasCampaignDataSharingEnabled() { + return campaignDataSharingEnabled_ != null; + } + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Display & Video 360.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The campaignDataSharingEnabled. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getCampaignDataSharingEnabled() { + return campaignDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : campaignDataSharingEnabled_; + } + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Display & Video 360.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder() { + return getCampaignDataSharingEnabled(); + } + + public static final int COST_DATA_SHARING_ENABLED_FIELD_NUMBER = 8; + private com.google.protobuf.BoolValue costDataSharingEnabled_; + /** + * + * + *
+   * Immutable. Enables the import of cost data from Display & Video 360.
+   * This can only be enabled if campaign_data_import_enabled is enabled.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the costDataSharingEnabled field is set. + */ + @java.lang.Override + public boolean hasCostDataSharingEnabled() { + return costDataSharingEnabled_ != null; + } + /** + * + * + *
+   * Immutable. Enables the import of cost data from Display & Video 360.
+   * This can only be enabled if campaign_data_import_enabled is enabled.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The costDataSharingEnabled. + */ + @java.lang.Override + public com.google.protobuf.BoolValue getCostDataSharingEnabled() { + return costDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : costDataSharingEnabled_; + } + /** + * + * + *
+   * Immutable. Enables the import of cost data from Display & Video 360.
+   * This can only be enabled if campaign_data_import_enabled is enabled.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + @java.lang.Override + public com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder() { + return getCostDataSharingEnabled(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (!getAdvertiserIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, advertiserId_); + } + if (linkProposalStatusDetails_ != null) { + output.writeMessage(3, getLinkProposalStatusDetails()); + } + if (!getAdvertiserDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, advertiserDisplayName_); + } + if (!getValidationEmailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, validationEmail_); + } + if (adsPersonalizationEnabled_ != null) { + output.writeMessage(6, getAdsPersonalizationEnabled()); + } + if (campaignDataSharingEnabled_ != null) { + output.writeMessage(7, getCampaignDataSharingEnabled()); + } + if (costDataSharingEnabled_ != null) { + output.writeMessage(8, getCostDataSharingEnabled()); + } + 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 (!getAdvertiserIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, advertiserId_); + } + if (linkProposalStatusDetails_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, getLinkProposalStatusDetails()); + } + if (!getAdvertiserDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, advertiserDisplayName_); + } + if (!getValidationEmailBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, validationEmail_); + } + if (adsPersonalizationEnabled_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, getAdsPersonalizationEnabled()); + } + if (campaignDataSharingEnabled_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, getCampaignDataSharingEnabled()); + } + if (costDataSharingEnabled_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(8, getCostDataSharingEnabled()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal other = + (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) obj; + + if (!getName().equals(other.getName())) return false; + if (!getAdvertiserId().equals(other.getAdvertiserId())) return false; + if (hasLinkProposalStatusDetails() != other.hasLinkProposalStatusDetails()) return false; + if (hasLinkProposalStatusDetails()) { + if (!getLinkProposalStatusDetails().equals(other.getLinkProposalStatusDetails())) + return false; + } + if (!getAdvertiserDisplayName().equals(other.getAdvertiserDisplayName())) return false; + if (!getValidationEmail().equals(other.getValidationEmail())) return false; + if (hasAdsPersonalizationEnabled() != other.hasAdsPersonalizationEnabled()) return false; + if (hasAdsPersonalizationEnabled()) { + if (!getAdsPersonalizationEnabled().equals(other.getAdsPersonalizationEnabled())) + return false; + } + if (hasCampaignDataSharingEnabled() != other.hasCampaignDataSharingEnabled()) return false; + if (hasCampaignDataSharingEnabled()) { + if (!getCampaignDataSharingEnabled().equals(other.getCampaignDataSharingEnabled())) + return false; + } + if (hasCostDataSharingEnabled() != other.hasCostDataSharingEnabled()) return false; + if (hasCostDataSharingEnabled()) { + if (!getCostDataSharingEnabled().equals(other.getCostDataSharingEnabled())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + 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) + ADVERTISER_ID_FIELD_NUMBER; + hash = (53 * hash) + getAdvertiserId().hashCode(); + if (hasLinkProposalStatusDetails()) { + hash = (37 * hash) + LINK_PROPOSAL_STATUS_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getLinkProposalStatusDetails().hashCode(); + } + hash = (37 * hash) + ADVERTISER_DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getAdvertiserDisplayName().hashCode(); + hash = (37 * hash) + VALIDATION_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getValidationEmail().hashCode(); + if (hasAdsPersonalizationEnabled()) { + hash = (37 * hash) + ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + getAdsPersonalizationEnabled().hashCode(); + } + if (hasCampaignDataSharingEnabled()) { + hash = (37 * hash) + CAMPAIGN_DATA_SHARING_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + getCampaignDataSharingEnabled().hashCode(); + } + if (hasCostDataSharingEnabled()) { + hash = (37 * hash) + COST_DATA_SHARING_ENABLED_FIELD_NUMBER; + hash = (53 * hash) + getCostDataSharingEnabled().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 proposal for a link between an GA4 property and a Display & Video 360
+   * advertiser.
+   * A proposal is converted to a DisplayVideo360AdvertiserLink once approved.
+   * Google Analytics admins approve inbound proposals while Display & Video 360
+   * admins approve outbound proposals.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.class, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.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_ = ""; + + advertiserId_ = ""; + + if (linkProposalStatusDetailsBuilder_ == null) { + linkProposalStatusDetails_ = null; + } else { + linkProposalStatusDetails_ = null; + linkProposalStatusDetailsBuilder_ = null; + } + advertiserDisplayName_ = ""; + + validationEmail_ = ""; + + if (adsPersonalizationEnabledBuilder_ == null) { + adsPersonalizationEnabled_ = null; + } else { + adsPersonalizationEnabled_ = null; + adsPersonalizationEnabledBuilder_ = null; + } + if (campaignDataSharingEnabledBuilder_ == null) { + campaignDataSharingEnabled_ = null; + } else { + campaignDataSharingEnabled_ = null; + campaignDataSharingEnabledBuilder_ = null; + } + if (costDataSharingEnabledBuilder_ == null) { + costDataSharingEnabled_ = null; + } else { + costDataSharingEnabled_ = null; + costDataSharingEnabledBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal build() { + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal buildPartial() { + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal result = + new com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal(this); + result.name_ = name_; + result.advertiserId_ = advertiserId_; + if (linkProposalStatusDetailsBuilder_ == null) { + result.linkProposalStatusDetails_ = linkProposalStatusDetails_; + } else { + result.linkProposalStatusDetails_ = linkProposalStatusDetailsBuilder_.build(); + } + result.advertiserDisplayName_ = advertiserDisplayName_; + result.validationEmail_ = validationEmail_; + if (adsPersonalizationEnabledBuilder_ == null) { + result.adsPersonalizationEnabled_ = adsPersonalizationEnabled_; + } else { + result.adsPersonalizationEnabled_ = adsPersonalizationEnabledBuilder_.build(); + } + if (campaignDataSharingEnabledBuilder_ == null) { + result.campaignDataSharingEnabled_ = campaignDataSharingEnabled_; + } else { + result.campaignDataSharingEnabled_ = campaignDataSharingEnabledBuilder_.build(); + } + if (costDataSharingEnabledBuilder_ == null) { + result.costDataSharingEnabled_ = costDataSharingEnabled_; + } else { + result.costDataSharingEnabled_ = costDataSharingEnabledBuilder_.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.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal other) { + if (other + == com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getAdvertiserId().isEmpty()) { + advertiserId_ = other.advertiserId_; + onChanged(); + } + if (other.hasLinkProposalStatusDetails()) { + mergeLinkProposalStatusDetails(other.getLinkProposalStatusDetails()); + } + if (!other.getAdvertiserDisplayName().isEmpty()) { + advertiserDisplayName_ = other.advertiserDisplayName_; + onChanged(); + } + if (!other.getValidationEmail().isEmpty()) { + validationEmail_ = other.validationEmail_; + onChanged(); + } + if (other.hasAdsPersonalizationEnabled()) { + mergeAdsPersonalizationEnabled(other.getAdsPersonalizationEnabled()); + } + if (other.hasCampaignDataSharingEnabled()) { + mergeCampaignDataSharingEnabled(other.getCampaignDataSharingEnabled()); + } + if (other.hasCostDataSharingEnabled()) { + mergeCostDataSharingEnabled(other.getCostDataSharingEnabled()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. The resource name for this DisplayVideo360AdvertiserLinkProposal resource.
+     * Format:
+     * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
+     * Note: proposalId is not the Display & Video 360 Advertiser ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The resource name for this DisplayVideo360AdvertiserLinkProposal resource.
+     * Format:
+     * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
+     * Note: proposalId is not the Display & Video 360 Advertiser ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The resource name for this DisplayVideo360AdvertiserLinkProposal resource.
+     * Format:
+     * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
+     * Note: proposalId is not the Display & Video 360 Advertiser ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name for this DisplayVideo360AdvertiserLinkProposal resource.
+     * Format:
+     * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
+     * Note: proposalId is not the Display & Video 360 Advertiser ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The resource name for this DisplayVideo360AdvertiserLinkProposal resource.
+     * Format:
+     * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
+     * Note: proposalId is not the Display & Video 360 Advertiser ID
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private java.lang.Object advertiserId_ = ""; + /** + * + * + *
+     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The advertiserId. + */ + public java.lang.String getAdvertiserId() { + java.lang.Object ref = advertiserId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + advertiserId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for advertiserId. + */ + public com.google.protobuf.ByteString getAdvertiserIdBytes() { + java.lang.Object ref = advertiserId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertiserId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The advertiserId to set. + * @return This builder for chaining. + */ + public Builder setAdvertiserId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + advertiserId_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearAdvertiserId() { + + advertiserId_ = getDefaultInstance().getAdvertiserId(); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+     * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for advertiserId to set. + * @return This builder for chaining. + */ + public Builder setAdvertiserIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + advertiserId_ = value; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.LinkProposalStatusDetails linkProposalStatusDetails_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails, + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.Builder, + com.google.analytics.admin.v1alpha.LinkProposalStatusDetailsOrBuilder> + linkProposalStatusDetailsBuilder_; + /** + * + * + *
+     * Output only. The status information for this link proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the linkProposalStatusDetails field is set. + */ + public boolean hasLinkProposalStatusDetails() { + return linkProposalStatusDetailsBuilder_ != null || linkProposalStatusDetails_ != null; + } + /** + * + * + *
+     * Output only. The status information for this link proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The linkProposalStatusDetails. + */ + public com.google.analytics.admin.v1alpha.LinkProposalStatusDetails + getLinkProposalStatusDetails() { + if (linkProposalStatusDetailsBuilder_ == null) { + return linkProposalStatusDetails_ == null + ? com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.getDefaultInstance() + : linkProposalStatusDetails_; + } else { + return linkProposalStatusDetailsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. The status information for this link proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLinkProposalStatusDetails( + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails value) { + if (linkProposalStatusDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + linkProposalStatusDetails_ = value; + onChanged(); + } else { + linkProposalStatusDetailsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The status information for this link proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setLinkProposalStatusDetails( + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.Builder builderForValue) { + if (linkProposalStatusDetailsBuilder_ == null) { + linkProposalStatusDetails_ = builderForValue.build(); + onChanged(); + } else { + linkProposalStatusDetailsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. The status information for this link proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeLinkProposalStatusDetails( + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails value) { + if (linkProposalStatusDetailsBuilder_ == null) { + if (linkProposalStatusDetails_ != null) { + linkProposalStatusDetails_ = + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.newBuilder( + linkProposalStatusDetails_) + .mergeFrom(value) + .buildPartial(); + } else { + linkProposalStatusDetails_ = value; + } + onChanged(); + } else { + linkProposalStatusDetailsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. The status information for this link proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearLinkProposalStatusDetails() { + if (linkProposalStatusDetailsBuilder_ == null) { + linkProposalStatusDetails_ = null; + onChanged(); + } else { + linkProposalStatusDetails_ = null; + linkProposalStatusDetailsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. The status information for this link proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.Builder + getLinkProposalStatusDetailsBuilder() { + + onChanged(); + return getLinkProposalStatusDetailsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. The status information for this link proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.analytics.admin.v1alpha.LinkProposalStatusDetailsOrBuilder + getLinkProposalStatusDetailsOrBuilder() { + if (linkProposalStatusDetailsBuilder_ != null) { + return linkProposalStatusDetailsBuilder_.getMessageOrBuilder(); + } else { + return linkProposalStatusDetails_ == null + ? com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.getDefaultInstance() + : linkProposalStatusDetails_; + } + } + /** + * + * + *
+     * Output only. The status information for this link proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails, + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.Builder, + com.google.analytics.admin.v1alpha.LinkProposalStatusDetailsOrBuilder> + getLinkProposalStatusDetailsFieldBuilder() { + if (linkProposalStatusDetailsBuilder_ == null) { + linkProposalStatusDetailsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails, + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.Builder, + com.google.analytics.admin.v1alpha.LinkProposalStatusDetailsOrBuilder>( + getLinkProposalStatusDetails(), getParentForChildren(), isClean()); + linkProposalStatusDetails_ = null; + } + return linkProposalStatusDetailsBuilder_; + } + + private java.lang.Object advertiserDisplayName_ = ""; + /** + * + * + *
+     * Output only. The display name of the Display & Video Advertiser.
+     * Only populated for proposals that originated from Display & Video 360.
+     * 
+ * + * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The advertiserDisplayName. + */ + public java.lang.String getAdvertiserDisplayName() { + java.lang.Object ref = advertiserDisplayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + advertiserDisplayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The display name of the Display & Video Advertiser.
+     * Only populated for proposals that originated from Display & Video 360.
+     * 
+ * + * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for advertiserDisplayName. + */ + public com.google.protobuf.ByteString getAdvertiserDisplayNameBytes() { + java.lang.Object ref = advertiserDisplayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + advertiserDisplayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The display name of the Display & Video Advertiser.
+     * Only populated for proposals that originated from Display & Video 360.
+     * 
+ * + * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The advertiserDisplayName to set. + * @return This builder for chaining. + */ + public Builder setAdvertiserDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + advertiserDisplayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The display name of the Display & Video Advertiser.
+     * Only populated for proposals that originated from Display & Video 360.
+     * 
+ * + * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAdvertiserDisplayName() { + + advertiserDisplayName_ = getDefaultInstance().getAdvertiserDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The display name of the Display & Video Advertiser.
+     * Only populated for proposals that originated from Display & Video 360.
+     * 
+ * + * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for advertiserDisplayName to set. + * @return This builder for chaining. + */ + public Builder setAdvertiserDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + advertiserDisplayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object validationEmail_ = ""; + /** + * + * + *
+     * Input only. On a proposal being sent to Display & Video 360, this field must be set to
+     * the email address of an admin on the target advertiser. This is used to
+     * verify that the Google Analytics admin is aware of at least one admin on
+     * the Display & Video 360 Advertiser. This does not restrict approval of the
+     * proposal to a single user. Any admin on the Display & Video 360 Advertiser
+     * may approve the proposal.
+     * 
+ * + * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The validationEmail. + */ + public java.lang.String getValidationEmail() { + java.lang.Object ref = validationEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + validationEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Input only. On a proposal being sent to Display & Video 360, this field must be set to
+     * the email address of an admin on the target advertiser. This is used to
+     * verify that the Google Analytics admin is aware of at least one admin on
+     * the Display & Video 360 Advertiser. This does not restrict approval of the
+     * proposal to a single user. Any admin on the Display & Video 360 Advertiser
+     * may approve the proposal.
+     * 
+ * + * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for validationEmail. + */ + public com.google.protobuf.ByteString getValidationEmailBytes() { + java.lang.Object ref = validationEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + validationEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Input only. On a proposal being sent to Display & Video 360, this field must be set to
+     * the email address of an admin on the target advertiser. This is used to
+     * verify that the Google Analytics admin is aware of at least one admin on
+     * the Display & Video 360 Advertiser. This does not restrict approval of the
+     * proposal to a single user. Any admin on the Display & Video 360 Advertiser
+     * may approve the proposal.
+     * 
+ * + * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @param value The validationEmail to set. + * @return This builder for chaining. + */ + public Builder setValidationEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + validationEmail_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Input only. On a proposal being sent to Display & Video 360, this field must be set to
+     * the email address of an admin on the target advertiser. This is used to
+     * verify that the Google Analytics admin is aware of at least one admin on
+     * the Display & Video 360 Advertiser. This does not restrict approval of the
+     * proposal to a single user. Any admin on the Display & Video 360 Advertiser
+     * may approve the proposal.
+     * 
+ * + * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearValidationEmail() { + + validationEmail_ = getDefaultInstance().getValidationEmail(); + onChanged(); + return this; + } + /** + * + * + *
+     * Input only. On a proposal being sent to Display & Video 360, this field must be set to
+     * the email address of an admin on the target advertiser. This is used to
+     * verify that the Google Analytics admin is aware of at least one admin on
+     * the Display & Video 360 Advertiser. This does not restrict approval of the
+     * proposal to a single user. Any admin on the Display & Video 360 Advertiser
+     * may approve the proposal.
+     * 
+ * + * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @param value The bytes for validationEmail to set. + * @return This builder for chaining. + */ + public Builder setValidationEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + validationEmail_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.BoolValue adsPersonalizationEnabled_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + adsPersonalizationEnabledBuilder_; + /** + * + * + *
+     * Immutable. Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the adsPersonalizationEnabled field is set. + */ + public boolean hasAdsPersonalizationEnabled() { + return adsPersonalizationEnabledBuilder_ != null || adsPersonalizationEnabled_ != null; + } + /** + * + * + *
+     * Immutable. Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The adsPersonalizationEnabled. + */ + public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { + if (adsPersonalizationEnabledBuilder_ == null) { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } else { + return adsPersonalizationEnabledBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Immutable. Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { + if (adsPersonalizationEnabledBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + adsPersonalizationEnabled_ = value; + onChanged(); + } else { + adsPersonalizationEnabledBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Immutable. Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setAdsPersonalizationEnabled( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (adsPersonalizationEnabledBuilder_ == null) { + adsPersonalizationEnabled_ = builderForValue.build(); + onChanged(); + } else { + adsPersonalizationEnabledBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Immutable. Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) { + if (adsPersonalizationEnabledBuilder_ == null) { + if (adsPersonalizationEnabled_ != null) { + adsPersonalizationEnabled_ = + com.google.protobuf.BoolValue.newBuilder(adsPersonalizationEnabled_) + .mergeFrom(value) + .buildPartial(); + } else { + adsPersonalizationEnabled_ = value; + } + onChanged(); + } else { + adsPersonalizationEnabledBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Immutable. Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearAdsPersonalizationEnabled() { + if (adsPersonalizationEnabledBuilder_ == null) { + adsPersonalizationEnabled_ = null; + onChanged(); + } else { + adsPersonalizationEnabled_ = null; + adsPersonalizationEnabledBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Immutable. Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValue.Builder getAdsPersonalizationEnabledBuilder() { + + onChanged(); + return getAdsPersonalizationEnabledFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Immutable. Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder() { + if (adsPersonalizationEnabledBuilder_ != null) { + return adsPersonalizationEnabledBuilder_.getMessageOrBuilder(); + } else { + return adsPersonalizationEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : adsPersonalizationEnabled_; + } + } + /** + * + * + *
+     * Immutable. Enables personalized advertising features with this integration.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getAdsPersonalizationEnabledFieldBuilder() { + if (adsPersonalizationEnabledBuilder_ == null) { + adsPersonalizationEnabledBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getAdsPersonalizationEnabled(), getParentForChildren(), isClean()); + adsPersonalizationEnabled_ = null; + } + return adsPersonalizationEnabledBuilder_; + } + + private com.google.protobuf.BoolValue campaignDataSharingEnabled_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + campaignDataSharingEnabledBuilder_; + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the campaignDataSharingEnabled field is set. + */ + public boolean hasCampaignDataSharingEnabled() { + return campaignDataSharingEnabledBuilder_ != null || campaignDataSharingEnabled_ != null; + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The campaignDataSharingEnabled. + */ + public com.google.protobuf.BoolValue getCampaignDataSharingEnabled() { + if (campaignDataSharingEnabledBuilder_ == null) { + return campaignDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : campaignDataSharingEnabled_; + } else { + return campaignDataSharingEnabledBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setCampaignDataSharingEnabled(com.google.protobuf.BoolValue value) { + if (campaignDataSharingEnabledBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + campaignDataSharingEnabled_ = value; + onChanged(); + } else { + campaignDataSharingEnabledBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setCampaignDataSharingEnabled( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (campaignDataSharingEnabledBuilder_ == null) { + campaignDataSharingEnabled_ = builderForValue.build(); + onChanged(); + } else { + campaignDataSharingEnabledBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeCampaignDataSharingEnabled(com.google.protobuf.BoolValue value) { + if (campaignDataSharingEnabledBuilder_ == null) { + if (campaignDataSharingEnabled_ != null) { + campaignDataSharingEnabled_ = + com.google.protobuf.BoolValue.newBuilder(campaignDataSharingEnabled_) + .mergeFrom(value) + .buildPartial(); + } else { + campaignDataSharingEnabled_ = value; + } + onChanged(); + } else { + campaignDataSharingEnabledBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearCampaignDataSharingEnabled() { + if (campaignDataSharingEnabledBuilder_ == null) { + campaignDataSharingEnabled_ = null; + onChanged(); + } else { + campaignDataSharingEnabled_ = null; + campaignDataSharingEnabledBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValue.Builder getCampaignDataSharingEnabledBuilder() { + + onChanged(); + return getCampaignDataSharingEnabledFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder() { + if (campaignDataSharingEnabledBuilder_ != null) { + return campaignDataSharingEnabledBuilder_.getMessageOrBuilder(); + } else { + return campaignDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : campaignDataSharingEnabled_; + } + } + /** + * + * + *
+     * Immutable. Enables the import of campaign data from Display & Video 360.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getCampaignDataSharingEnabledFieldBuilder() { + if (campaignDataSharingEnabledBuilder_ == null) { + campaignDataSharingEnabledBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getCampaignDataSharingEnabled(), getParentForChildren(), isClean()); + campaignDataSharingEnabled_ = null; + } + return campaignDataSharingEnabledBuilder_; + } + + private com.google.protobuf.BoolValue costDataSharingEnabled_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + costDataSharingEnabledBuilder_; + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360.
+     * This can only be enabled if campaign_data_import_enabled is enabled.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the costDataSharingEnabled field is set. + */ + public boolean hasCostDataSharingEnabled() { + return costDataSharingEnabledBuilder_ != null || costDataSharingEnabled_ != null; + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360.
+     * This can only be enabled if campaign_data_import_enabled is enabled.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The costDataSharingEnabled. + */ + public com.google.protobuf.BoolValue getCostDataSharingEnabled() { + if (costDataSharingEnabledBuilder_ == null) { + return costDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : costDataSharingEnabled_; + } else { + return costDataSharingEnabledBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360.
+     * This can only be enabled if campaign_data_import_enabled is enabled.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setCostDataSharingEnabled(com.google.protobuf.BoolValue value) { + if (costDataSharingEnabledBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + costDataSharingEnabled_ = value; + onChanged(); + } else { + costDataSharingEnabledBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360.
+     * This can only be enabled if campaign_data_import_enabled is enabled.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder setCostDataSharingEnabled( + com.google.protobuf.BoolValue.Builder builderForValue) { + if (costDataSharingEnabledBuilder_ == null) { + costDataSharingEnabled_ = builderForValue.build(); + onChanged(); + } else { + costDataSharingEnabledBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360.
+     * This can only be enabled if campaign_data_import_enabled is enabled.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder mergeCostDataSharingEnabled(com.google.protobuf.BoolValue value) { + if (costDataSharingEnabledBuilder_ == null) { + if (costDataSharingEnabled_ != null) { + costDataSharingEnabled_ = + com.google.protobuf.BoolValue.newBuilder(costDataSharingEnabled_) + .mergeFrom(value) + .buildPartial(); + } else { + costDataSharingEnabled_ = value; + } + onChanged(); + } else { + costDataSharingEnabledBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360.
+     * This can only be enabled if campaign_data_import_enabled is enabled.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public Builder clearCostDataSharingEnabled() { + if (costDataSharingEnabledBuilder_ == null) { + costDataSharingEnabled_ = null; + onChanged(); + } else { + costDataSharingEnabled_ = null; + costDataSharingEnabledBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360.
+     * This can only be enabled if campaign_data_import_enabled is enabled.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValue.Builder getCostDataSharingEnabledBuilder() { + + onChanged(); + return getCostDataSharingEnabledFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360.
+     * This can only be enabled if campaign_data_import_enabled is enabled.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + public com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder() { + if (costDataSharingEnabledBuilder_ != null) { + return costDataSharingEnabledBuilder_.getMessageOrBuilder(); + } else { + return costDataSharingEnabled_ == null + ? com.google.protobuf.BoolValue.getDefaultInstance() + : costDataSharingEnabled_; + } + } + /** + * + * + *
+     * Immutable. Enables the import of cost data from Display & Video 360.
+     * This can only be enabled if campaign_data_import_enabled is enabled.
+     * If this field is not set on create, it will be defaulted to true.
+     * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder> + getCostDataSharingEnabledFieldBuilder() { + if (costDataSharingEnabledBuilder_ == null) { + costDataSharingEnabledBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.BoolValue, + com.google.protobuf.BoolValue.Builder, + com.google.protobuf.BoolValueOrBuilder>( + getCostDataSharingEnabled(), getParentForChildren(), isClean()); + costDataSharingEnabled_ = null; + } + return costDataSharingEnabledBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + private static final com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal(); + } + + public static com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisplayVideo360AdvertiserLinkProposal parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DisplayVideo360AdvertiserLinkProposal(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalName.java new file mode 100644 index 00000000..156b6b7a --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalName.java @@ -0,0 +1,219 @@ +/* + * 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.admin.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 DisplayVideo360AdvertiserLinkProposalName implements ResourceName { + private static final PathTemplate PROPERTY_DISPLAY_VIDEO360_ADVERTISER_LINK_PROPOSAL = + PathTemplate.createWithoutUrlEncoding( + "properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}"); + private volatile Map fieldValuesMap; + private final String property; + private final String displayVideo360AdvertiserLinkProposal; + + @Deprecated + protected DisplayVideo360AdvertiserLinkProposalName() { + property = null; + displayVideo360AdvertiserLinkProposal = null; + } + + private DisplayVideo360AdvertiserLinkProposalName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + displayVideo360AdvertiserLinkProposal = + Preconditions.checkNotNull(builder.getDisplayVideo360AdvertiserLinkProposal()); + } + + public String getProperty() { + return property; + } + + public String getDisplayVideo360AdvertiserLinkProposal() { + return displayVideo360AdvertiserLinkProposal; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static DisplayVideo360AdvertiserLinkProposalName of( + String property, String displayVideo360AdvertiserLinkProposal) { + return newBuilder() + .setProperty(property) + .setDisplayVideo360AdvertiserLinkProposal(displayVideo360AdvertiserLinkProposal) + .build(); + } + + public static String format(String property, String displayVideo360AdvertiserLinkProposal) { + return newBuilder() + .setProperty(property) + .setDisplayVideo360AdvertiserLinkProposal(displayVideo360AdvertiserLinkProposal) + .build() + .toString(); + } + + public static DisplayVideo360AdvertiserLinkProposalName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY_DISPLAY_VIDEO360_ADVERTISER_LINK_PROPOSAL.validatedMatch( + formattedString, + "DisplayVideo360AdvertiserLinkProposalName.parse: formattedString not in valid format"); + return of(matchMap.get("property"), matchMap.get("display_video_360_advertiser_link_proposal")); + } + + 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 (DisplayVideo360AdvertiserLinkProposalName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROPERTY_DISPLAY_VIDEO360_ADVERTISER_LINK_PROPOSAL.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); + } + if (displayVideo360AdvertiserLinkProposal != null) { + fieldMapBuilder.put( + "display_video_360_advertiser_link_proposal", + displayVideo360AdvertiserLinkProposal); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROPERTY_DISPLAY_VIDEO360_ADVERTISER_LINK_PROPOSAL.instantiate( + "property", + property, + "display_video_360_advertiser_link_proposal", + displayVideo360AdvertiserLinkProposal); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + DisplayVideo360AdvertiserLinkProposalName that = + ((DisplayVideo360AdvertiserLinkProposalName) o); + return Objects.equals(this.property, that.property) + && Objects.equals( + this.displayVideo360AdvertiserLinkProposal, + that.displayVideo360AdvertiserLinkProposal); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(property); + h *= 1000003; + h ^= Objects.hashCode(displayVideo360AdvertiserLinkProposal); + return h; + } + + /** + * Builder for + * properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}. + */ + public static class Builder { + private String property; + private String displayVideo360AdvertiserLinkProposal; + + protected Builder() {} + + public String getProperty() { + return property; + } + + public String getDisplayVideo360AdvertiserLinkProposal() { + return displayVideo360AdvertiserLinkProposal; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + public Builder setDisplayVideo360AdvertiserLinkProposal( + String displayVideo360AdvertiserLinkProposal) { + this.displayVideo360AdvertiserLinkProposal = displayVideo360AdvertiserLinkProposal; + return this; + } + + private Builder( + DisplayVideo360AdvertiserLinkProposalName displayVideo360AdvertiserLinkProposalName) { + this.property = displayVideo360AdvertiserLinkProposalName.property; + this.displayVideo360AdvertiserLinkProposal = + displayVideo360AdvertiserLinkProposalName.displayVideo360AdvertiserLinkProposal; + } + + public DisplayVideo360AdvertiserLinkProposalName build() { + return new DisplayVideo360AdvertiserLinkProposalName(this); + } + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java new file mode 100644 index 00000000..f49feed7 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java @@ -0,0 +1,320 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface DisplayVideo360AdvertiserLinkProposalOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The resource name for this DisplayVideo360AdvertiserLinkProposal resource.
+   * Format:
+   * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
+   * Note: proposalId is not the Display & Video 360 Advertiser ID
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. The resource name for this DisplayVideo360AdvertiserLinkProposal resource.
+   * Format:
+   * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
+   * Note: proposalId is not the Display & Video 360 Advertiser ID
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+   * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The advertiserId. + */ + java.lang.String getAdvertiserId(); + /** + * + * + *
+   * Immutable. The Display & Video 360 Advertiser's advertiser ID.
+   * 
+ * + * string advertiser_id = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for advertiserId. + */ + com.google.protobuf.ByteString getAdvertiserIdBytes(); + + /** + * + * + *
+   * Output only. The status information for this link proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the linkProposalStatusDetails field is set. + */ + boolean hasLinkProposalStatusDetails(); + /** + * + * + *
+   * Output only. The status information for this link proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The linkProposalStatusDetails. + */ + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails getLinkProposalStatusDetails(); + /** + * + * + *
+   * Output only. The status information for this link proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalStatusDetails link_proposal_status_details = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.analytics.admin.v1alpha.LinkProposalStatusDetailsOrBuilder + getLinkProposalStatusDetailsOrBuilder(); + + /** + * + * + *
+   * Output only. The display name of the Display & Video Advertiser.
+   * Only populated for proposals that originated from Display & Video 360.
+   * 
+ * + * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The advertiserDisplayName. + */ + java.lang.String getAdvertiserDisplayName(); + /** + * + * + *
+   * Output only. The display name of the Display & Video Advertiser.
+   * Only populated for proposals that originated from Display & Video 360.
+   * 
+ * + * string advertiser_display_name = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for advertiserDisplayName. + */ + com.google.protobuf.ByteString getAdvertiserDisplayNameBytes(); + + /** + * + * + *
+   * Input only. On a proposal being sent to Display & Video 360, this field must be set to
+   * the email address of an admin on the target advertiser. This is used to
+   * verify that the Google Analytics admin is aware of at least one admin on
+   * the Display & Video 360 Advertiser. This does not restrict approval of the
+   * proposal to a single user. Any admin on the Display & Video 360 Advertiser
+   * may approve the proposal.
+   * 
+ * + * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The validationEmail. + */ + java.lang.String getValidationEmail(); + /** + * + * + *
+   * Input only. On a proposal being sent to Display & Video 360, this field must be set to
+   * the email address of an admin on the target advertiser. This is used to
+   * verify that the Google Analytics admin is aware of at least one admin on
+   * the Display & Video 360 Advertiser. This does not restrict approval of the
+   * proposal to a single user. Any admin on the Display & Video 360 Advertiser
+   * may approve the proposal.
+   * 
+ * + * string validation_email = 5 [(.google.api.field_behavior) = INPUT_ONLY]; + * + * @return The bytes for validationEmail. + */ + com.google.protobuf.ByteString getValidationEmailBytes(); + + /** + * + * + *
+   * Immutable. Enables personalized advertising features with this integration.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the adsPersonalizationEnabled field is set. + */ + boolean hasAdsPersonalizationEnabled(); + /** + * + * + *
+   * Immutable. Enables personalized advertising features with this integration.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The adsPersonalizationEnabled. + */ + com.google.protobuf.BoolValue getAdsPersonalizationEnabled(); + /** + * + * + *
+   * Immutable. Enables personalized advertising features with this integration.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue ads_personalization_enabled = 6 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder(); + + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Display & Video 360.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the campaignDataSharingEnabled field is set. + */ + boolean hasCampaignDataSharingEnabled(); + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Display & Video 360.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The campaignDataSharingEnabled. + */ + com.google.protobuf.BoolValue getCampaignDataSharingEnabled(); + /** + * + * + *
+   * Immutable. Enables the import of campaign data from Display & Video 360.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.protobuf.BoolValueOrBuilder getCampaignDataSharingEnabledOrBuilder(); + + /** + * + * + *
+   * Immutable. Enables the import of cost data from Display & Video 360.
+   * This can only be enabled if campaign_data_import_enabled is enabled.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return Whether the costDataSharingEnabled field is set. + */ + boolean hasCostDataSharingEnabled(); + /** + * + * + *
+   * Immutable. Enables the import of cost data from Display & Video 360.
+   * This can only be enabled if campaign_data_import_enabled is enabled.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The costDataSharingEnabled. + */ + com.google.protobuf.BoolValue getCostDataSharingEnabled(); + /** + * + * + *
+   * Immutable. Enables the import of cost data from Display & Video 360.
+   * This can only be enabled if campaign_data_import_enabled is enabled.
+   * If this field is not set on create, it will be defaulted to true.
+   * 
+ * + * + * .google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(.google.api.field_behavior) = IMMUTABLE]; + * + */ + com.google.protobuf.BoolValueOrBuilder getCostDataSharingEnabledOrBuilder(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java index 9fd6eba3..71ed7297 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java @@ -40,7 +40,6 @@ private FirebaseLink(com.google.protobuf.GeneratedMessageV3.Builder builder) private FirebaseLink() { name_ = ""; project_ = ""; - maximumUserAccess_ = 0; } @java.lang.Override @@ -99,13 +98,6 @@ private FirebaseLink( createTime_ = subBuilder.buildPartial(); } - break; - } - case 32: - { - int rawValue = input.readEnum(); - - maximumUserAccess_ = rawValue; break; } default: @@ -299,46 +291,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return getCreateTime(); } - public static final int MAXIMUM_USER_ACCESS_FIELD_NUMBER = 4; - private int maximumUserAccess_; - /** - * - * - *
-   * Maximum user access to the GA4 property allowed to admins of
-   * the linked Firebase project.
-   * 
- * - * .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4; - * - * @return The enum numeric value on the wire for maximumUserAccess. - */ - @java.lang.Override - public int getMaximumUserAccessValue() { - return maximumUserAccess_; - } - /** - * - * - *
-   * Maximum user access to the GA4 property allowed to admins of
-   * the linked Firebase project.
-   * 
- * - * .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4; - * - * @return The maximumUserAccess. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.MaximumUserAccess getMaximumUserAccess() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.MaximumUserAccess result = - com.google.analytics.admin.v1alpha.MaximumUserAccess.valueOf(maximumUserAccess_); - return result == null - ? com.google.analytics.admin.v1alpha.MaximumUserAccess.UNRECOGNIZED - : result; - } - private byte memoizedIsInitialized = -1; @java.lang.Override @@ -362,11 +314,6 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (createTime_ != null) { output.writeMessage(3, getCreateTime()); } - if (maximumUserAccess_ - != com.google.analytics.admin.v1alpha.MaximumUserAccess.MAXIMUM_USER_ACCESS_UNSPECIFIED - .getNumber()) { - output.writeEnum(4, maximumUserAccess_); - } unknownFields.writeTo(output); } @@ -385,11 +332,6 @@ public int getSerializedSize() { if (createTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); } - if (maximumUserAccess_ - != com.google.analytics.admin.v1alpha.MaximumUserAccess.MAXIMUM_USER_ACCESS_UNSPECIFIED - .getNumber()) { - size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, maximumUserAccess_); - } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -412,7 +354,6 @@ public boolean equals(final java.lang.Object obj) { if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; } - if (maximumUserAccess_ != other.maximumUserAccess_) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -432,8 +373,6 @@ public int hashCode() { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); } - hash = (37 * hash) + MAXIMUM_USER_ACCESS_FIELD_NUMBER; - hash = (53 * hash) + maximumUserAccess_; hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -589,8 +528,6 @@ public Builder clear() { createTime_ = null; createTimeBuilder_ = null; } - maximumUserAccess_ = 0; - return this; } @@ -625,7 +562,6 @@ public com.google.analytics.admin.v1alpha.FirebaseLink buildPartial() { } else { result.createTime_ = createTimeBuilder_.build(); } - result.maximumUserAccess_ = maximumUserAccess_; onBuilt(); return result; } @@ -687,9 +623,6 @@ public Builder mergeFrom(com.google.analytics.admin.v1alpha.FirebaseLink other) if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } - if (other.maximumUserAccess_ != 0) { - setMaximumUserAccessValue(other.getMaximumUserAccessValue()); - } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1157,105 +1090,6 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { return createTimeBuilder_; } - private int maximumUserAccess_ = 0; - /** - * - * - *
-     * Maximum user access to the GA4 property allowed to admins of
-     * the linked Firebase project.
-     * 
- * - * .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4; - * - * @return The enum numeric value on the wire for maximumUserAccess. - */ - @java.lang.Override - public int getMaximumUserAccessValue() { - return maximumUserAccess_; - } - /** - * - * - *
-     * Maximum user access to the GA4 property allowed to admins of
-     * the linked Firebase project.
-     * 
- * - * .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4; - * - * @param value The enum numeric value on the wire for maximumUserAccess to set. - * @return This builder for chaining. - */ - public Builder setMaximumUserAccessValue(int value) { - - maximumUserAccess_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Maximum user access to the GA4 property allowed to admins of
-     * the linked Firebase project.
-     * 
- * - * .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4; - * - * @return The maximumUserAccess. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.MaximumUserAccess getMaximumUserAccess() { - @SuppressWarnings("deprecation") - com.google.analytics.admin.v1alpha.MaximumUserAccess result = - com.google.analytics.admin.v1alpha.MaximumUserAccess.valueOf(maximumUserAccess_); - return result == null - ? com.google.analytics.admin.v1alpha.MaximumUserAccess.UNRECOGNIZED - : result; - } - /** - * - * - *
-     * Maximum user access to the GA4 property allowed to admins of
-     * the linked Firebase project.
-     * 
- * - * .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4; - * - * @param value The maximumUserAccess to set. - * @return This builder for chaining. - */ - public Builder setMaximumUserAccess( - com.google.analytics.admin.v1alpha.MaximumUserAccess value) { - if (value == null) { - throw new NullPointerException(); - } - - maximumUserAccess_ = value.getNumber(); - onChanged(); - return this; - } - /** - * - * - *
-     * Maximum user access to the GA4 property allowed to admins of
-     * the linked Firebase project.
-     * 
- * - * .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4; - * - * @return This builder for chaining. - */ - public Builder clearMaximumUserAccess() { - - maximumUserAccess_ = 0; - onChanged(); - return this; - } - @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java index 547d198c..95769d4a 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java @@ -120,31 +120,4 @@ public interface FirebaseLinkOrBuilder * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); - - /** - * - * - *
-   * Maximum user access to the GA4 property allowed to admins of
-   * the linked Firebase project.
-   * 
- * - * .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4; - * - * @return The enum numeric value on the wire for maximumUserAccess. - */ - int getMaximumUserAccessValue(); - /** - * - * - *
-   * Maximum user access to the GA4 property allowed to admins of
-   * the linked Firebase project.
-   * 
- * - * .google.analytics.admin.v1alpha.MaximumUserAccess maximum_user_access = 4; - * - * @return The maximumUserAccess. - */ - com.google.analytics.admin.v1alpha.MaximumUserAccess getMaximumUserAccess(); } diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequest.java new file mode 100644 index 00000000..49e19839 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequest.java @@ -0,0 +1,684 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetDataRetentionSettings RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} + */ +public final class GetDataRetentionSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) + GetDataRetentionSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDataRetentionSettingsRequest.newBuilder() to construct. + private GetDataRetentionSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDataRetentionSettingsRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDataRetentionSettingsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetDataRetentionSettingsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + 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.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataRetentionSettings
+   * Example: "properties/1000/dataRetentionSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataRetentionSettings
+   * Example: "properties/1000/dataRetentionSettings"
+   * 
+ * + * + * 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.admin.v1alpha.GetDataRetentionSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest other = + (com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) 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.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 message for GetDataRetentionSettings RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.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.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDataRetentionSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest build() { + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest result = + new com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest(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.admin.v1alpha.GetDataRetentionSettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + .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.admin.v1alpha.GetDataRetentionSettingsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataRetentionSettings
+     * Example: "properties/1000/dataRetentionSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataRetentionSettings
+     * Example: "properties/1000/dataRetentionSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataRetentionSettings
+     * Example: "properties/1000/dataRetentionSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataRetentionSettings
+     * Example: "properties/1000/dataRetentionSettings"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the settings to lookup.
+     * Format:
+     * properties/{property}/dataRetentionSettings
+     * Example: "properties/1000/dataRetentionSettings"
+     * 
+ * + * + * 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.admin.v1alpha.GetDataRetentionSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) + private static final com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDataRetentionSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetDataRetentionSettingsRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequestOrBuilder.java new file mode 100644 index 00000000..246749d9 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetDataRetentionSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetDataRetentionSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataRetentionSettings
+   * Example: "properties/1000/dataRetentionSettings"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the settings to lookup.
+   * Format:
+   * properties/{property}/dataRetentionSettings
+   * Example: "properties/1000/dataRetentionSettings"
+   * 
+ * + * + * 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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.java new file mode 100644 index 00000000..f7313efd --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.java @@ -0,0 +1,699 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetDisplayVideo360AdvertiserLinkProposal RPC.
+ * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} + */ +public final class GetDisplayVideo360AdvertiserLinkProposalRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) + GetDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() to construct. + private GetDisplayVideo360AdvertiserLinkProposalRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDisplayVideo360AdvertiserLinkProposalRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDisplayVideo360AdvertiserLinkProposalRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetDisplayVideo360AdvertiserLinkProposalRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + 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.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + .class, + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + .Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * 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.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest other = + (com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) 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.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 message for GetDisplayVideo360AdvertiserLinkProposal RPC.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + .class, + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.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.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkProposalRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + build() { + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + buildPartial() { + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest result = + new com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest( + 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.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + .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.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
+     * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+     * 
+ * + * + * 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.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) + private static final com.google.analytics.admin.v1alpha + .GetDisplayVideo360AdvertiserLinkProposalRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + GetDisplayVideo360AdvertiserLinkProposalRequest>() { + @java.lang.Override + public GetDisplayVideo360AdvertiserLinkProposalRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetDisplayVideo360AdvertiserLinkProposalRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java new file mode 100644 index 00000000..47e4394e --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetDisplayVideo360AdvertiserLinkProposalRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkProposalRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLinkProposal to get.
+   * Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678
+   * 
+ * + * + * 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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequest.java new file mode 100644 index 00000000..63446e84 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequest.java @@ -0,0 +1,684 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetDisplayVideo360AdvertiserLink RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} + */ +public final class GetDisplayVideo360AdvertiserLinkRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) + GetDisplayVideo360AdvertiserLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetDisplayVideo360AdvertiserLinkRequest.newBuilder() to construct. + private GetDisplayVideo360AdvertiserLinkRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetDisplayVideo360AdvertiserLinkRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetDisplayVideo360AdvertiserLinkRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetDisplayVideo360AdvertiserLinkRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + 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.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.class, + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLink to get.
+   * Example format: properties/1234/displayVideo360AdvertiserLink/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLink to get.
+   * Example format: properties/1234/displayVideo360AdvertiserLink/5678
+   * 
+ * + * + * 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.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest other = + (com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) 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.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 message for GetDisplayVideo360AdvertiserLink RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.class, + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.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.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest build() { + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + buildPartial() { + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest result = + new com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest(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.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + .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.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLink to get.
+     * Example format: properties/1234/displayVideo360AdvertiserLink/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLink to get.
+     * Example format: properties/1234/displayVideo360AdvertiserLink/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLink to get.
+     * Example format: properties/1234/displayVideo360AdvertiserLink/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLink to get.
+     * Example format: properties/1234/displayVideo360AdvertiserLink/5678
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the DisplayVideo360AdvertiserLink to get.
+     * Example format: properties/1234/displayVideo360AdvertiserLink/5678
+     * 
+ * + * + * 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.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) + private static final com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetDisplayVideo360AdvertiserLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetDisplayVideo360AdvertiserLinkRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequestOrBuilder.java new file mode 100644 index 00000000..5b243e80 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequestOrBuilder.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetDisplayVideo360AdvertiserLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetDisplayVideo360AdvertiserLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLink to get.
+   * Example format: properties/1234/displayVideo360AdvertiserLink/5678
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the DisplayVideo360AdvertiserLink to get.
+   * Example format: properties/1234/displayVideo360AdvertiserLink/5678
+   * 
+ * + * + * 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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java index f016bc4d..2b04a7a7 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java @@ -40,7 +40,7 @@ private GoogleAdsLink(com.google.protobuf.GeneratedMessageV3.Builder builder) private GoogleAdsLink() { name_ = ""; customerId_ = ""; - emailAddress_ = ""; + creatorEmailAddress_ = ""; } @java.lang.Override @@ -104,13 +104,6 @@ private GoogleAdsLink( adsPersonalizationEnabled_ = subBuilder.buildPartial(); } - break; - } - case 50: - { - java.lang.String s = input.readStringRequireUtf8(); - - emailAddress_ = s; break; } case 58: @@ -141,6 +134,13 @@ private GoogleAdsLink( updateTime_ = subBuilder.buildPartial(); } + break; + } + case 74: + { + java.lang.String s = input.readStringRequireUtf8(); + + creatorEmailAddress_ = s; break; } default: @@ -352,57 +352,6 @@ public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuil return getAdsPersonalizationEnabled(); } - public static final int EMAIL_ADDRESS_FIELD_NUMBER = 6; - private volatile java.lang.Object emailAddress_; - /** - * - * - *
-   * Output only. Email address of the user that created the link.
-   * An empty string will be returned if the email address can't be retrieved.
-   * 
- * - * string email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The emailAddress. - */ - @java.lang.Override - public java.lang.String getEmailAddress() { - java.lang.Object ref = emailAddress_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - emailAddress_ = s; - return s; - } - } - /** - * - * - *
-   * Output only. Email address of the user that created the link.
-   * An empty string will be returned if the email address can't be retrieved.
-   * 
- * - * string email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for emailAddress. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEmailAddressBytes() { - java.lang.Object ref = emailAddress_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - emailAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - public static final int CREATE_TIME_FIELD_NUMBER = 7; private com.google.protobuf.Timestamp createTime_; /** @@ -501,6 +450,57 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return getUpdateTime(); } + public static final int CREATOR_EMAIL_ADDRESS_FIELD_NUMBER = 9; + private volatile java.lang.Object creatorEmailAddress_; + /** + * + * + *
+   * Output only. Email address of the user that created the link.
+   * An empty string will be returned if the email address can't be retrieved.
+   * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The creatorEmailAddress. + */ + @java.lang.Override + public java.lang.String getCreatorEmailAddress() { + java.lang.Object ref = creatorEmailAddress_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creatorEmailAddress_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Email address of the user that created the link.
+   * An empty string will be returned if the email address can't be retrieved.
+   * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for creatorEmailAddress. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCreatorEmailAddressBytes() { + java.lang.Object ref = creatorEmailAddress_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creatorEmailAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -527,15 +527,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (adsPersonalizationEnabled_ != null) { output.writeMessage(5, getAdsPersonalizationEnabled()); } - if (!getEmailAddressBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, emailAddress_); - } if (createTime_ != null) { output.writeMessage(7, getCreateTime()); } if (updateTime_ != null) { output.writeMessage(8, getUpdateTime()); } + if (!getCreatorEmailAddressBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, creatorEmailAddress_); + } unknownFields.writeTo(output); } @@ -559,15 +559,15 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 5, getAdsPersonalizationEnabled()); } - if (!getEmailAddressBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, emailAddress_); - } if (createTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); } if (updateTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); } + if (!getCreatorEmailAddressBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, creatorEmailAddress_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -592,7 +592,6 @@ public boolean equals(final java.lang.Object obj) { if (!getAdsPersonalizationEnabled().equals(other.getAdsPersonalizationEnabled())) return false; } - if (!getEmailAddress().equals(other.getEmailAddress())) return false; if (hasCreateTime() != other.hasCreateTime()) return false; if (hasCreateTime()) { if (!getCreateTime().equals(other.getCreateTime())) return false; @@ -601,6 +600,7 @@ public boolean equals(final java.lang.Object obj) { if (hasUpdateTime()) { if (!getUpdateTime().equals(other.getUpdateTime())) return false; } + if (!getCreatorEmailAddress().equals(other.getCreatorEmailAddress())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -622,8 +622,6 @@ public int hashCode() { hash = (37 * hash) + ADS_PERSONALIZATION_ENABLED_FIELD_NUMBER; hash = (53 * hash) + getAdsPersonalizationEnabled().hashCode(); } - hash = (37 * hash) + EMAIL_ADDRESS_FIELD_NUMBER; - hash = (53 * hash) + getEmailAddress().hashCode(); if (hasCreateTime()) { hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getCreateTime().hashCode(); @@ -632,6 +630,8 @@ public int hashCode() { hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; hash = (53 * hash) + getUpdateTime().hashCode(); } + hash = (37 * hash) + CREATOR_EMAIL_ADDRESS_FIELD_NUMBER; + hash = (53 * hash) + getCreatorEmailAddress().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -789,8 +789,6 @@ public Builder clear() { adsPersonalizationEnabled_ = null; adsPersonalizationEnabledBuilder_ = null; } - emailAddress_ = ""; - if (createTimeBuilder_ == null) { createTime_ = null; } else { @@ -803,6 +801,8 @@ public Builder clear() { updateTime_ = null; updateTimeBuilder_ = null; } + creatorEmailAddress_ = ""; + return this; } @@ -838,7 +838,6 @@ public com.google.analytics.admin.v1alpha.GoogleAdsLink buildPartial() { } else { result.adsPersonalizationEnabled_ = adsPersonalizationEnabledBuilder_.build(); } - result.emailAddress_ = emailAddress_; if (createTimeBuilder_ == null) { result.createTime_ = createTime_; } else { @@ -849,6 +848,7 @@ public com.google.analytics.admin.v1alpha.GoogleAdsLink buildPartial() { } else { result.updateTime_ = updateTimeBuilder_.build(); } + result.creatorEmailAddress_ = creatorEmailAddress_; onBuilt(); return result; } @@ -913,16 +913,16 @@ public Builder mergeFrom(com.google.analytics.admin.v1alpha.GoogleAdsLink other) if (other.hasAdsPersonalizationEnabled()) { mergeAdsPersonalizationEnabled(other.getAdsPersonalizationEnabled()); } - if (!other.getEmailAddress().isEmpty()) { - emailAddress_ = other.emailAddress_; - onChanged(); - } if (other.hasCreateTime()) { mergeCreateTime(other.getCreateTime()); } if (other.hasUpdateTime()) { mergeUpdateTime(other.getUpdateTime()); } + if (!other.getCreatorEmailAddress().isEmpty()) { + creatorEmailAddress_ = other.creatorEmailAddress_; + onChanged(); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -1434,117 +1434,6 @@ public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuil return adsPersonalizationEnabledBuilder_; } - private java.lang.Object emailAddress_ = ""; - /** - * - * - *
-     * Output only. Email address of the user that created the link.
-     * An empty string will be returned if the email address can't be retrieved.
-     * 
- * - * string email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The emailAddress. - */ - public java.lang.String getEmailAddress() { - java.lang.Object ref = emailAddress_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - emailAddress_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Output only. Email address of the user that created the link.
-     * An empty string will be returned if the email address can't be retrieved.
-     * 
- * - * string email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for emailAddress. - */ - public com.google.protobuf.ByteString getEmailAddressBytes() { - java.lang.Object ref = emailAddress_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - emailAddress_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Output only. Email address of the user that created the link.
-     * An empty string will be returned if the email address can't be retrieved.
-     * 
- * - * string email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The emailAddress to set. - * @return This builder for chaining. - */ - public Builder setEmailAddress(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - emailAddress_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Email address of the user that created the link.
-     * An empty string will be returned if the email address can't be retrieved.
-     * 
- * - * string email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return This builder for chaining. - */ - public Builder clearEmailAddress() { - - emailAddress_ = getDefaultInstance().getEmailAddress(); - onChanged(); - return this; - } - /** - * - * - *
-     * Output only. Email address of the user that created the link.
-     * An empty string will be returned if the email address can't be retrieved.
-     * 
- * - * string email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @param value The bytes for emailAddress to set. - * @return This builder for chaining. - */ - public Builder setEmailAddressBytes(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - emailAddress_ = value; - onChanged(); - return this; - } - private com.google.protobuf.Timestamp createTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1947,6 +1836,117 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { return updateTimeBuilder_; } + private java.lang.Object creatorEmailAddress_ = ""; + /** + * + * + *
+     * Output only. Email address of the user that created the link.
+     * An empty string will be returned if the email address can't be retrieved.
+     * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The creatorEmailAddress. + */ + public java.lang.String getCreatorEmailAddress() { + java.lang.Object ref = creatorEmailAddress_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + creatorEmailAddress_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Email address of the user that created the link.
+     * An empty string will be returned if the email address can't be retrieved.
+     * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for creatorEmailAddress. + */ + public com.google.protobuf.ByteString getCreatorEmailAddressBytes() { + java.lang.Object ref = creatorEmailAddress_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + creatorEmailAddress_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Email address of the user that created the link.
+     * An empty string will be returned if the email address can't be retrieved.
+     * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The creatorEmailAddress to set. + * @return This builder for chaining. + */ + public Builder setCreatorEmailAddress(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + creatorEmailAddress_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Email address of the user that created the link.
+     * An empty string will be returned if the email address can't be retrieved.
+     * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearCreatorEmailAddress() { + + creatorEmailAddress_ = getDefaultInstance().getCreatorEmailAddress(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Email address of the user that created the link.
+     * An empty string will be returned if the email address can't be retrieved.
+     * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for creatorEmailAddress to set. + * @return This builder for chaining. + */ + public Builder setCreatorEmailAddressBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + creatorEmailAddress_ = 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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java index 7e51a02f..04831579 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java @@ -132,33 +132,6 @@ public interface GoogleAdsLinkOrBuilder */ com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuilder(); - /** - * - * - *
-   * Output only. Email address of the user that created the link.
-   * An empty string will be returned if the email address can't be retrieved.
-   * 
- * - * string email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The emailAddress. - */ - java.lang.String getEmailAddress(); - /** - * - * - *
-   * Output only. Email address of the user that created the link.
-   * An empty string will be returned if the email address can't be retrieved.
-   * 
- * - * string email_address = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * - * @return The bytes for emailAddress. - */ - com.google.protobuf.ByteString getEmailAddressBytes(); - /** * * @@ -234,4 +207,31 @@ public interface GoogleAdsLinkOrBuilder * */ com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
+   * Output only. Email address of the user that created the link.
+   * An empty string will be returned if the email address can't be retrieved.
+   * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The creatorEmailAddress. + */ + java.lang.String getCreatorEmailAddress(); + /** + * + * + *
+   * Output only. Email address of the user that created the link.
+   * An empty string will be returned if the email address can't be retrieved.
+   * 
+ * + * string creator_email_address = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for creatorEmailAddress. + */ + com.google.protobuf.ByteString getCreatorEmailAddressBytes(); } diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IndustryCategory.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IndustryCategory.java index 570bbbe7..461d68a4 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IndustryCategory.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IndustryCategory.java @@ -679,7 +679,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(1); + return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(0); } private static final IndustryCategory[] VALUES = values(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MaximumUserAccess.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalInitiatingProduct.java similarity index 50% rename from proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MaximumUserAccess.java rename to proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalInitiatingProduct.java index 4630dd99..722888c2 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MaximumUserAccess.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalInitiatingProduct.java @@ -22,65 +22,43 @@ * * *
- * Maximum access settings that Firebase user receive on the linked Analytics
- * property.
+ * An indication of which product the user initiated a link proposal from.
  * 
* - * Protobuf enum {@code google.analytics.admin.v1alpha.MaximumUserAccess} + * Protobuf enum {@code google.analytics.admin.v1alpha.LinkProposalInitiatingProduct} */ -public enum MaximumUserAccess implements com.google.protobuf.ProtocolMessageEnum { +public enum LinkProposalInitiatingProduct implements com.google.protobuf.ProtocolMessageEnum { /** * * *
-   * Unspecified maximum user access.
+   * Unspecified product.
    * 
* - * MAXIMUM_USER_ACCESS_UNSPECIFIED = 0; + * LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0; */ - MAXIMUM_USER_ACCESS_UNSPECIFIED(0), + LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED(0), /** * * *
-   * Firebase users have no access to the Analytics property.
+   * This proposal was created by a user from Google Analytics.
    * 
* - * NO_ACCESS = 1; + * GOOGLE_ANALYTICS = 1; */ - NO_ACCESS(1), + GOOGLE_ANALYTICS(1), /** * * *
-   * Firebase users have Read & Analyze access to the Analytics property.
+   * This proposal was created by a user from a linked product (not Google
+   * Analytics).
    * 
* - * READ_AND_ANALYZE = 2; + * LINKED_PRODUCT = 2; */ - READ_AND_ANALYZE(2), - /** - * - * - *
-   * Firebase users have edit access to the Analytics property, but may not
-   * manage the Firebase link.
-   * 
- * - * EDITOR_WITHOUT_LINK_MANAGEMENT = 3; - */ - EDITOR_WITHOUT_LINK_MANAGEMENT(3), - /** - * - * - *
-   * Firebase users have edit access to the Analytics property and may manage
-   * the Firebase link.
-   * 
- * - * EDITOR_INCLUDING_LINK_MANAGEMENT = 4; - */ - EDITOR_INCLUDING_LINK_MANAGEMENT(4), + LINKED_PRODUCT(2), UNRECOGNIZED(-1), ; @@ -88,54 +66,33 @@ public enum MaximumUserAccess implements com.google.protobuf.ProtocolMessageEnum * * *
-   * Unspecified maximum user access.
-   * 
- * - * MAXIMUM_USER_ACCESS_UNSPECIFIED = 0; - */ - public static final int MAXIMUM_USER_ACCESS_UNSPECIFIED_VALUE = 0; - /** - * - * - *
-   * Firebase users have no access to the Analytics property.
-   * 
- * - * NO_ACCESS = 1; - */ - public static final int NO_ACCESS_VALUE = 1; - /** - * - * - *
-   * Firebase users have Read & Analyze access to the Analytics property.
+   * Unspecified product.
    * 
* - * READ_AND_ANALYZE = 2; + * LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0; */ - public static final int READ_AND_ANALYZE_VALUE = 2; + public static final int LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED_VALUE = 0; /** * * *
-   * Firebase users have edit access to the Analytics property, but may not
-   * manage the Firebase link.
+   * This proposal was created by a user from Google Analytics.
    * 
* - * EDITOR_WITHOUT_LINK_MANAGEMENT = 3; + * GOOGLE_ANALYTICS = 1; */ - public static final int EDITOR_WITHOUT_LINK_MANAGEMENT_VALUE = 3; + public static final int GOOGLE_ANALYTICS_VALUE = 1; /** * * *
-   * Firebase users have edit access to the Analytics property and may manage
-   * the Firebase link.
+   * This proposal was created by a user from a linked product (not Google
+   * Analytics).
    * 
* - * EDITOR_INCLUDING_LINK_MANAGEMENT = 4; + * LINKED_PRODUCT = 2; */ - public static final int EDITOR_INCLUDING_LINK_MANAGEMENT_VALUE = 4; + public static final int LINKED_PRODUCT_VALUE = 2; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -151,7 +108,7 @@ public final int getNumber() { * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated - public static MaximumUserAccess valueOf(int value) { + public static LinkProposalInitiatingProduct valueOf(int value) { return forNumber(value); } @@ -159,32 +116,29 @@ public static MaximumUserAccess 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 MaximumUserAccess forNumber(int value) { + public static LinkProposalInitiatingProduct forNumber(int value) { switch (value) { case 0: - return MAXIMUM_USER_ACCESS_UNSPECIFIED; + return LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED; case 1: - return NO_ACCESS; + return GOOGLE_ANALYTICS; case 2: - return READ_AND_ANALYZE; - case 3: - return EDITOR_WITHOUT_LINK_MANAGEMENT; - case 4: - return EDITOR_INCLUDING_LINK_MANAGEMENT; + return LINKED_PRODUCT; 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 + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public MaximumUserAccess findValueByNumber(int number) { - return MaximumUserAccess.forNumber(number); + new com.google.protobuf.Internal.EnumLiteMap() { + public LinkProposalInitiatingProduct findValueByNumber(int number) { + return LinkProposalInitiatingProduct.forNumber(number); } }; @@ -201,12 +155,12 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(0); + return com.google.analytics.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(7); } - private static final MaximumUserAccess[] VALUES = values(); + private static final LinkProposalInitiatingProduct[] VALUES = values(); - public static MaximumUserAccess valueOf( + public static LinkProposalInitiatingProduct valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); @@ -219,9 +173,9 @@ public static MaximumUserAccess valueOf( private final int value; - private MaximumUserAccess(int value) { + private LinkProposalInitiatingProduct(int value) { this.value = value; } - // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.MaximumUserAccess) + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.LinkProposalInitiatingProduct) } diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalState.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalState.java new file mode 100644 index 00000000..30482769 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalState.java @@ -0,0 +1,282 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * The state of a link proposal resource.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.LinkProposalState} + */ +public enum LinkProposalState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unspecified state
+   * 
+ * + * LINK_PROPOSAL_STATE_UNSPECIFIED = 0; + */ + LINK_PROPOSAL_STATE_UNSPECIFIED(0), + /** + * + * + *
+   * This proposal is awaiting review from a Google Analytics user. This
+   * proposal will automatically expire after some time.
+   * 
+ * + * AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS = 1; + */ + AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS(1), + /** + * + * + *
+   * This proposal is awaiting review from a user of a linked product. This
+   * proposal will automatically expire after some time.
+   * 
+ * + * AWAITING_REVIEW_FROM_LINKED_PRODUCT = 2; + */ + AWAITING_REVIEW_FROM_LINKED_PRODUCT(2), + /** + * + * + *
+   * This proposal has been withdrawn by an admin on the initiating product.
+   * This proposal will be automatically deleted after some time.
+   * 
+ * + * WITHDRAWN = 3; + */ + WITHDRAWN(3), + /** + * + * + *
+   * This proposal has been declined by an admin on the receiving product. This
+   * proposal will be automatically deleted after some time.
+   * 
+ * + * DECLINED = 4; + */ + DECLINED(4), + /** + * + * + *
+   * This proposal expired due to lack of response from an admin on the
+   * receiving product. This proposal will be automatically deleted after some
+   * time.
+   * 
+ * + * EXPIRED = 5; + */ + EXPIRED(5), + /** + * + * + *
+   * This proposal has become obsolete because a link was directly created to
+   * the same external product resource that this proposal specifies. This
+   * proposal will be automatically deleted after some time.
+   * 
+ * + * OBSOLETE = 6; + */ + OBSOLETE(6), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unspecified state
+   * 
+ * + * LINK_PROPOSAL_STATE_UNSPECIFIED = 0; + */ + public static final int LINK_PROPOSAL_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * This proposal is awaiting review from a Google Analytics user. This
+   * proposal will automatically expire after some time.
+   * 
+ * + * AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS = 1; + */ + public static final int AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS_VALUE = 1; + /** + * + * + *
+   * This proposal is awaiting review from a user of a linked product. This
+   * proposal will automatically expire after some time.
+   * 
+ * + * AWAITING_REVIEW_FROM_LINKED_PRODUCT = 2; + */ + public static final int AWAITING_REVIEW_FROM_LINKED_PRODUCT_VALUE = 2; + /** + * + * + *
+   * This proposal has been withdrawn by an admin on the initiating product.
+   * This proposal will be automatically deleted after some time.
+   * 
+ * + * WITHDRAWN = 3; + */ + public static final int WITHDRAWN_VALUE = 3; + /** + * + * + *
+   * This proposal has been declined by an admin on the receiving product. This
+   * proposal will be automatically deleted after some time.
+   * 
+ * + * DECLINED = 4; + */ + public static final int DECLINED_VALUE = 4; + /** + * + * + *
+   * This proposal expired due to lack of response from an admin on the
+   * receiving product. This proposal will be automatically deleted after some
+   * time.
+   * 
+ * + * EXPIRED = 5; + */ + public static final int EXPIRED_VALUE = 5; + /** + * + * + *
+   * This proposal has become obsolete because a link was directly created to
+   * the same external product resource that this proposal specifies. This
+   * proposal will be automatically deleted after some time.
+   * 
+ * + * OBSOLETE = 6; + */ + public static final int OBSOLETE_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 LinkProposalState 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 LinkProposalState forNumber(int value) { + switch (value) { + case 0: + return LINK_PROPOSAL_STATE_UNSPECIFIED; + case 1: + return AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS; + case 2: + return AWAITING_REVIEW_FROM_LINKED_PRODUCT; + case 3: + return WITHDRAWN; + case 4: + return DECLINED; + case 5: + return EXPIRED; + case 6: + return OBSOLETE; + 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 LinkProposalState findValueByNumber(int number) { + return LinkProposalState.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.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(8); + } + + private static final LinkProposalState[] VALUES = values(); + + public static LinkProposalState 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 LinkProposalState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.LinkProposalState) +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetails.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetails.java new file mode 100644 index 00000000..7fb9ed65 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetails.java @@ -0,0 +1,993 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Status information for a link proposal.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.LinkProposalStatusDetails} + */ +public final class LinkProposalStatusDetails extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.LinkProposalStatusDetails) + LinkProposalStatusDetailsOrBuilder { + private static final long serialVersionUID = 0L; + // Use LinkProposalStatusDetails.newBuilder() to construct. + private LinkProposalStatusDetails(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private LinkProposalStatusDetails() { + linkProposalInitiatingProduct_ = 0; + requestorEmail_ = ""; + linkProposalState_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new LinkProposalStatusDetails(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private LinkProposalStatusDetails( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder 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(); + + linkProposalInitiatingProduct_ = rawValue; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + requestorEmail_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + + linkProposalState_ = 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.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.class, + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.Builder.class); + } + + public static final int LINK_PROPOSAL_INITIATING_PRODUCT_FIELD_NUMBER = 1; + private int linkProposalInitiatingProduct_; + /** + * + * + *
+   * Output only. The source of this proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for linkProposalInitiatingProduct. + */ + @java.lang.Override + public int getLinkProposalInitiatingProductValue() { + return linkProposalInitiatingProduct_; + } + /** + * + * + *
+   * Output only. The source of this proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The linkProposalInitiatingProduct. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct + getLinkProposalInitiatingProduct() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct result = + com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct.valueOf( + linkProposalInitiatingProduct_); + return result == null + ? com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct.UNRECOGNIZED + : result; + } + + public static final int REQUESTOR_EMAIL_FIELD_NUMBER = 2; + private volatile java.lang.Object requestorEmail_; + /** + * + * + *
+   * Output only. The email address of the user that proposed this linkage.
+   * 
+ * + * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestorEmail. + */ + @java.lang.Override + public java.lang.String getRequestorEmail() { + java.lang.Object ref = requestorEmail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestorEmail_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The email address of the user that proposed this linkage.
+   * 
+ * + * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for requestorEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRequestorEmailBytes() { + java.lang.Object ref = requestorEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestorEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LINK_PROPOSAL_STATE_FIELD_NUMBER = 3; + private int linkProposalState_; + /** + * + * + *
+   * Output only. The state of this proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for linkProposalState. + */ + @java.lang.Override + public int getLinkProposalStateValue() { + return linkProposalState_; + } + /** + * + * + *
+   * Output only. The state of this proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The linkProposalState. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.LinkProposalState getLinkProposalState() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.LinkProposalState result = + com.google.analytics.admin.v1alpha.LinkProposalState.valueOf(linkProposalState_); + return result == null + ? com.google.analytics.admin.v1alpha.LinkProposalState.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 (linkProposalInitiatingProduct_ + != com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct + .LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, linkProposalInitiatingProduct_); + } + if (!getRequestorEmailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestorEmail_); + } + if (linkProposalState_ + != com.google.analytics.admin.v1alpha.LinkProposalState.LINK_PROPOSAL_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, linkProposalState_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (linkProposalInitiatingProduct_ + != com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct + .LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED + .getNumber()) { + size += + com.google.protobuf.CodedOutputStream.computeEnumSize(1, linkProposalInitiatingProduct_); + } + if (!getRequestorEmailBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestorEmail_); + } + if (linkProposalState_ + != com.google.analytics.admin.v1alpha.LinkProposalState.LINK_PROPOSAL_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, linkProposalState_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.LinkProposalStatusDetails)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails other = + (com.google.analytics.admin.v1alpha.LinkProposalStatusDetails) obj; + + if (linkProposalInitiatingProduct_ != other.linkProposalInitiatingProduct_) return false; + if (!getRequestorEmail().equals(other.getRequestorEmail())) return false; + if (linkProposalState_ != other.linkProposalState_) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LINK_PROPOSAL_INITIATING_PRODUCT_FIELD_NUMBER; + hash = (53 * hash) + linkProposalInitiatingProduct_; + hash = (37 * hash) + REQUESTOR_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getRequestorEmail().hashCode(); + hash = (37 * hash) + LINK_PROPOSAL_STATE_FIELD_NUMBER; + hash = (53 * hash) + linkProposalState_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Status information for a link proposal.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.LinkProposalStatusDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.LinkProposalStatusDetails) + com.google.analytics.admin.v1alpha.LinkProposalStatusDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.class, + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + linkProposalInitiatingProduct_ = 0; + + requestorEmail_ = ""; + + linkProposalState_ = 0; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.LinkProposalStatusDetails + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.LinkProposalStatusDetails build() { + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.LinkProposalStatusDetails buildPartial() { + com.google.analytics.admin.v1alpha.LinkProposalStatusDetails result = + new com.google.analytics.admin.v1alpha.LinkProposalStatusDetails(this); + result.linkProposalInitiatingProduct_ = linkProposalInitiatingProduct_; + result.requestorEmail_ = requestorEmail_; + result.linkProposalState_ = linkProposalState_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.LinkProposalStatusDetails) { + return mergeFrom((com.google.analytics.admin.v1alpha.LinkProposalStatusDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.LinkProposalStatusDetails other) { + if (other + == com.google.analytics.admin.v1alpha.LinkProposalStatusDetails.getDefaultInstance()) + return this; + if (other.linkProposalInitiatingProduct_ != 0) { + setLinkProposalInitiatingProductValue(other.getLinkProposalInitiatingProductValue()); + } + if (!other.getRequestorEmail().isEmpty()) { + requestorEmail_ = other.requestorEmail_; + onChanged(); + } + if (other.linkProposalState_ != 0) { + setLinkProposalStateValue(other.getLinkProposalStateValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.admin.v1alpha.LinkProposalStatusDetails parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.LinkProposalStatusDetails) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int linkProposalInitiatingProduct_ = 0; + /** + * + * + *
+     * Output only. The source of this proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for linkProposalInitiatingProduct. + */ + @java.lang.Override + public int getLinkProposalInitiatingProductValue() { + return linkProposalInitiatingProduct_; + } + /** + * + * + *
+     * Output only. The source of this proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for linkProposalInitiatingProduct to set. + * @return This builder for chaining. + */ + public Builder setLinkProposalInitiatingProductValue(int value) { + + linkProposalInitiatingProduct_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The source of this proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The linkProposalInitiatingProduct. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct + getLinkProposalInitiatingProduct() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct result = + com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct.valueOf( + linkProposalInitiatingProduct_); + return result == null + ? com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The source of this proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The linkProposalInitiatingProduct to set. + * @return This builder for chaining. + */ + public Builder setLinkProposalInitiatingProduct( + com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct value) { + if (value == null) { + throw new NullPointerException(); + } + + linkProposalInitiatingProduct_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The source of this proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearLinkProposalInitiatingProduct() { + + linkProposalInitiatingProduct_ = 0; + onChanged(); + return this; + } + + private java.lang.Object requestorEmail_ = ""; + /** + * + * + *
+     * Output only. The email address of the user that proposed this linkage.
+     * 
+ * + * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestorEmail. + */ + public java.lang.String getRequestorEmail() { + java.lang.Object ref = requestorEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + requestorEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The email address of the user that proposed this linkage.
+     * 
+ * + * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for requestorEmail. + */ + public com.google.protobuf.ByteString getRequestorEmailBytes() { + java.lang.Object ref = requestorEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + requestorEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The email address of the user that proposed this linkage.
+     * 
+ * + * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The requestorEmail to set. + * @return This builder for chaining. + */ + public Builder setRequestorEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + requestorEmail_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The email address of the user that proposed this linkage.
+     * 
+ * + * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearRequestorEmail() { + + requestorEmail_ = getDefaultInstance().getRequestorEmail(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The email address of the user that proposed this linkage.
+     * 
+ * + * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for requestorEmail to set. + * @return This builder for chaining. + */ + public Builder setRequestorEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + requestorEmail_ = value; + onChanged(); + return this; + } + + private int linkProposalState_ = 0; + /** + * + * + *
+     * Output only. The state of this proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for linkProposalState. + */ + @java.lang.Override + public int getLinkProposalStateValue() { + return linkProposalState_; + } + /** + * + * + *
+     * Output only. The state of this proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for linkProposalState to set. + * @return This builder for chaining. + */ + public Builder setLinkProposalStateValue(int value) { + + linkProposalState_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The state of this proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The linkProposalState. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.LinkProposalState getLinkProposalState() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.LinkProposalState result = + com.google.analytics.admin.v1alpha.LinkProposalState.valueOf(linkProposalState_); + return result == null + ? com.google.analytics.admin.v1alpha.LinkProposalState.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. The state of this proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The linkProposalState to set. + * @return This builder for chaining. + */ + public Builder setLinkProposalState( + com.google.analytics.admin.v1alpha.LinkProposalState value) { + if (value == null) { + throw new NullPointerException(); + } + + linkProposalState_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The state of this proposal.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearLinkProposalState() { + + linkProposalState_ = 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.admin.v1alpha.LinkProposalStatusDetails) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.LinkProposalStatusDetails) + private static final com.google.analytics.admin.v1alpha.LinkProposalStatusDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.LinkProposalStatusDetails(); + } + + public static com.google.analytics.admin.v1alpha.LinkProposalStatusDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LinkProposalStatusDetails parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LinkProposalStatusDetails(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.LinkProposalStatusDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetailsOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetailsOrBuilder.java new file mode 100644 index 00000000..3fe9bf48 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetailsOrBuilder.java @@ -0,0 +1,109 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface LinkProposalStatusDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.LinkProposalStatusDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. The source of this proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for linkProposalInitiatingProduct. + */ + int getLinkProposalInitiatingProductValue(); + /** + * + * + *
+   * Output only. The source of this proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The linkProposalInitiatingProduct. + */ + com.google.analytics.admin.v1alpha.LinkProposalInitiatingProduct + getLinkProposalInitiatingProduct(); + + /** + * + * + *
+   * Output only. The email address of the user that proposed this linkage.
+   * 
+ * + * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The requestorEmail. + */ + java.lang.String getRequestorEmail(); + /** + * + * + *
+   * Output only. The email address of the user that proposed this linkage.
+   * 
+ * + * string requestor_email = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for requestorEmail. + */ + com.google.protobuf.ByteString getRequestorEmailBytes(); + + /** + * + * + *
+   * Output only. The state of this proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for linkProposalState. + */ + int getLinkProposalStateValue(); + /** + * + * + *
+   * Output only. The state of this proposal.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.LinkProposalState link_proposal_state = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The linkProposalState. + */ + com.google.analytics.admin.v1alpha.LinkProposalState getLinkProposalState(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.java new file mode 100644 index 00000000..d2757236 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.java @@ -0,0 +1,1007 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListDisplayVideo360AdvertiserLinkProposals RPC.
+ * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} + */ +public final class ListDisplayVideo360AdvertiserLinkProposalsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) + ListDisplayVideo360AdvertiserLinkProposalsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder() to construct. + private ListDisplayVideo360AdvertiserLinkProposalsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDisplayVideo360AdvertiserLinkProposalsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDisplayVideo360AdvertiserLinkProposalsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListDisplayVideo360AdvertiserLinkProposalsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + .class, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + .Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A page token, received from a previous
+   * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
+   * the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
+   * provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous
+   * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
+   * the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
+   * provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest other = + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 message for ListDisplayVideo360AdvertiserLinkProposals RPC.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + .class, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + build() { + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + buildPartial() { + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest result = + new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest( + this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + other) { + if (other + == com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous
+     * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
+     * the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
+     * the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous
+     * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
+     * the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous
+     * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
+     * the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous
+     * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
+     * the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) + private static final com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser< + ListDisplayVideo360AdvertiserLinkProposalsRequest>() { + @java.lang.Override + public ListDisplayVideo360AdvertiserLinkProposalsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDisplayVideo360AdvertiserLinkProposalsRequest( + input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequestOrBuilder.java new file mode 100644 index 00000000..6710652a --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequestOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListDisplayVideo360AdvertiserLinkProposalsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous
+   * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
+   * the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
+   * provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous
+   * `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve
+   * the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListDisplayVideo360AdvertiserLinkProposals` must match the call that
+   * provided the page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.java new file mode 100644 index 00000000..a9248af3 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.java @@ -0,0 +1,1290 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListDisplayVideo360AdvertiserLinkProposals RPC.
+ * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} + */ +public final class ListDisplayVideo360AdvertiserLinkProposalsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) + ListDisplayVideo360AdvertiserLinkProposalsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDisplayVideo360AdvertiserLinkProposalsResponse.newBuilder() to construct. + private ListDisplayVideo360AdvertiserLinkProposalsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDisplayVideo360AdvertiserLinkProposalsResponse() { + displayVideo360AdvertiserLinkProposals_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDisplayVideo360AdvertiserLinkProposalsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListDisplayVideo360AdvertiserLinkProposalsResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + 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)) { + displayVideo360AdvertiserLinkProposals_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal>(); + mutable_bitField0_ |= 0x00000001; + } + displayVideo360AdvertiserLinkProposals_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .parser(), + extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + displayVideo360AdvertiserLinkProposals_ = + java.util.Collections.unmodifiableList(displayVideo360AdvertiserLinkProposals_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + .class, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + .Builder.class); + } + + public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSALS_FIELD_NUMBER = 1; + private java.util.List + displayVideo360AdvertiserLinkProposals_; + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinkProposals.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + @java.lang.Override + public java.util.List + getDisplayVideo360AdvertiserLinkProposalsList() { + return displayVideo360AdvertiserLinkProposals_; + } + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinkProposals.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> + getDisplayVideo360AdvertiserLinkProposalsOrBuilderList() { + return displayVideo360AdvertiserLinkProposals_; + } + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinkProposals.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + @java.lang.Override + public int getDisplayVideo360AdvertiserLinkProposalsCount() { + return displayVideo360AdvertiserLinkProposals_.size(); + } + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinkProposals.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDisplayVideo360AdvertiserLinkProposals(int index) { + return displayVideo360AdvertiserLinkProposals_.get(index); + } + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinkProposals.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder + getDisplayVideo360AdvertiserLinkProposalsOrBuilder(int index) { + return displayVideo360AdvertiserLinkProposals_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < displayVideo360AdvertiserLinkProposals_.size(); i++) { + output.writeMessage(1, displayVideo360AdvertiserLinkProposals_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < displayVideo360AdvertiserLinkProposals_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, displayVideo360AdvertiserLinkProposals_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse other = + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) obj; + + if (!getDisplayVideo360AdvertiserLinkProposalsList() + .equals(other.getDisplayVideo360AdvertiserLinkProposalsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDisplayVideo360AdvertiserLinkProposalsCount() > 0) { + hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSALS_FIELD_NUMBER; + hash = (53 * hash) + getDisplayVideo360AdvertiserLinkProposalsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 message for ListDisplayVideo360AdvertiserLinkProposals RPC.
+   * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) + com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + .class, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + .Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDisplayVideo360AdvertiserLinkProposalsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + displayVideo360AdvertiserLinkProposals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + displayVideo360AdvertiserLinkProposalsBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinkProposalsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + build() { + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + buildPartial() { + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse result = + new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse( + this); + int from_bitField0_ = bitField0_; + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + displayVideo360AdvertiserLinkProposals_ = + java.util.Collections.unmodifiableList(displayVideo360AdvertiserLinkProposals_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.displayVideo360AdvertiserLinkProposals_ = displayVideo360AdvertiserLinkProposals_; + } else { + result.displayVideo360AdvertiserLinkProposals_ = + displayVideo360AdvertiserLinkProposalsBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + other) { + if (other + == com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + .getDefaultInstance()) return this; + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + if (!other.displayVideo360AdvertiserLinkProposals_.isEmpty()) { + if (displayVideo360AdvertiserLinkProposals_.isEmpty()) { + displayVideo360AdvertiserLinkProposals_ = other.displayVideo360AdvertiserLinkProposals_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); + displayVideo360AdvertiserLinkProposals_.addAll( + other.displayVideo360AdvertiserLinkProposals_); + } + onChanged(); + } + } else { + if (!other.displayVideo360AdvertiserLinkProposals_.isEmpty()) { + if (displayVideo360AdvertiserLinkProposalsBuilder_.isEmpty()) { + displayVideo360AdvertiserLinkProposalsBuilder_.dispose(); + displayVideo360AdvertiserLinkProposalsBuilder_ = null; + displayVideo360AdvertiserLinkProposals_ = other.displayVideo360AdvertiserLinkProposals_; + bitField0_ = (bitField0_ & ~0x00000001); + displayVideo360AdvertiserLinkProposalsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDisplayVideo360AdvertiserLinkProposalsFieldBuilder() + : null; + } else { + displayVideo360AdvertiserLinkProposalsBuilder_.addAllMessages( + other.displayVideo360AdvertiserLinkProposals_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + displayVideo360AdvertiserLinkProposals_ = java.util.Collections.emptyList(); + + private void ensureDisplayVideo360AdvertiserLinkProposalsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + displayVideo360AdvertiserLinkProposals_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal>( + displayVideo360AdvertiserLinkProposals_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> + displayVideo360AdvertiserLinkProposalsBuilder_; + + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public java.util.List + getDisplayVideo360AdvertiserLinkProposalsList() { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + return java.util.Collections.unmodifiableList(displayVideo360AdvertiserLinkProposals_); + } else { + return displayVideo360AdvertiserLinkProposalsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public int getDisplayVideo360AdvertiserLinkProposalsCount() { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + return displayVideo360AdvertiserLinkProposals_.size(); + } else { + return displayVideo360AdvertiserLinkProposalsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDisplayVideo360AdvertiserLinkProposals(int index) { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + return displayVideo360AdvertiserLinkProposals_.get(index); + } else { + return displayVideo360AdvertiserLinkProposalsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public Builder setDisplayVideo360AdvertiserLinkProposals( + int index, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal value) { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); + displayVideo360AdvertiserLinkProposals_.set(index, value); + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public Builder setDisplayVideo360AdvertiserLinkProposals( + int index, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + builderForValue) { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); + displayVideo360AdvertiserLinkProposals_.set(index, builderForValue.build()); + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public Builder addDisplayVideo360AdvertiserLinkProposals( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal value) { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); + displayVideo360AdvertiserLinkProposals_.add(value); + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public Builder addDisplayVideo360AdvertiserLinkProposals( + int index, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal value) { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); + displayVideo360AdvertiserLinkProposals_.add(index, value); + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public Builder addDisplayVideo360AdvertiserLinkProposals( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + builderForValue) { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); + displayVideo360AdvertiserLinkProposals_.add(builderForValue.build()); + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public Builder addDisplayVideo360AdvertiserLinkProposals( + int index, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + builderForValue) { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); + displayVideo360AdvertiserLinkProposals_.add(index, builderForValue.build()); + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public Builder addAllDisplayVideo360AdvertiserLinkProposals( + java.lang.Iterable< + ? extends com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal> + values) { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, displayVideo360AdvertiserLinkProposals_); + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public Builder clearDisplayVideo360AdvertiserLinkProposals() { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + displayVideo360AdvertiserLinkProposals_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public Builder removeDisplayVideo360AdvertiserLinkProposals(int index) { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + ensureDisplayVideo360AdvertiserLinkProposalsIsMutable(); + displayVideo360AdvertiserLinkProposals_.remove(index); + onChanged(); + } else { + displayVideo360AdvertiserLinkProposalsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + getDisplayVideo360AdvertiserLinkProposalsBuilder(int index) { + return getDisplayVideo360AdvertiserLinkProposalsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder + getDisplayVideo360AdvertiserLinkProposalsOrBuilder(int index) { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + return displayVideo360AdvertiserLinkProposals_.get(index); + } else { + return displayVideo360AdvertiserLinkProposalsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public java.util.List< + ? extends + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> + getDisplayVideo360AdvertiserLinkProposalsOrBuilderList() { + if (displayVideo360AdvertiserLinkProposalsBuilder_ != null) { + return displayVideo360AdvertiserLinkProposalsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(displayVideo360AdvertiserLinkProposals_); + } + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + addDisplayVideo360AdvertiserLinkProposalsBuilder() { + return getDisplayVideo360AdvertiserLinkProposalsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance()); + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder + addDisplayVideo360AdvertiserLinkProposalsBuilder(int index) { + return getDisplayVideo360AdvertiserLinkProposalsFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + .getDefaultInstance()); + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinkProposals.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + public java.util.List< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder> + getDisplayVideo360AdvertiserLinkProposalsBuilderList() { + return getDisplayVideo360AdvertiserLinkProposalsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> + getDisplayVideo360AdvertiserLinkProposalsFieldBuilder() { + if (displayVideo360AdvertiserLinkProposalsBuilder_ == null) { + displayVideo360AdvertiserLinkProposalsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder>( + displayVideo360AdvertiserLinkProposals_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + displayVideo360AdvertiserLinkProposals_ = null; + } + return displayVideo360AdvertiserLinkProposalsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) + private static final com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse(); + } + + public static com.google.analytics.admin.v1alpha + .ListDisplayVideo360AdvertiserLinkProposalsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser< + ListDisplayVideo360AdvertiserLinkProposalsResponse> + PARSER = + new com.google.protobuf.AbstractParser< + ListDisplayVideo360AdvertiserLinkProposalsResponse>() { + @java.lang.Override + public ListDisplayVideo360AdvertiserLinkProposalsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDisplayVideo360AdvertiserLinkProposalsResponse( + input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser + parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser + getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponseOrBuilder.java new file mode 100644 index 00000000..bc2b9f9a --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponseOrBuilder.java @@ -0,0 +1,119 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListDisplayVideo360AdvertiserLinkProposalsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinkProposalsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinkProposals.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + java.util.List + getDisplayVideo360AdvertiserLinkProposalsList(); + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinkProposals.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal + getDisplayVideo360AdvertiserLinkProposals(int index); + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinkProposals.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + int getDisplayVideo360AdvertiserLinkProposalsCount(); + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinkProposals.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + java.util.List< + ? extends + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder> + getDisplayVideo360AdvertiserLinkProposalsOrBuilderList(); + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinkProposals.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + * + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalOrBuilder + getDisplayVideo360AdvertiserLinkProposalsOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequest.java new file mode 100644 index 00000000..ccbf31d5 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequest.java @@ -0,0 +1,983 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListDisplayVideo360AdvertiserLinks RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} + */ +public final class ListDisplayVideo360AdvertiserLinksRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) + ListDisplayVideo360AdvertiserLinksRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDisplayVideo360AdvertiserLinksRequest.newBuilder() to construct. + private ListDisplayVideo360AdvertiserLinksRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDisplayVideo360AdvertiserLinksRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDisplayVideo360AdvertiserLinksRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListDisplayVideo360AdvertiserLinksRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + case 16: + { + pageSize_ = input.readInt32(); + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + pageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.class, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_; + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
+   * call. Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
+   * page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
+   * call. Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
+   * page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest other = + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 message for ListDisplayVideo360AdvertiserLinks RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.class, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + parent_ = ""; + + pageSize_ = 0; + + pageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest build() { + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + buildPartial() { + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest result = + new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest(this); + result.parent_ = parent_; + result.pageSize_ = pageSize_; + result.pageToken_ = pageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Example format: properties/1234
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parent_ = value; + onChanged(); + return this; + } + + private int pageSize_; + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The maximum number of resources to return.
+     * If unspecified, at most 50 resources will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 2; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + pageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 3; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
+     * call. Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to
+     * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
+     * page token.
+     * 
+ * + * string page_token = 3; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + pageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) + private static final com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDisplayVideo360AdvertiserLinksRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDisplayVideo360AdvertiserLinksRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequestOrBuilder.java new file mode 100644 index 00000000..6156500d --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequestOrBuilder.java @@ -0,0 +1,102 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListDisplayVideo360AdvertiserLinksRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. Example format: properties/1234
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * The maximum number of resources to return.
+   * If unspecified, at most 50 resources will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
+   * call. Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
+   * page token.
+   * 
+ * + * string page_token = 3; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * A page token, received from a previous `ListDisplayVideo360AdvertiserLinks`
+   * call. Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to
+   * `ListDisplayVideo360AdvertiserLinks` must match the call that provided the
+   * page token.
+   * 
+ * + * string page_token = 3; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponse.java new file mode 100644 index 00000000..f93d8fea --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponse.java @@ -0,0 +1,1251 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Response message for ListDisplayVideo360AdvertiserLinks RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} + */ +public final class ListDisplayVideo360AdvertiserLinksResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) + ListDisplayVideo360AdvertiserLinksResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListDisplayVideo360AdvertiserLinksResponse.newBuilder() to construct. + private ListDisplayVideo360AdvertiserLinksResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListDisplayVideo360AdvertiserLinksResponse() { + displayVideo360AdvertiserLinks_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListDisplayVideo360AdvertiserLinksResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListDisplayVideo360AdvertiserLinksResponse( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + 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)) { + displayVideo360AdvertiserLinks_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink>(); + mutable_bitField0_ |= 0x00000001; + } + displayVideo360AdvertiserLinks_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.parser(), + extensionRegistry)); + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + nextPageToken_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + displayVideo360AdvertiserLinks_ = + java.util.Collections.unmodifiableList(displayVideo360AdvertiserLinks_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.class, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.Builder + .class); + } + + public static final int DISPLAY_VIDEO_360_ADVERTISER_LINKS_FIELD_NUMBER = 1; + private java.util.List + displayVideo360AdvertiserLinks_; + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + @java.lang.Override + public java.util.List + getDisplayVideo360AdvertiserLinksList() { + return displayVideo360AdvertiserLinks_; + } + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + getDisplayVideo360AdvertiserLinksOrBuilderList() { + return displayVideo360AdvertiserLinks_; + } + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + @java.lang.Override + public int getDisplayVideo360AdvertiserLinksCount() { + return displayVideo360AdvertiserLinks_.size(); + } + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLinks(int index) { + return displayVideo360AdvertiserLinks_.get(index); + } + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinksOrBuilder(int index) { + return displayVideo360AdvertiserLinks_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + private volatile java.lang.Object nextPageToken_; + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } + } + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < displayVideo360AdvertiserLinks_.size(); i++) { + output.writeMessage(1, displayVideo360AdvertiserLinks_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < displayVideo360AdvertiserLinks_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, displayVideo360AdvertiserLinks_.get(i)); + } + if (!getNextPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse other = + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) obj; + + if (!getDisplayVideo360AdvertiserLinksList() + .equals(other.getDisplayVideo360AdvertiserLinksList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (getDisplayVideo360AdvertiserLinksCount() > 0) { + hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINKS_FIELD_NUMBER; + hash = (53 * hash) + getDisplayVideo360AdvertiserLinksList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 message for ListDisplayVideo360AdvertiserLinks RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.class, + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getDisplayVideo360AdvertiserLinksFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (displayVideo360AdvertiserLinksBuilder_ == null) { + displayVideo360AdvertiserLinks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + displayVideo360AdvertiserLinksBuilder_.clear(); + } + nextPageToken_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListDisplayVideo360AdvertiserLinksResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse build() { + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + buildPartial() { + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse result = + new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse(this); + int from_bitField0_ = bitField0_; + if (displayVideo360AdvertiserLinksBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + displayVideo360AdvertiserLinks_ = + java.util.Collections.unmodifiableList(displayVideo360AdvertiserLinks_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.displayVideo360AdvertiserLinks_ = displayVideo360AdvertiserLinks_; + } else { + result.displayVideo360AdvertiserLinks_ = displayVideo360AdvertiserLinksBuilder_.build(); + } + result.nextPageToken_ = nextPageToken_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + .getDefaultInstance()) return this; + if (displayVideo360AdvertiserLinksBuilder_ == null) { + if (!other.displayVideo360AdvertiserLinks_.isEmpty()) { + if (displayVideo360AdvertiserLinks_.isEmpty()) { + displayVideo360AdvertiserLinks_ = other.displayVideo360AdvertiserLinks_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureDisplayVideo360AdvertiserLinksIsMutable(); + displayVideo360AdvertiserLinks_.addAll(other.displayVideo360AdvertiserLinks_); + } + onChanged(); + } + } else { + if (!other.displayVideo360AdvertiserLinks_.isEmpty()) { + if (displayVideo360AdvertiserLinksBuilder_.isEmpty()) { + displayVideo360AdvertiserLinksBuilder_.dispose(); + displayVideo360AdvertiserLinksBuilder_ = null; + displayVideo360AdvertiserLinks_ = other.displayVideo360AdvertiserLinks_; + bitField0_ = (bitField0_ & ~0x00000001); + displayVideo360AdvertiserLinksBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getDisplayVideo360AdvertiserLinksFieldBuilder() + : null; + } else { + displayVideo360AdvertiserLinksBuilder_.addAllMessages( + other.displayVideo360AdvertiserLinks_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + displayVideo360AdvertiserLinks_ = java.util.Collections.emptyList(); + + private void ensureDisplayVideo360AdvertiserLinksIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + displayVideo360AdvertiserLinks_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink>( + displayVideo360AdvertiserLinks_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + displayVideo360AdvertiserLinksBuilder_; + + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public java.util.List + getDisplayVideo360AdvertiserLinksList() { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + return java.util.Collections.unmodifiableList(displayVideo360AdvertiserLinks_); + } else { + return displayVideo360AdvertiserLinksBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public int getDisplayVideo360AdvertiserLinksCount() { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + return displayVideo360AdvertiserLinks_.size(); + } else { + return displayVideo360AdvertiserLinksBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLinks(int index) { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + return displayVideo360AdvertiserLinks_.get(index); + } else { + return displayVideo360AdvertiserLinksBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public Builder setDisplayVideo360AdvertiserLinks( + int index, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisplayVideo360AdvertiserLinksIsMutable(); + displayVideo360AdvertiserLinks_.set(index, value); + onChanged(); + } else { + displayVideo360AdvertiserLinksBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public Builder setDisplayVideo360AdvertiserLinks( + int index, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder builderForValue) { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + ensureDisplayVideo360AdvertiserLinksIsMutable(); + displayVideo360AdvertiserLinks_.set(index, builderForValue.build()); + onChanged(); + } else { + displayVideo360AdvertiserLinksBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public Builder addDisplayVideo360AdvertiserLinks( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisplayVideo360AdvertiserLinksIsMutable(); + displayVideo360AdvertiserLinks_.add(value); + onChanged(); + } else { + displayVideo360AdvertiserLinksBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public Builder addDisplayVideo360AdvertiserLinks( + int index, com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureDisplayVideo360AdvertiserLinksIsMutable(); + displayVideo360AdvertiserLinks_.add(index, value); + onChanged(); + } else { + displayVideo360AdvertiserLinksBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public Builder addDisplayVideo360AdvertiserLinks( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder builderForValue) { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + ensureDisplayVideo360AdvertiserLinksIsMutable(); + displayVideo360AdvertiserLinks_.add(builderForValue.build()); + onChanged(); + } else { + displayVideo360AdvertiserLinksBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public Builder addDisplayVideo360AdvertiserLinks( + int index, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder builderForValue) { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + ensureDisplayVideo360AdvertiserLinksIsMutable(); + displayVideo360AdvertiserLinks_.add(index, builderForValue.build()); + onChanged(); + } else { + displayVideo360AdvertiserLinksBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public Builder addAllDisplayVideo360AdvertiserLinks( + java.lang.Iterable< + ? extends com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink> + values) { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + ensureDisplayVideo360AdvertiserLinksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, displayVideo360AdvertiserLinks_); + onChanged(); + } else { + displayVideo360AdvertiserLinksBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public Builder clearDisplayVideo360AdvertiserLinks() { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + displayVideo360AdvertiserLinks_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + displayVideo360AdvertiserLinksBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public Builder removeDisplayVideo360AdvertiserLinks(int index) { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + ensureDisplayVideo360AdvertiserLinksIsMutable(); + displayVideo360AdvertiserLinks_.remove(index); + onChanged(); + } else { + displayVideo360AdvertiserLinksBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder + getDisplayVideo360AdvertiserLinksBuilder(int index) { + return getDisplayVideo360AdvertiserLinksFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinksOrBuilder(int index) { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + return displayVideo360AdvertiserLinks_.get(index); + } else { + return displayVideo360AdvertiserLinksBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + getDisplayVideo360AdvertiserLinksOrBuilderList() { + if (displayVideo360AdvertiserLinksBuilder_ != null) { + return displayVideo360AdvertiserLinksBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(displayVideo360AdvertiserLinks_); + } + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder + addDisplayVideo360AdvertiserLinksBuilder() { + return getDisplayVideo360AdvertiserLinksFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + .getDefaultInstance()); + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder + addDisplayVideo360AdvertiserLinksBuilder(int index) { + return getDisplayVideo360AdvertiserLinksFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + .getDefaultInstance()); + } + /** + * + * + *
+     * List of DisplayVideo360AdvertiserLinks.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + public java.util.List + getDisplayVideo360AdvertiserLinksBuilderList() { + return getDisplayVideo360AdvertiserLinksFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + getDisplayVideo360AdvertiserLinksFieldBuilder() { + if (displayVideo360AdvertiserLinksBuilder_ == null) { + displayVideo360AdvertiserLinksBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder>( + displayVideo360AdvertiserLinks_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + displayVideo360AdvertiserLinks_ = null; + } + return displayVideo360AdvertiserLinksBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + nextPageToken_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + + nextPageToken_ = getDefaultInstance().getNextPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * A token, which can be sent as `page_token` to retrieve the next page.
+     * If this field is omitted, there are no subsequent pages.
+     * 
+ * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + nextPageToken_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) + private static final com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListDisplayVideo360AdvertiserLinksResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListDisplayVideo360AdvertiserLinksResponse(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponseOrBuilder.java new file mode 100644 index 00000000..cafddafd --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponseOrBuilder.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/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListDisplayVideo360AdvertiserLinksResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListDisplayVideo360AdvertiserLinksResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + java.util.List + getDisplayVideo360AdvertiserLinksList(); + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLinks(int index); + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + int getDisplayVideo360AdvertiserLinksCount(); + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + java.util.List< + ? extends com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + getDisplayVideo360AdvertiserLinksOrBuilderList(); + /** + * + * + *
+   * List of DisplayVideo360AdvertiserLinks.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + * + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinksOrBuilder(int index); + + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + /** + * + * + *
+   * A token, which can be sent as `page_token` to retrieve the next page.
+   * If this field is omitted, there are no subsequent pages.
+   * 
+ * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java index 9426b64f..09e4c9ba 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java @@ -44,6 +44,7 @@ private Property() { industryCategory_ = 0; timeZone_ = ""; currencyCode_ = ""; + serviceLevel_ = 0; } @java.lang.Override @@ -147,6 +148,13 @@ private Property( currencyCode_ = s; break; } + case 80: + { + int rawValue = input.readEnum(); + + serviceLevel_ = rawValue; + break; + } case 90: { com.google.protobuf.Timestamp.Builder subBuilder = null; @@ -622,6 +630,46 @@ public com.google.protobuf.ByteString getCurrencyCodeBytes() { } } + public static final int SERVICE_LEVEL_FIELD_NUMBER = 10; + private int serviceLevel_; + /** + * + * + *
+   * Output only. The Google Analytics service level that applies to this property.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for serviceLevel. + */ + @java.lang.Override + public int getServiceLevelValue() { + return serviceLevel_; + } + /** + * + * + *
+   * Output only. The Google Analytics service level that applies to this property.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceLevel. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ServiceLevel getServiceLevel() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.ServiceLevel result = + com.google.analytics.admin.v1alpha.ServiceLevel.valueOf(serviceLevel_); + return result == null ? com.google.analytics.admin.v1alpha.ServiceLevel.UNRECOGNIZED : result; + } + public static final int DELETE_TIME_FIELD_NUMBER = 11; private com.google.protobuf.Timestamp deleteTime_; /** @@ -769,6 +817,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getCurrencyCodeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, currencyCode_); } + if (serviceLevel_ + != com.google.analytics.admin.v1alpha.ServiceLevel.SERVICE_LEVEL_UNSPECIFIED.getNumber()) { + output.writeEnum(10, serviceLevel_); + } if (deleteTime_ != null) { output.writeMessage(11, getDeleteTime()); } @@ -810,6 +862,10 @@ public int getSerializedSize() { if (!getCurrencyCodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, currencyCode_); } + if (serviceLevel_ + != com.google.analytics.admin.v1alpha.ServiceLevel.SERVICE_LEVEL_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, serviceLevel_); + } if (deleteTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getDeleteTime()); } @@ -846,6 +902,7 @@ public boolean equals(final java.lang.Object obj) { if (industryCategory_ != other.industryCategory_) return false; if (!getTimeZone().equals(other.getTimeZone())) return false; if (!getCurrencyCode().equals(other.getCurrencyCode())) return false; + if (serviceLevel_ != other.serviceLevel_) return false; if (hasDeleteTime() != other.hasDeleteTime()) return false; if (hasDeleteTime()) { if (!getDeleteTime().equals(other.getDeleteTime())) return false; @@ -885,6 +942,8 @@ public int hashCode() { hash = (53 * hash) + getTimeZone().hashCode(); hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; hash = (53 * hash) + getCurrencyCode().hashCode(); + hash = (37 * hash) + SERVICE_LEVEL_FIELD_NUMBER; + hash = (53 * hash) + serviceLevel_; if (hasDeleteTime()) { hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; hash = (53 * hash) + getDeleteTime().hashCode(); @@ -1062,6 +1121,8 @@ public Builder clear() { currencyCode_ = ""; + serviceLevel_ = 0; + if (deleteTimeBuilder_ == null) { deleteTime_ = null; } else { @@ -1117,6 +1178,7 @@ public com.google.analytics.admin.v1alpha.Property buildPartial() { result.industryCategory_ = industryCategory_; result.timeZone_ = timeZone_; result.currencyCode_ = currencyCode_; + result.serviceLevel_ = serviceLevel_; if (deleteTimeBuilder_ == null) { result.deleteTime_ = deleteTime_; } else { @@ -1205,6 +1267,9 @@ public Builder mergeFrom(com.google.analytics.admin.v1alpha.Property other) { currencyCode_ = other.currencyCode_; onChanged(); } + if (other.serviceLevel_ != 0) { + setServiceLevelValue(other.getServiceLevelValue()); + } if (other.hasDeleteTime()) { mergeDeleteTime(other.getDeleteTime()); } @@ -2340,6 +2405,107 @@ public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { return this; } + private int serviceLevel_ = 0; + /** + * + * + *
+     * Output only. The Google Analytics service level that applies to this property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for serviceLevel. + */ + @java.lang.Override + public int getServiceLevelValue() { + return serviceLevel_; + } + /** + * + * + *
+     * Output only. The Google Analytics service level that applies to this property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for serviceLevel to set. + * @return This builder for chaining. + */ + public Builder setServiceLevelValue(int value) { + + serviceLevel_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Google Analytics service level that applies to this property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceLevel. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ServiceLevel getServiceLevel() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.ServiceLevel result = + com.google.analytics.admin.v1alpha.ServiceLevel.valueOf(serviceLevel_); + return result == null ? com.google.analytics.admin.v1alpha.ServiceLevel.UNRECOGNIZED : result; + } + /** + * + * + *
+     * Output only. The Google Analytics service level that applies to this property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The serviceLevel to set. + * @return This builder for chaining. + */ + public Builder setServiceLevel(com.google.analytics.admin.v1alpha.ServiceLevel value) { + if (value == null) { + throw new NullPointerException(); + } + + serviceLevel_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The Google Analytics service level that applies to this property.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearServiceLevel() { + + serviceLevel_ = 0; + onChanged(); + return this; + } + private com.google.protobuf.Timestamp deleteTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java index 525f31fe..039e570b 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java @@ -279,6 +279,35 @@ public interface PropertyOrBuilder */ com.google.protobuf.ByteString getCurrencyCodeBytes(); + /** + * + * + *
+   * Output only. The Google Analytics service level that applies to this property.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for serviceLevel. + */ + int getServiceLevelValue(); + /** + * + * + *
+   * Output only. The Google Analytics service level that applies to this property.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ServiceLevel service_level = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The serviceLevel. + */ + com.google.analytics.admin.v1alpha.ServiceLevel getServiceLevel(); + /** * * diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java index 1072f634..46fe827e 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java @@ -99,6 +99,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -115,6 +127,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_CustomMetric_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -135,233 +151,295 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ".protobuf.TimestampB\003\340A\003\022\031\n\014display_name" + "\030\004 \001(\tB\003\340A\002\022\023\n\013region_code\030\005 \001(\t\022\024\n\007dele" + "ted\030\006 \001(\010B\003\340A\003:>\352A;\n%analyticsadmin.goog" - + "leapis.com/Account\022\022accounts/{account}\"\345" - + "\003\n\010Property\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create" + + "leapis.com/Account\022\022accounts/{account}\"\257" + + "\004\n\010Property\022\021\n\004name\030\001 \001(\tB\003\340A\003\0224\n\013create" + "_time\030\003 \001(\0132\032.google.protobuf.TimestampB" + "\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google.proto" + "buf.TimestampB\003\340A\003\022\023\n\006parent\030\002 \001(\tB\003\340A\005\022" + "\031\n\014display_name\030\005 \001(\tB\003\340A\002\022K\n\021industry_c" + "ategory\030\006 \001(\01620.google.analytics.admin.v" + "1alpha.IndustryCategory\022\026\n\ttime_zone\030\007 \001" - + "(\tB\003\340A\002\022\025\n\rcurrency_code\030\010 \001(\t\0224\n\013delete" - + "_time\030\013 \001(\0132\032.google.protobuf.TimestampB" - + "\003\340A\003\0224\n\013expire_time\030\014 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003:B\352A?\n&analyticsadmin." - + "googleapis.com/Property\022\025properties/{pro" - + "perty}\"\344\002\n\024AndroidAppDataStream\022\021\n\004name\030" - + "\001 \001(\tB\003\340A\003\022\034\n\017firebase_app_id\030\002 \001(\tB\003\340A\003" - + "\0224\n\013create_time\030\003 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.go" - + "ogle.protobuf.TimestampB\003\340A\003\022\031\n\014package_" - + "name\030\005 \001(\tB\003\340A\005\022\024\n\014display_name\030\006 \001(\t:~\352" - + "A{\n2analyticsadmin.googleapis.com/Androi" - + "dAppDataStream\022Eproperties/{property}/an" - + "droidAppDataStreams/{android_app_data_st" - + "ream}\"\324\002\n\020IosAppDataStream\022\021\n\004name\030\001 \001(\t" - + "B\003\340A\003\022\034\n\017firebase_app_id\030\002 \001(\tB\003\340A\003\0224\n\013c" - + "reate_time\030\003 \001(\0132\032.google.protobuf.Times" - + "tampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google." - + "protobuf.TimestampB\003\340A\003\022\031\n\tbundle_id\030\005 \001" - + "(\tB\006\340A\005\340A\002\022\024\n\014display_name\030\006 \001(\t:r\352Ao\n.a" - + "nalyticsadmin.googleapis.com/IosAppDataS" - + "tream\022=properties/{property}/iosAppDataS" - + "treams/{ios_app_data_stream}\"\350\002\n\rWebData" - + "Stream\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\033\n\016measurement" - + "_id\030\002 \001(\tB\003\340A\003\022\034\n\017firebase_app_id\030\003 \001(\tB" - + "\003\340A\003\0224\n\013create_time\030\004 \001(\0132\032.google.proto" - + "buf.TimestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132" - + "\032.google.protobuf.TimestampB\003\340A\003\022\030\n\013defa" - + "ult_uri\030\006 \001(\tB\003\340A\005\022\031\n\014display_name\030\007 \001(\t" - + "B\003\340A\002:h\352Ae\n+analyticsadmin.googleapis.co" - + "m/WebDataStream\0226properties/{property}/w" - + "ebDataStreams/{web_data_stream}\"\324\001\n\010User" - + "Link\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\032\n\remail_address" - + "\030\002 \001(\tB\003\340A\005\022\024\n\014direct_roles\030\003 \003(\t:\202\001\352A\177\n" - + "&analyticsadmin.googleapis.com/UserLink\022" - + "(accounts/{account}/userLinks/{user_link" - + "}\022+properties/{property}/userLinks/{user" - + "_link}\"c\n\rAuditUserLink\022\014\n\004name\030\001 \001(\t\022\025\n" - + "\remail_address\030\002 \001(\t\022\024\n\014direct_roles\030\003 \003" - + "(\t\022\027\n\017effective_roles\030\004 \003(\t\"\231\004\n\033Enhanced" - + "MeasurementSettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\026" - + "\n\016stream_enabled\030\002 \001(\010\022\037\n\022page_views_ena" - + "bled\030\003 \001(\010B\003\340A\003\022\027\n\017scrolls_enabled\030\004 \001(\010" - + "\022\037\n\027outbound_clicks_enabled\030\005 \001(\010\022\033\n\023sit" - + "e_search_enabled\030\007 \001(\010\022 \n\030video_engageme" - + "nt_enabled\030\t \001(\010\022\036\n\026file_downloads_enabl" - + "ed\030\n \001(\010\022\037\n\022page_loads_enabled\030\014 \001(\010B\003\340A" - + "\003\022\034\n\024page_changes_enabled\030\r \001(\010\022#\n\026searc" - + "h_query_parameter\030\020 \001(\tB\003\340A\002\022\033\n\023uri_quer" - + "y_parameter\030\021 \001(\t:\223\001\352A\217\001\n9analyticsadmin" - + ".googleapis.com/EnhancedMeasurementSetti" - + "ngs\022Rproperties/{property}/webDataStream" - + "s/{web_data_stream}/enhancedMeasurementS" - + "ettings\"\243\002\n\014FirebaseLink\022\021\n\004name\030\001 \001(\tB\003" - + "\340A\003\022\024\n\007project\030\002 \001(\tB\003\340A\005\0224\n\013create_time" - + "\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022" - + "N\n\023maximum_user_access\030\004 \001(\01621.google.an" - + "alytics.admin.v1alpha.MaximumUserAccess:" - + "d\352Aa\n*analyticsadmin.googleapis.com/Fire" - + "baseLink\0223properties/{property}/firebase" - + "Links/{firebase_link}\"\217\001\n\rGlobalSiteTag\022" - + "\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\007snippet\030\002 \001(\tB\003\340A\005" - + ":U\352AR\n+analyticsadmin.googleapis.com/Glo" - + "balSiteTag\022#properties/{property}/global" - + "SiteTag\"\220\003\n\rGoogleAdsLink\022\021\n\004name\030\001 \001(\tB" - + "\003\340A\003\022\030\n\013customer_id\030\003 \001(\tB\003\340A\005\022\037\n\022can_ma" - + "nage_clients\030\004 \001(\010B\003\340A\003\022?\n\033ads_personali" - + "zation_enabled\030\005 \001(\0132\032.google.protobuf.B" - + "oolValue\022\032\n\remail_address\030\006 \001(\tB\003\340A\003\0224\n\013" - + "create_time\030\007 \001(\0132\032.google.protobuf.Time" - + "stampB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003:h\352Ae\n+analytics" - + "admin.googleapis.com/GoogleAdsLink\0226prop" - + "erties/{property}/googleAdsLinks/{google" - + "_ads_link}\"\353\002\n\023DataSharingSettings\022\021\n\004na" - + "me\030\001 \001(\tB\003\340A\003\022+\n#sharing_with_google_sup" - + "port_enabled\030\002 \001(\010\0222\n*sharing_with_googl" - + "e_assigned_sales_enabled\030\003 \001(\010\022-\n%sharin" - + "g_with_google_any_sales_enabled\030\004 \001(\010\022,\n" - + "$sharing_with_google_products_enabled\030\005 " - + "\001(\010\022#\n\033sharing_with_others_enabled\030\006 \001(\010" - + ":^\352A[\n1analyticsadmin.googleapis.com/Dat" - + "aSharingSettings\022&accounts/{account}/dat" - + "aSharingSettings\"\225\002\n\016AccountSummary\022\014\n\004n" - + "ame\030\001 \001(\t\022;\n\007account\030\002 \001(\tB*\372A\'\n%analyti" - + "csadmin.googleapis.com/Account\022\024\n\014displa" - + "y_name\030\003 \001(\t\022K\n\022property_summaries\030\004 \003(\013" - + "2/.google.analytics.admin.v1alpha.Proper" - + "tySummary:U\352AR\n,analyticsadmin.googleapi" - + "s.com/AccountSummary\022\"accountSummaries/{" - + "account_summary}\"f\n\017PropertySummary\022=\n\010p" - + "roperty\030\001 \001(\tB+\372A(\n&analyticsadmin.googl" - + "eapis.com/Property\022\024\n\014display_name\030\002 \001(\t" - + "\"\225\002\n\031MeasurementProtocolSecret\022\021\n\004name\030\001" - + " \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\031\n\014" - + "secret_value\030\003 \001(\tB\003\340A\003:\256\001\352A\252\001\n7analytic" - + "sadmin.googleapis.com/MeasurementProtoco" - + "lSecret\022oproperties/{property}/webDataSt" - + "reams/{web_data_stream}/measurementProto" - + "colSecrets/{measurement_protocol_secret}" - + "\"\212\002\n\022ChangeHistoryEvent\022\n\n\002id\030\001 \001(\t\022/\n\013c" - + "hange_time\030\002 \001(\0132\032.google.protobuf.Times" - + "tamp\022=\n\nactor_type\030\003 \001(\0162).google.analyt" - + "ics.admin.v1alpha.ActorType\022\030\n\020user_acto" - + "r_email\030\004 \001(\t\022\030\n\020changes_filtered\030\005 \001(\010\022" - + "D\n\007changes\030\006 \003(\01323.google.analytics.admi" - + "n.v1alpha.ChangeHistoryChange\"\372\t\n\023Change" - + "HistoryChange\022\020\n\010resource\030\001 \001(\t\022:\n\006actio" - + "n\030\002 \001(\0162*.google.analytics.admin.v1alpha" - + ".ActionType\022i\n\026resource_before_change\030\003 " - + "\001(\0132I.google.analytics.admin.v1alpha.Cha" - + "ngeHistoryChange.ChangeHistoryResource\022h" - + "\n\025resource_after_change\030\004 \001(\0132I.google.a" - + "nalytics.admin.v1alpha.ChangeHistoryChan" - + "ge.ChangeHistoryResource\032\277\007\n\025ChangeHisto" - + "ryResource\022:\n\007account\030\001 \001(\0132\'.google.ana" - + "lytics.admin.v1alpha.AccountH\000\022<\n\010proper" - + "ty\030\002 \001(\0132(.google.analytics.admin.v1alph" - + "a.PropertyH\000\022H\n\017web_data_stream\030\003 \001(\0132-." - + "google.analytics.admin.v1alpha.WebDataSt" - + "reamH\000\022W\n\027android_app_data_stream\030\004 \001(\0132" - + "4.google.analytics.admin.v1alpha.Android" - + "AppDataStreamH\000\022O\n\023ios_app_data_stream\030\005" - + " \001(\01320.google.analytics.admin.v1alpha.Io" - + "sAppDataStreamH\000\022E\n\rfirebase_link\030\006 \001(\0132" - + ",.google.analytics.admin.v1alpha.Firebas" - + "eLinkH\000\022H\n\017google_ads_link\030\007 \001(\0132-.googl" - + "e.analytics.admin.v1alpha.GoogleAdsLinkH" - + "\000\022X\n\027google_signals_settings\030\010 \001(\01325.goo" - + "gle.analytics.admin.v1alpha.GoogleSignal" - + "sSettingsH\000\022K\n\020conversion_event\030\013 \001(\0132/." - + "google.analytics.admin.v1alpha.Conversio" - + "nEventH\000\022`\n\033measurement_protocol_secret\030" - + "\014 \001(\01329.google.analytics.admin.v1alpha.M" - + "easurementProtocolSecretH\000\022K\n\020custom_dim" - + "ension\030\r \001(\0132/.google.analytics.admin.v1" - + "alpha.CustomDimensionH\000\022E\n\rcustom_metric" - + "\030\016 \001(\0132,.google.analytics.admin.v1alpha." - + "CustomMetricH\000B\n\n\010resource\"\375\001\n\017Conversio" - + "nEvent\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\027\n\nevent_name\030" - + "\002 \001(\tB\003\340A\005\0224\n\013create_time\030\003 \001(\0132\032.google" - + ".protobuf.TimestampB\003\340A\003\022\031\n\014is_deletable" - + "\030\004 \001(\010B\003\340A\003:m\352Aj\n-analyticsadmin.googlea" - + "pis.com/ConversionEvent\0229properties/{pro" - + "perty}/conversionEvents/{conversion_even" - + "t}\"\240\002\n\025GoogleSignalsSettings\022\021\n\004name\030\001 \001" - + "(\tB\003\340A\003\022A\n\005state\030\003 \001(\01622.google.analytic" - + "s.admin.v1alpha.GoogleSignalsState\022J\n\007co" - + "nsent\030\004 \001(\01624.google.analytics.admin.v1a" - + "lpha.GoogleSignalsConsentB\003\340A\003:e\352Ab\n3ana" - + "lyticsadmin.googleapis.com/GoogleSignals" - + "Settings\022+properties/{property}/googleSi" - + "gnalsSettings\"\237\003\n\017CustomDimension\022\021\n\004nam" - + "e\030\001 \001(\tB\003\340A\003\022\036\n\016parameter_name\030\002 \001(\tB\006\340A" - + "\002\340A\005\022\031\n\014display_name\030\003 \001(\tB\003\340A\002\022\030\n\013descr" - + "iption\030\004 \001(\tB\003\340A\001\022U\n\005scope\030\005 \001(\0162>.googl" - + "e.analytics.admin.v1alpha.CustomDimensio" - + "n.DimensionScopeB\006\340A\002\340A\005\022)\n\034disallow_ads" - + "_personalization\030\006 \001(\010B\003\340A\001\"F\n\016Dimension" - + "Scope\022\037\n\033DIMENSION_SCOPE_UNSPECIFIED\020\000\022\t" - + "\n\005EVENT\020\001\022\010\n\004USER\020\002:Z\352AW\n-analyticsadmin" - + ".googleapis.com/CustomDimension\022&propert" - + "ies/{property}/customDimensions\"\357\004\n\014Cust" - + "omMetric\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\036\n\016parameter" - + "_name\030\002 \001(\tB\006\340A\002\340A\005\022\031\n\014display_name\030\003 \001(" - + "\tB\003\340A\002\022\030\n\013description\030\004 \001(\tB\003\340A\001\022^\n\020meas" - + "urement_unit\030\005 \001(\0162<.google.analytics.ad" - + "min.v1alpha.CustomMetric.MeasurementUnit" - + "B\006\340A\002\340A\005\022O\n\005scope\030\006 \001(\01628.google.analyti" - + "cs.admin.v1alpha.CustomMetric.MetricScop" - + "eB\006\340A\002\340A\005\"\267\001\n\017MeasurementUnit\022 \n\034MEASURE" - + "MENT_UNIT_UNSPECIFIED\020\000\022\014\n\010STANDARD\020\001\022\014\n" - + "\010CURRENCY\020\002\022\010\n\004FEET\020\003\022\n\n\006METERS\020\004\022\016\n\nKIL" - + "OMETERS\020\005\022\t\n\005MILES\020\006\022\020\n\014MILLISECONDS\020\007\022\013" - + "\n\007SECONDS\020\010\022\013\n\007MINUTES\020\t\022\t\n\005HOURS\020\n\"6\n\013M" - + "etricScope\022\034\n\030METRIC_SCOPE_UNSPECIFIED\020\000" - + "\022\t\n\005EVENT\020\001:T\352AQ\n*analyticsadmin.googlea" - + "pis.com/CustomMetric\022#properties/{proper" - + "ty}/customMetrics*\247\001\n\021MaximumUserAccess\022" - + "#\n\037MAXIMUM_USER_ACCESS_UNSPECIFIED\020\000\022\r\n\t" - + "NO_ACCESS\020\001\022\024\n\020READ_AND_ANALYZE\020\002\022\"\n\036EDI" - + "TOR_WITHOUT_LINK_MANAGEMENT\020\003\022$\n EDITOR_" - + "INCLUDING_LINK_MANAGEMENT\020\004*\252\004\n\020Industry" - + "Category\022!\n\035INDUSTRY_CATEGORY_UNSPECIFIE" - + "D\020\000\022\016\n\nAUTOMOTIVE\020\001\022#\n\037BUSINESS_AND_INDU" - + "STRIAL_MARKETS\020\002\022\013\n\007FINANCE\020\003\022\016\n\nHEALTHC" - + "ARE\020\004\022\016\n\nTECHNOLOGY\020\005\022\n\n\006TRAVEL\020\006\022\t\n\005OTH" - + "ER\020\007\022\032\n\026ARTS_AND_ENTERTAINMENT\020\010\022\026\n\022BEAU" - + "TY_AND_FITNESS\020\t\022\030\n\024BOOKS_AND_LITERATURE" - + "\020\n\022\022\n\016FOOD_AND_DRINK\020\013\022\t\n\005GAMES\020\014\022\027\n\023HOB" - + "BIES_AND_LEISURE\020\r\022\023\n\017HOME_AND_GARDEN\020\016\022" - + "\030\n\024INTERNET_AND_TELECOM\020\017\022\026\n\022LAW_AND_GOV" - + "ERNMENT\020\020\022\010\n\004NEWS\020\021\022\026\n\022ONLINE_COMMUNITIE" - + "S\020\022\022\026\n\022PEOPLE_AND_SOCIETY\020\023\022\024\n\020PETS_AND_" - + "ANIMALS\020\024\022\017\n\013REAL_ESTATE\020\025\022\r\n\tREFERENCE\020" - + "\026\022\013\n\007SCIENCE\020\027\022\n\n\006SPORTS\020\030\022\026\n\022JOBS_AND_E" - + "DUCATION\020\031\022\014\n\010SHOPPING\020\032*J\n\tActorType\022\032\n" - + "\026ACTOR_TYPE_UNSPECIFIED\020\000\022\010\n\004USER\020\001\022\n\n\006S" - + "YSTEM\020\002\022\013\n\007SUPPORT\020\003*P\n\nActionType\022\033\n\027AC" - + "TION_TYPE_UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007" - + "UPDATED\020\002\022\013\n\007DELETED\020\003*\324\002\n\031ChangeHistory" - + "ResourceType\022,\n(CHANGE_HISTORY_RESOURCE_" - + "TYPE_UNSPECIFIED\020\000\022\013\n\007ACCOUNT\020\001\022\014\n\010PROPE" - + "RTY\020\002\022\023\n\017WEB_DATA_STREAM\020\003\022\033\n\027ANDROID_AP" - + "P_DATA_STREAM\020\004\022\027\n\023IOS_APP_DATA_STREAM\020\005" - + "\022\021\n\rFIREBASE_LINK\020\006\022\023\n\017GOOGLE_ADS_LINK\020\007" - + "\022\033\n\027GOOGLE_SIGNALS_SETTINGS\020\010\022\024\n\020CONVERS" - + "ION_EVENT\020\t\022\037\n\033MEASUREMENT_PROTOCOL_SECR" - + "ET\020\n\022\024\n\020CUSTOM_DIMENSION\020\013\022\021\n\rCUSTOM_MET" - + "RIC\020\014*s\n\022GoogleSignalsState\022$\n GOOGLE_SI" - + "GNALS_STATE_UNSPECIFIED\020\000\022\032\n\026GOOGLE_SIGN" - + "ALS_ENABLED\020\001\022\033\n\027GOOGLE_SIGNALS_DISABLED" - + "\020\002*\216\001\n\024GoogleSignalsConsent\022&\n\"GOOGLE_SI" - + "GNALS_CONSENT_UNSPECIFIED\020\000\022$\n GOOGLE_SI" - + "GNALS_CONSENT_CONSENTED\020\002\022(\n$GOOGLE_SIGN" - + "ALS_CONSENT_NOT_CONSENTED\020\001B{\n\"com.googl" - + "e.analytics.admin.v1alphaB\016ResourcesProt" - + "oP\001ZCgoogle.golang.org/genproto/googleap" - + "is/analytics/admin/v1alpha;adminb\006proto3" + + "(\tB\003\340A\002\022\025\n\rcurrency_code\030\010 \001(\t\022H\n\rservic" + + "e_level\030\n \001(\0162,.google.analytics.admin.v" + + "1alpha.ServiceLevelB\003\340A\003\0224\n\013delete_time\030" + + "\013 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224" + + "\n\013expire_time\030\014 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003:B\352A?\n&analyticsadmin.google" + + "apis.com/Property\022\025properties/{property}" + + "\"\344\002\n\024AndroidAppDataStream\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\003\022\034\n\017firebase_app_id\030\002 \001(\tB\003\340A\003\0224\n\013cr" + + "eate_time\030\003 \001(\0132\032.google.protobuf.Timest" + + "ampB\003\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google.p" + + "rotobuf.TimestampB\003\340A\003\022\031\n\014package_name\030\005" + + " \001(\tB\003\340A\005\022\024\n\014display_name\030\006 \001(\t:~\352A{\n2an" + + "alyticsadmin.googleapis.com/AndroidAppDa" + + "taStream\022Eproperties/{property}/androidA" + + "ppDataStreams/{android_app_data_stream}\"" + + "\324\002\n\020IosAppDataStream\022\021\n\004name\030\001 \001(\tB\003\340A\003\022" + + "\034\n\017firebase_app_id\030\002 \001(\tB\003\340A\003\0224\n\013create_" + + "time\030\003 \001(\0132\032.google.protobuf.TimestampB\003" + + "\340A\003\0224\n\013update_time\030\004 \001(\0132\032.google.protob" + + "uf.TimestampB\003\340A\003\022\031\n\tbundle_id\030\005 \001(\tB\006\340A" + + "\005\340A\002\022\024\n\014display_name\030\006 \001(\t:r\352Ao\n.analyti" + + "csadmin.googleapis.com/IosAppDataStream\022" + + "=properties/{property}/iosAppDataStreams" + + "/{ios_app_data_stream}\"\350\002\n\rWebDataStream" + + "\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\033\n\016measurement_id\030\002 " + + "\001(\tB\003\340A\003\022\034\n\017firebase_app_id\030\003 \001(\tB\003\340A\003\0224" + + "\n\013create_time\030\004 \001(\0132\032.google.protobuf.Ti" + + "mestampB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.goog" + + "le.protobuf.TimestampB\003\340A\003\022\030\n\013default_ur" + + "i\030\006 \001(\tB\003\340A\005\022\031\n\014display_name\030\007 \001(\tB\003\340A\002:" + + "h\352Ae\n+analyticsadmin.googleapis.com/WebD" + + "ataStream\0226properties/{property}/webData" + + "Streams/{web_data_stream}\"\324\001\n\010UserLink\022\021" + + "\n\004name\030\001 \001(\tB\003\340A\003\022\032\n\remail_address\030\002 \001(\t" + + "B\003\340A\005\022\024\n\014direct_roles\030\003 \003(\t:\202\001\352A\177\n&analy" + + "ticsadmin.googleapis.com/UserLink\022(accou" + + "nts/{account}/userLinks/{user_link}\022+pro" + + "perties/{property}/userLinks/{user_link}" + + "\"c\n\rAuditUserLink\022\014\n\004name\030\001 \001(\t\022\025\n\remail" + + "_address\030\002 \001(\t\022\024\n\014direct_roles\030\003 \003(\t\022\027\n\017" + + "effective_roles\030\004 \003(\t\"\231\004\n\033EnhancedMeasur" + + "ementSettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\026\n\016stre" + + "am_enabled\030\002 \001(\010\022\037\n\022page_views_enabled\030\003" + + " \001(\010B\003\340A\003\022\027\n\017scrolls_enabled\030\004 \001(\010\022\037\n\027ou" + + "tbound_clicks_enabled\030\005 \001(\010\022\033\n\023site_sear" + + "ch_enabled\030\007 \001(\010\022 \n\030video_engagement_ena" + + "bled\030\t \001(\010\022\036\n\026file_downloads_enabled\030\n \001" + + "(\010\022\037\n\022page_loads_enabled\030\014 \001(\010B\003\340A\003\022\034\n\024p" + + "age_changes_enabled\030\r \001(\010\022#\n\026search_quer" + + "y_parameter\030\020 \001(\tB\003\340A\002\022\033\n\023uri_query_para" + + "meter\030\021 \001(\t:\223\001\352A\217\001\n9analyticsadmin.googl" + + "eapis.com/EnhancedMeasurementSettings\022Rp" + + "roperties/{property}/webDataStreams/{web" + + "_data_stream}/enhancedMeasurementSetting" + + "s\"\323\001\n\014FirebaseLink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n" + + "\007project\030\002 \001(\tB\003\340A\005\0224\n\013create_time\030\003 \001(\013" + + "2\032.google.protobuf.TimestampB\003\340A\003:d\352Aa\n*" + + "analyticsadmin.googleapis.com/FirebaseLi" + + "nk\0223properties/{property}/firebaseLinks/" + + "{firebase_link}\"\217\001\n\rGlobalSiteTag\022\021\n\004nam" + + "e\030\001 \001(\tB\003\340A\003\022\024\n\007snippet\030\002 \001(\tB\003\340A\005:U\352AR\n" + + "+analyticsadmin.googleapis.com/GlobalSit" + + "eTag\022#properties/{property}/globalSiteTa" + + "g\"\230\003\n\rGoogleAdsLink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\030" + + "\n\013customer_id\030\003 \001(\tB\003\340A\005\022\037\n\022can_manage_c" + + "lients\030\004 \001(\010B\003\340A\003\022?\n\033ads_personalization" + + "_enabled\030\005 \001(\0132\032.google.protobuf.BoolVal" + + "ue\0224\n\013create_time\030\007 \001(\0132\032.google.protobu" + + "f.TimestampB\003\340A\003\0224\n\013update_time\030\010 \001(\0132\032." + + "google.protobuf.TimestampB\003\340A\003\022\"\n\025creato" + + "r_email_address\030\t \001(\tB\003\340A\003:h\352Ae\n+analyti" + + "csadmin.googleapis.com/GoogleAdsLink\0226pr" + + "operties/{property}/googleAdsLinks/{goog" + + "le_ads_link}\"\353\002\n\023DataSharingSettings\022\021\n\004" + + "name\030\001 \001(\tB\003\340A\003\022+\n#sharing_with_google_s" + + "upport_enabled\030\002 \001(\010\0222\n*sharing_with_goo" + + "gle_assigned_sales_enabled\030\003 \001(\010\022-\n%shar" + + "ing_with_google_any_sales_enabled\030\004 \001(\010\022" + + ",\n$sharing_with_google_products_enabled\030" + + "\005 \001(\010\022#\n\033sharing_with_others_enabled\030\006 \001" + + "(\010:^\352A[\n1analyticsadmin.googleapis.com/D" + + "ataSharingSettings\022&accounts/{account}/d" + + "ataSharingSettings\"\225\002\n\016AccountSummary\022\014\n" + + "\004name\030\001 \001(\t\022;\n\007account\030\002 \001(\tB*\372A\'\n%analy" + + "ticsadmin.googleapis.com/Account\022\024\n\014disp" + + "lay_name\030\003 \001(\t\022K\n\022property_summaries\030\004 \003" + + "(\0132/.google.analytics.admin.v1alpha.Prop" + + "ertySummary:U\352AR\n,analyticsadmin.googlea" + + "pis.com/AccountSummary\022\"accountSummaries" + + "/{account_summary}\"f\n\017PropertySummary\022=\n" + + "\010property\030\001 \001(\tB+\372A(\n&analyticsadmin.goo" + + "gleapis.com/Property\022\024\n\014display_name\030\002 \001" + + "(\t\"\225\002\n\031MeasurementProtocolSecret\022\021\n\004name" + + "\030\001 \001(\tB\003\340A\003\022\031\n\014display_name\030\002 \001(\tB\003\340A\002\022\031" + + "\n\014secret_value\030\003 \001(\tB\003\340A\003:\256\001\352A\252\001\n7analyt" + + "icsadmin.googleapis.com/MeasurementProto" + + "colSecret\022oproperties/{property}/webData" + + "Streams/{web_data_stream}/measurementPro" + + "tocolSecrets/{measurement_protocol_secre" + + "t}\"\212\002\n\022ChangeHistoryEvent\022\n\n\002id\030\001 \001(\t\022/\n" + + "\013change_time\030\002 \001(\0132\032.google.protobuf.Tim" + + "estamp\022=\n\nactor_type\030\003 \001(\0162).google.anal" + + "ytics.admin.v1alpha.ActorType\022\030\n\020user_ac" + + "tor_email\030\004 \001(\t\022\030\n\020changes_filtered\030\005 \001(" + + "\010\022D\n\007changes\030\006 \003(\01323.google.analytics.ad" + + "min.v1alpha.ChangeHistoryChange\"\275\014\n\023Chan" + + "geHistoryChange\022\020\n\010resource\030\001 \001(\t\022:\n\006act" + + "ion\030\002 \001(\0162*.google.analytics.admin.v1alp" + + "ha.ActionType\022i\n\026resource_before_change\030" + + "\003 \001(\0132I.google.analytics.admin.v1alpha.C" + + "hangeHistoryChange.ChangeHistoryResource" + + "\022h\n\025resource_after_change\030\004 \001(\0132I.google" + + ".analytics.admin.v1alpha.ChangeHistoryCh" + + "ange.ChangeHistoryResource\032\202\n\n\025ChangeHis" + + "toryResource\022:\n\007account\030\001 \001(\0132\'.google.a" + + "nalytics.admin.v1alpha.AccountH\000\022<\n\010prop" + + "erty\030\002 \001(\0132(.google.analytics.admin.v1al" + + "pha.PropertyH\000\022H\n\017web_data_stream\030\003 \001(\0132" + + "-.google.analytics.admin.v1alpha.WebData" + + "StreamH\000\022W\n\027android_app_data_stream\030\004 \001(" + + "\01324.google.analytics.admin.v1alpha.Andro" + + "idAppDataStreamH\000\022O\n\023ios_app_data_stream" + + "\030\005 \001(\01320.google.analytics.admin.v1alpha." + + "IosAppDataStreamH\000\022E\n\rfirebase_link\030\006 \001(" + + "\0132,.google.analytics.admin.v1alpha.Fireb" + + "aseLinkH\000\022H\n\017google_ads_link\030\007 \001(\0132-.goo" + + "gle.analytics.admin.v1alpha.GoogleAdsLin" + + "kH\000\022X\n\027google_signals_settings\030\010 \001(\01325.g" + + "oogle.analytics.admin.v1alpha.GoogleSign" + + "alsSettingsH\000\022j\n!display_video_360_adver" + + "tiser_link\030\t \001(\0132=.google.analytics.admi" + + "n.v1alpha.DisplayVideo360AdvertiserLinkH" + + "\000\022{\n*display_video_360_advertiser_link_p" + + "roposal\030\n \001(\0132E.google.analytics.admin.v" + + "1alpha.DisplayVideo360AdvertiserLinkProp" + + "osalH\000\022K\n\020conversion_event\030\013 \001(\0132/.googl" + + "e.analytics.admin.v1alpha.ConversionEven" + + "tH\000\022`\n\033measurement_protocol_secret\030\014 \001(\013" + + "29.google.analytics.admin.v1alpha.Measur" + + "ementProtocolSecretH\000\022K\n\020custom_dimensio" + + "n\030\r \001(\0132/.google.analytics.admin.v1alpha" + + ".CustomDimensionH\000\022E\n\rcustom_metric\030\016 \001(" + + "\0132,.google.analytics.admin.v1alpha.Custo" + + "mMetricH\000\022X\n\027data_retention_settings\030\017 \001" + + "(\01325.google.analytics.admin.v1alpha.Data" + + "RetentionSettingsH\000B\n\n\010resource\"\337\003\n\035Disp" + + "layVideo360AdvertiserLink\022\021\n\004name\030\001 \001(\tB" + + "\003\340A\003\022\032\n\radvertiser_id\030\002 \001(\tB\003\340A\005\022$\n\027adve" + + "rtiser_display_name\030\003 \001(\tB\003\340A\003\022?\n\033ads_pe" + + "rsonalization_enabled\030\004 \001(\0132\032.google.pro" + + "tobuf.BoolValue\022F\n\035campaign_data_sharing" + + "_enabled\030\005 \001(\0132\032.google.protobuf.BoolVal" + + "ueB\003\340A\005\022B\n\031cost_data_sharing_enabled\030\006 \001" + + "(\0132\032.google.protobuf.BoolValueB\003\340A\005:\233\001\352A" + + "\227\001\n;analyticsadmin.googleapis.com/Displa" + + "yVideo360AdvertiserLink\022Xproperties/{pro" + + "perty}/displayVideo360AdvertiserLinks/{d" + + "isplay_video_360_advertiser_link}\"\212\005\n%Di" + + "splayVideo360AdvertiserLinkProposal\022\021\n\004n" + + "ame\030\001 \001(\tB\003\340A\003\022\032\n\radvertiser_id\030\002 \001(\tB\003\340" + + "A\005\022d\n\034link_proposal_status_details\030\003 \001(\013" + + "29.google.analytics.admin.v1alpha.LinkPr" + + "oposalStatusDetailsB\003\340A\003\022$\n\027advertiser_d" + + "isplay_name\030\004 \001(\tB\003\340A\003\022\035\n\020validation_ema" + + "il\030\005 \001(\tB\003\340A\004\022D\n\033ads_personalization_ena" + + "bled\030\006 \001(\0132\032.google.protobuf.BoolValueB\003" + + "\340A\005\022F\n\035campaign_data_sharing_enabled\030\007 \001" + + "(\0132\032.google.protobuf.BoolValueB\003\340A\005\022B\n\031c" + + "ost_data_sharing_enabled\030\010 \001(\0132\032.google." + + "protobuf.BoolValueB\003\340A\005:\264\001\352A\260\001\nCanalytic" + + "sadmin.googleapis.com/DisplayVideo360Adv" + + "ertiserLinkProposal\022iproperties/{propert" + + "y}/displayVideo360AdvertiserLinkProposal" + + "s/{display_video_360_advertiser_link_pro" + + "posal}\"\374\001\n\031LinkProposalStatusDetails\022l\n " + + "link_proposal_initiating_product\030\001 \001(\0162=" + + ".google.analytics.admin.v1alpha.LinkProp" + + "osalInitiatingProductB\003\340A\003\022\034\n\017requestor_" + + "email\030\002 \001(\tB\003\340A\003\022S\n\023link_proposal_state\030" + + "\003 \001(\01621.google.analytics.admin.v1alpha.L" + + "inkProposalStateB\003\340A\003\"\217\002\n\017ConversionEven" + + "t\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\027\n\nevent_name\030\002 \001(\t" + + "B\003\340A\005\0224\n\013create_time\030\003 \001(\0132\032.google.prot" + + "obuf.TimestampB\003\340A\003\022\026\n\tdeletable\030\004 \001(\010B\003" + + "\340A\003\022\023\n\006custom\030\005 \001(\010B\003\340A\003:m\352Aj\n-analytics" + + "admin.googleapis.com/ConversionEvent\0229pr" + + "operties/{property}/conversionEvents/{co" + + "nversion_event}\"\240\002\n\025GoogleSignalsSetting" + + "s\022\021\n\004name\030\001 \001(\tB\003\340A\003\022A\n\005state\030\003 \001(\01622.go" + + "ogle.analytics.admin.v1alpha.GoogleSigna" + + "lsState\022J\n\007consent\030\004 \001(\01624.google.analyt" + + "ics.admin.v1alpha.GoogleSignalsConsentB\003" + + "\340A\003:e\352Ab\n3analyticsadmin.googleapis.com/" + + "GoogleSignalsSettings\022+properties/{prope" + + "rty}/googleSignalsSettings\"\237\003\n\017CustomDim" + + "ension\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\036\n\016parameter_n" + + "ame\030\002 \001(\tB\006\340A\002\340A\005\022\031\n\014display_name\030\003 \001(\tB" + + "\003\340A\002\022\030\n\013description\030\004 \001(\tB\003\340A\001\022U\n\005scope\030" + + "\005 \001(\0162>.google.analytics.admin.v1alpha.C" + + "ustomDimension.DimensionScopeB\006\340A\002\340A\005\022)\n" + + "\034disallow_ads_personalization\030\006 \001(\010B\003\340A\001" + + "\"F\n\016DimensionScope\022\037\n\033DIMENSION_SCOPE_UN" + + "SPECIFIED\020\000\022\t\n\005EVENT\020\001\022\010\n\004USER\020\002:Z\352AW\n-a" + + "nalyticsadmin.googleapis.com/CustomDimen" + + "sion\022&properties/{property}/customDimens" + + "ions\"\354\004\n\014CustomMetric\022\021\n\004name\030\001 \001(\tB\003\340A\003" + + "\022\036\n\016parameter_name\030\002 \001(\tB\006\340A\002\340A\005\022\031\n\014disp" + + "lay_name\030\003 \001(\tB\003\340A\002\022\030\n\013description\030\004 \001(\t" + + "B\003\340A\001\022[\n\020measurement_unit\030\005 \001(\0162<.google" + + ".analytics.admin.v1alpha.CustomMetric.Me" + + "asurementUnitB\003\340A\002\022O\n\005scope\030\006 \001(\01628.goog" + + "le.analytics.admin.v1alpha.CustomMetric." + + "MetricScopeB\006\340A\002\340A\005\"\267\001\n\017MeasurementUnit\022" + + " \n\034MEASUREMENT_UNIT_UNSPECIFIED\020\000\022\014\n\010STA" + + "NDARD\020\001\022\014\n\010CURRENCY\020\002\022\010\n\004FEET\020\003\022\n\n\006METER" + + "S\020\004\022\016\n\nKILOMETERS\020\005\022\t\n\005MILES\020\006\022\020\n\014MILLIS" + + "ECONDS\020\007\022\013\n\007SECONDS\020\010\022\013\n\007MINUTES\020\t\022\t\n\005HO" + + "URS\020\n\"6\n\013MetricScope\022\034\n\030METRIC_SCOPE_UNS" + + "PECIFIED\020\000\022\t\n\005EVENT\020\001:T\352AQ\n*analyticsadm" + + "in.googleapis.com/CustomMetric\022#properti" + + "es/{property}/customMetrics\"\302\003\n\025DataRete" + + "ntionSettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022e\n\024even" + + "t_data_retention\030\002 \001(\0162G.google.analytic" + + "s.admin.v1alpha.DataRetentionSettings.Re" + + "tentionDuration\022\'\n\037reset_user_data_on_ne" + + "w_activity\030\003 \001(\010\"\236\001\n\021RetentionDuration\022\"" + + "\n\036RETENTION_DURATION_UNSPECIFIED\020\000\022\016\n\nTW" + + "O_MONTHS\020\001\022\023\n\017FOURTEEN_MONTHS\020\003\022\025\n\021TWENT" + + "Y_SIX_MONTHS\020\004\022\027\n\023THIRTY_EIGHT_MONTHS\020\005\022" + + "\020\n\014FIFTY_MONTHS\020\006:e\352Ab\n3analyticsadmin.g" + + "oogleapis.com/DataRetentionSettings\022+pro" + + "perties/{property}/dataRetentionSettings" + + "*\252\004\n\020IndustryCategory\022!\n\035INDUSTRY_CATEGO" + + "RY_UNSPECIFIED\020\000\022\016\n\nAUTOMOTIVE\020\001\022#\n\037BUSI" + + "NESS_AND_INDUSTRIAL_MARKETS\020\002\022\013\n\007FINANCE" + + "\020\003\022\016\n\nHEALTHCARE\020\004\022\016\n\nTECHNOLOGY\020\005\022\n\n\006TR" + + "AVEL\020\006\022\t\n\005OTHER\020\007\022\032\n\026ARTS_AND_ENTERTAINM" + + "ENT\020\010\022\026\n\022BEAUTY_AND_FITNESS\020\t\022\030\n\024BOOKS_A" + + "ND_LITERATURE\020\n\022\022\n\016FOOD_AND_DRINK\020\013\022\t\n\005G" + + "AMES\020\014\022\027\n\023HOBBIES_AND_LEISURE\020\r\022\023\n\017HOME_" + + "AND_GARDEN\020\016\022\030\n\024INTERNET_AND_TELECOM\020\017\022\026" + + "\n\022LAW_AND_GOVERNMENT\020\020\022\010\n\004NEWS\020\021\022\026\n\022ONLI" + + "NE_COMMUNITIES\020\022\022\026\n\022PEOPLE_AND_SOCIETY\020\023" + + "\022\024\n\020PETS_AND_ANIMALS\020\024\022\017\n\013REAL_ESTATE\020\025\022" + + "\r\n\tREFERENCE\020\026\022\013\n\007SCIENCE\020\027\022\n\n\006SPORTS\020\030\022" + + "\026\n\022JOBS_AND_EDUCATION\020\031\022\014\n\010SHOPPING\020\032*f\n" + + "\014ServiceLevel\022\035\n\031SERVICE_LEVEL_UNSPECIFI" + + "ED\020\000\022\035\n\031GOOGLE_ANALYTICS_STANDARD\020\001\022\030\n\024G" + + "OOGLE_ANALYTICS_360\020\002*J\n\tActorType\022\032\n\026AC" + + "TOR_TYPE_UNSPECIFIED\020\000\022\010\n\004USER\020\001\022\n\n\006SYST" + + "EM\020\002\022\013\n\007SUPPORT\020\003*P\n\nActionType\022\033\n\027ACTIO" + + "N_TYPE_UNSPECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007UPD" + + "ATED\020\002\022\013\n\007DELETED\020\003*\361\002\n\031ChangeHistoryRes" + + "ourceType\022,\n(CHANGE_HISTORY_RESOURCE_TYP" + + "E_UNSPECIFIED\020\000\022\013\n\007ACCOUNT\020\001\022\014\n\010PROPERTY" + + "\020\002\022\023\n\017WEB_DATA_STREAM\020\003\022\033\n\027ANDROID_APP_D" + + "ATA_STREAM\020\004\022\027\n\023IOS_APP_DATA_STREAM\020\005\022\021\n" + + "\rFIREBASE_LINK\020\006\022\023\n\017GOOGLE_ADS_LINK\020\007\022\033\n" + + "\027GOOGLE_SIGNALS_SETTINGS\020\010\022\024\n\020CONVERSION" + + "_EVENT\020\t\022\037\n\033MEASUREMENT_PROTOCOL_SECRET\020" + + "\n\022\024\n\020CUSTOM_DIMENSION\020\013\022\021\n\rCUSTOM_METRIC" + + "\020\014\022\033\n\027DATA_RETENTION_SETTINGS\020\r*s\n\022Googl" + + "eSignalsState\022$\n GOOGLE_SIGNALS_STATE_UN" + + "SPECIFIED\020\000\022\032\n\026GOOGLE_SIGNALS_ENABLED\020\001\022" + + "\033\n\027GOOGLE_SIGNALS_DISABLED\020\002*\216\001\n\024GoogleS" + + "ignalsConsent\022&\n\"GOOGLE_SIGNALS_CONSENT_" + + "UNSPECIFIED\020\000\022$\n GOOGLE_SIGNALS_CONSENT_" + + "CONSENTED\020\002\022(\n$GOOGLE_SIGNALS_CONSENT_NO" + + "T_CONSENTED\020\001*{\n\035LinkProposalInitiatingP" + + "roduct\0220\n,LINK_PROPOSAL_INITIATING_PRODU" + + "CT_UNSPECIFIED\020\000\022\024\n\020GOOGLE_ANALYTICS\020\001\022\022" + + "\n\016LINKED_PRODUCT\020\002*\304\001\n\021LinkProposalState" + + "\022#\n\037LINK_PROPOSAL_STATE_UNSPECIFIED\020\000\022)\n" + + "%AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS\020\001" + + "\022\'\n#AWAITING_REVIEW_FROM_LINKED_PRODUCT\020" + + "\002\022\r\n\tWITHDRAWN\020\003\022\014\n\010DECLINED\020\004\022\013\n\007EXPIRE" + + "D\020\005\022\014\n\010OBSOLETE\020\006B{\n\"com.google.analytic" + + "s.admin.v1alphaB\016ResourcesProtoP\001ZCgoogl" + + "e.golang.org/genproto/googleapis/analyti" + + "cs/admin/v1alpha;adminb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -394,6 +472,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IndustryCategory", "TimeZone", "CurrencyCode", + "ServiceLevel", "DeleteTime", "ExpireTime", }); @@ -468,7 +547,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_FirebaseLink_descriptor, new java.lang.String[] { - "Name", "Project", "CreateTime", "MaximumUserAccess", + "Name", "Project", "CreateTime", }); internal_static_google_analytics_admin_v1alpha_GlobalSiteTag_descriptor = getDescriptor().getMessageTypes().get(9); @@ -488,9 +567,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CustomerId", "CanManageClients", "AdsPersonalizationEnabled", - "EmailAddress", "CreateTime", "UpdateTime", + "CreatorEmailAddress", }); internal_static_google_analytics_admin_v1alpha_DataSharingSettings_descriptor = getDescriptor().getMessageTypes().get(11); @@ -561,22 +640,61 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirebaseLink", "GoogleAdsLink", "GoogleSignalsSettings", + "DisplayVideo360AdvertiserLink", + "DisplayVideo360AdvertiserLinkProposal", "ConversionEvent", "MeasurementProtocolSecret", "CustomDimension", "CustomMetric", + "DataRetentionSettings", "Resource", }); - internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor = + internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor = getDescriptor().getMessageTypes().get(17); + internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor, + new java.lang.String[] { + "Name", + "AdvertiserId", + "AdvertiserDisplayName", + "AdsPersonalizationEnabled", + "CampaignDataSharingEnabled", + "CostDataSharingEnabled", + }); + internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLinkProposal_descriptor, + new java.lang.String[] { + "Name", + "AdvertiserId", + "LinkProposalStatusDetails", + "AdvertiserDisplayName", + "ValidationEmail", + "AdsPersonalizationEnabled", + "CampaignDataSharingEnabled", + "CostDataSharingEnabled", + }); + internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_LinkProposalStatusDetails_descriptor, + new java.lang.String[] { + "LinkProposalInitiatingProduct", "RequestorEmail", "LinkProposalState", + }); + internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor = + getDescriptor().getMessageTypes().get(20); internal_static_google_analytics_admin_v1alpha_ConversionEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor, new java.lang.String[] { - "Name", "EventName", "CreateTime", "IsDeletable", + "Name", "EventName", "CreateTime", "Deletable", "Custom", }); internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(21); internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor, @@ -584,7 +702,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "State", "Consent", }); internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(22); internal_static_google_analytics_admin_v1alpha_CustomDimension_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor, @@ -597,13 +715,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DisallowAdsPersonalization", }); internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(23); internal_static_google_analytics_admin_v1alpha_CustomMetric_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor, new java.lang.String[] { "Name", "ParameterName", "DisplayName", "Description", "MeasurementUnit", "Scope", }); + internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_descriptor = + getDescriptor().getMessageTypes().get(24); + internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DataRetentionSettings_descriptor, + new java.lang.String[] { + "Name", "EventDataRetention", "ResetUserDataOnNewActivity", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ServiceLevel.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ServiceLevel.java new file mode 100644 index 00000000..5b0da43a --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ServiceLevel.java @@ -0,0 +1,176 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Various levels of service for Google Analytics.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.ServiceLevel} + */ +public enum ServiceLevel implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Service level not specified or invalid.
+   * 
+ * + * SERVICE_LEVEL_UNSPECIFIED = 0; + */ + SERVICE_LEVEL_UNSPECIFIED(0), + /** + * + * + *
+   * The standard version of Google Analytics.
+   * 
+ * + * GOOGLE_ANALYTICS_STANDARD = 1; + */ + GOOGLE_ANALYTICS_STANDARD(1), + /** + * + * + *
+   * The paid, premium version of Google Analytics.
+   * 
+ * + * GOOGLE_ANALYTICS_360 = 2; + */ + GOOGLE_ANALYTICS_360(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Service level not specified or invalid.
+   * 
+ * + * SERVICE_LEVEL_UNSPECIFIED = 0; + */ + public static final int SERVICE_LEVEL_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * The standard version of Google Analytics.
+   * 
+ * + * GOOGLE_ANALYTICS_STANDARD = 1; + */ + public static final int GOOGLE_ANALYTICS_STANDARD_VALUE = 1; + /** + * + * + *
+   * The paid, premium version of Google Analytics.
+   * 
+ * + * GOOGLE_ANALYTICS_360 = 2; + */ + public static final int GOOGLE_ANALYTICS_360_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 ServiceLevel 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 ServiceLevel forNumber(int value) { + switch (value) { + case 0: + return SERVICE_LEVEL_UNSPECIFIED; + case 1: + return GOOGLE_ANALYTICS_STANDARD; + case 2: + return GOOGLE_ANALYTICS_360; + 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 ServiceLevel findValueByNumber(int number) { + return ServiceLevel.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.admin.v1alpha.ResourcesProto.getDescriptor().getEnumTypes().get(1); + } + + private static final ServiceLevel[] VALUES = values(); + + public static ServiceLevel 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 ServiceLevel(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.ServiceLevel) +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateFirebaseLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequest.java similarity index 62% rename from proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateFirebaseLinkRequest.java rename to proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequest.java index c0302c7b..e31f0560 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateFirebaseLinkRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequest.java @@ -22,27 +22,28 @@ * * *
- * Request message for UpdateFirebaseLink RPC
+ * Request message for UpdateDataRetentionSettings RPC.
  * 
* - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} */ -public final class UpdateFirebaseLinkRequest extends com.google.protobuf.GeneratedMessageV3 +public final class UpdateDataRetentionSettingsRequest extends com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest) - UpdateFirebaseLinkRequestOrBuilder { + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) + UpdateDataRetentionSettingsRequestOrBuilder { private static final long serialVersionUID = 0L; - // Use UpdateFirebaseLinkRequest.newBuilder() to construct. - private UpdateFirebaseLinkRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + // Use UpdateDataRetentionSettingsRequest.newBuilder() to construct. + private UpdateDataRetentionSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } - private UpdateFirebaseLinkRequest() {} + private UpdateDataRetentionSettingsRequest() {} @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new UpdateFirebaseLinkRequest(); + return new UpdateDataRetentionSettingsRequest(); } @java.lang.Override @@ -50,7 +51,7 @@ public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } - private UpdateFirebaseLinkRequest( + private UpdateDataRetentionSettingsRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { @@ -70,16 +71,17 @@ private UpdateFirebaseLinkRequest( break; case 10: { - com.google.analytics.admin.v1alpha.FirebaseLink.Builder subBuilder = null; - if (firebaseLink_ != null) { - subBuilder = firebaseLink_.toBuilder(); + com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder subBuilder = null; + if (dataRetentionSettings_ != null) { + subBuilder = dataRetentionSettings_.toBuilder(); } - firebaseLink_ = + dataRetentionSettings_ = input.readMessage( - com.google.analytics.admin.v1alpha.FirebaseLink.parser(), extensionRegistry); + com.google.analytics.admin.v1alpha.DataRetentionSettings.parser(), + extensionRegistry); if (subBuilder != null) { - subBuilder.mergeFrom(firebaseLink_); - firebaseLink_ = subBuilder.buildPartial(); + subBuilder.mergeFrom(dataRetentionSettings_); + dataRetentionSettings_ = subBuilder.buildPartial(); } break; @@ -120,71 +122,75 @@ private UpdateFirebaseLinkRequest( public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateFirebaseLinkRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateFirebaseLinkRequest_fieldAccessorTable + .internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.class, - com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.Builder.class); + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.Builder.class); } - public static final int FIREBASE_LINK_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.FirebaseLink firebaseLink_; + public static final int DATA_RETENTION_SETTINGS_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.DataRetentionSettings dataRetentionSettings_; /** * * *
-   * Required. The Firebase link to update.
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
    * 
* * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * * - * @return Whether the firebaseLink field is set. + * @return Whether the dataRetentionSettings field is set. */ @java.lang.Override - public boolean hasFirebaseLink() { - return firebaseLink_ != null; + public boolean hasDataRetentionSettings() { + return dataRetentionSettings_ != null; } /** * * *
-   * Required. The Firebase link to update.
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
    * 
* * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * * - * @return The firebaseLink. + * @return The dataRetentionSettings. */ @java.lang.Override - public com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink() { - return firebaseLink_ == null - ? com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance() - : firebaseLink_; + public com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetentionSettings() { + return dataRetentionSettings_ == null + ? com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance() + : dataRetentionSettings_; } /** * * *
-   * Required. The Firebase link to update.
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
    * 
* * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * */ @java.lang.Override - public com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() { - return getFirebaseLink(); + public com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder + getDataRetentionSettingsOrBuilder() { + return getDataRetentionSettings(); } public static final int UPDATE_MASK_FIELD_NUMBER = 2; @@ -256,8 +262,8 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (firebaseLink_ != null) { - output.writeMessage(1, getFirebaseLink()); + if (dataRetentionSettings_ != null) { + output.writeMessage(1, getDataRetentionSettings()); } if (updateMask_ != null) { output.writeMessage(2, getUpdateMask()); @@ -271,8 +277,9 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (firebaseLink_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getFirebaseLink()); + if (dataRetentionSettings_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getDataRetentionSettings()); } if (updateMask_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); @@ -287,15 +294,15 @@ public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } - if (!(obj instanceof com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest)) { + if (!(obj instanceof com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest)) { return super.equals(obj); } - com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest other = - (com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest) obj; + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest other = + (com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) obj; - if (hasFirebaseLink() != other.hasFirebaseLink()) return false; - if (hasFirebaseLink()) { - if (!getFirebaseLink().equals(other.getFirebaseLink())) return false; + if (hasDataRetentionSettings() != other.hasDataRetentionSettings()) return false; + if (hasDataRetentionSettings()) { + if (!getDataRetentionSettings().equals(other.getDataRetentionSettings())) return false; } if (hasUpdateMask() != other.hasUpdateMask()) return false; if (hasUpdateMask()) { @@ -312,9 +319,9 @@ public int hashCode() { } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); - if (hasFirebaseLink()) { - hash = (37 * hash) + FIREBASE_LINK_FIELD_NUMBER; - hash = (53 * hash) + getFirebaseLink().hashCode(); + if (hasDataRetentionSettings()) { + hash = (37 * hash) + DATA_RETENTION_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getDataRetentionSettings().hashCode(); } if (hasUpdateMask()) { hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; @@ -325,71 +332,72 @@ public int hashCode() { return hash; } - public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } - public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException( PARSER, input, extensionRegistry); } - public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } - public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseDelimitedFrom( - java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( PARSER, input, extensionRegistry); } - public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } - public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parseFrom( + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { @@ -407,7 +415,7 @@ public static Builder newBuilder() { } public static Builder newBuilder( - com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest prototype) { + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @@ -425,31 +433,32 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * Request message for UpdateFirebaseLink RPC
+   * Request message for UpdateDataRetentionSettings RPC.
    * 
* - * Protobuf type {@code google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest} + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest) - com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequestOrBuilder { + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateFirebaseLinkRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateFirebaseLinkRequest_fieldAccessorTable + .internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.class, - com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.Builder.class); + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.Builder.class); } - // Construct using com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.newBuilder() + // Construct using + // com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } @@ -466,11 +475,11 @@ private void maybeForceBuilderInitialization() { @java.lang.Override public Builder clear() { super.clear(); - if (firebaseLinkBuilder_ == null) { - firebaseLink_ = null; + if (dataRetentionSettingsBuilder_ == null) { + dataRetentionSettings_ = null; } else { - firebaseLink_ = null; - firebaseLinkBuilder_ = null; + dataRetentionSettings_ = null; + dataRetentionSettingsBuilder_ = null; } if (updateMaskBuilder_ == null) { updateMask_ = null; @@ -484,18 +493,19 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_UpdateFirebaseLinkRequest_descriptor; + .internal_static_google_analytics_admin_v1alpha_UpdateDataRetentionSettingsRequest_descriptor; } @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + public com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.getDefaultInstance(); + return com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + .getDefaultInstance(); } @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest build() { - com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest result = buildPartial(); + public com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest build() { + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } @@ -503,13 +513,13 @@ public com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest build() { } @java.lang.Override - public com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest buildPartial() { - com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest result = - new com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest(this); - if (firebaseLinkBuilder_ == null) { - result.firebaseLink_ = firebaseLink_; + public com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest result = + new com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest(this); + if (dataRetentionSettingsBuilder_ == null) { + result.dataRetentionSettings_ = dataRetentionSettings_; } else { - result.firebaseLink_ = firebaseLinkBuilder_.build(); + result.dataRetentionSettings_ = dataRetentionSettingsBuilder_.build(); } if (updateMaskBuilder_ == null) { result.updateMask_ = updateMask_; @@ -555,20 +565,22 @@ public Builder addRepeatedField( @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest) other); + if (other instanceof com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) other); } else { super.mergeFrom(other); return this; } } - public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest other) { + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest other) { if (other - == com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest.getDefaultInstance()) - return this; - if (other.hasFirebaseLink()) { - mergeFirebaseLink(other.getFirebaseLink()); + == com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + .getDefaultInstance()) return this; + if (other.hasDataRetentionSettings()) { + mergeDataRetentionSettings(other.getDataRetentionSettings()); } if (other.hasUpdateMask()) { mergeUpdateMask(other.getUpdateMask()); @@ -588,12 +600,13 @@ public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest parsedMessage = null; + com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = - (com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest) e.getUnfinishedMessage(); + (com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) + e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -603,70 +616,74 @@ public Builder mergeFrom( return this; } - private com.google.analytics.admin.v1alpha.FirebaseLink firebaseLink_; + private com.google.analytics.admin.v1alpha.DataRetentionSettings dataRetentionSettings_; private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.FirebaseLink, - com.google.analytics.admin.v1alpha.FirebaseLink.Builder, - com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder> - firebaseLinkBuilder_; + com.google.analytics.admin.v1alpha.DataRetentionSettings, + com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder> + dataRetentionSettingsBuilder_; /** * * *
-     * Required. The Firebase link to update.
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
      * 
* * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * * - * @return Whether the firebaseLink field is set. + * @return Whether the dataRetentionSettings field is set. */ - public boolean hasFirebaseLink() { - return firebaseLinkBuilder_ != null || firebaseLink_ != null; + public boolean hasDataRetentionSettings() { + return dataRetentionSettingsBuilder_ != null || dataRetentionSettings_ != null; } /** * * *
-     * Required. The Firebase link to update.
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
      * 
* * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * * - * @return The firebaseLink. + * @return The dataRetentionSettings. */ - public com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink() { - if (firebaseLinkBuilder_ == null) { - return firebaseLink_ == null - ? com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance() - : firebaseLink_; + public com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetentionSettings() { + if (dataRetentionSettingsBuilder_ == null) { + return dataRetentionSettings_ == null + ? com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance() + : dataRetentionSettings_; } else { - return firebaseLinkBuilder_.getMessage(); + return dataRetentionSettingsBuilder_.getMessage(); } } /** * * *
-     * Required. The Firebase link to update.
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
      * 
* * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * */ - public Builder setFirebaseLink(com.google.analytics.admin.v1alpha.FirebaseLink value) { - if (firebaseLinkBuilder_ == null) { + public Builder setDataRetentionSettings( + com.google.analytics.admin.v1alpha.DataRetentionSettings value) { + if (dataRetentionSettingsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } - firebaseLink_ = value; + dataRetentionSettings_ = value; onChanged(); } else { - firebaseLinkBuilder_.setMessage(value); + dataRetentionSettingsBuilder_.setMessage(value); } return this; @@ -675,20 +692,21 @@ public Builder setFirebaseLink(com.google.analytics.admin.v1alpha.FirebaseLink v * * *
-     * Required. The Firebase link to update.
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
      * 
* * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * */ - public Builder setFirebaseLink( - com.google.analytics.admin.v1alpha.FirebaseLink.Builder builderForValue) { - if (firebaseLinkBuilder_ == null) { - firebaseLink_ = builderForValue.build(); + public Builder setDataRetentionSettings( + com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder builderForValue) { + if (dataRetentionSettingsBuilder_ == null) { + dataRetentionSettings_ = builderForValue.build(); onChanged(); } else { - firebaseLinkBuilder_.setMessage(builderForValue.build()); + dataRetentionSettingsBuilder_.setMessage(builderForValue.build()); } return this; @@ -697,26 +715,29 @@ public Builder setFirebaseLink( * * *
-     * Required. The Firebase link to update.
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
      * 
* * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * */ - public Builder mergeFirebaseLink(com.google.analytics.admin.v1alpha.FirebaseLink value) { - if (firebaseLinkBuilder_ == null) { - if (firebaseLink_ != null) { - firebaseLink_ = - com.google.analytics.admin.v1alpha.FirebaseLink.newBuilder(firebaseLink_) + public Builder mergeDataRetentionSettings( + com.google.analytics.admin.v1alpha.DataRetentionSettings value) { + if (dataRetentionSettingsBuilder_ == null) { + if (dataRetentionSettings_ != null) { + dataRetentionSettings_ = + com.google.analytics.admin.v1alpha.DataRetentionSettings.newBuilder( + dataRetentionSettings_) .mergeFrom(value) .buildPartial(); } else { - firebaseLink_ = value; + dataRetentionSettings_ = value; } onChanged(); } else { - firebaseLinkBuilder_.mergeFrom(value); + dataRetentionSettingsBuilder_.mergeFrom(value); } return this; @@ -725,20 +746,21 @@ public Builder mergeFirebaseLink(com.google.analytics.admin.v1alpha.FirebaseLink * * *
-     * Required. The Firebase link to update.
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
      * 
* * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * */ - public Builder clearFirebaseLink() { - if (firebaseLinkBuilder_ == null) { - firebaseLink_ = null; + public Builder clearDataRetentionSettings() { + if (dataRetentionSettingsBuilder_ == null) { + dataRetentionSettings_ = null; onChanged(); } else { - firebaseLink_ = null; - firebaseLinkBuilder_ = null; + dataRetentionSettings_ = null; + dataRetentionSettingsBuilder_ = null; } return this; @@ -747,64 +769,69 @@ public Builder clearFirebaseLink() { * * *
-     * Required. The Firebase link to update.
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
      * 
* * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * */ - public com.google.analytics.admin.v1alpha.FirebaseLink.Builder getFirebaseLinkBuilder() { + public com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder + getDataRetentionSettingsBuilder() { onChanged(); - return getFirebaseLinkFieldBuilder().getBuilder(); + return getDataRetentionSettingsFieldBuilder().getBuilder(); } /** * * *
-     * Required. The Firebase link to update.
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
      * 
* * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * */ - public com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() { - if (firebaseLinkBuilder_ != null) { - return firebaseLinkBuilder_.getMessageOrBuilder(); + public com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder + getDataRetentionSettingsOrBuilder() { + if (dataRetentionSettingsBuilder_ != null) { + return dataRetentionSettingsBuilder_.getMessageOrBuilder(); } else { - return firebaseLink_ == null - ? com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance() - : firebaseLink_; + return dataRetentionSettings_ == null + ? com.google.analytics.admin.v1alpha.DataRetentionSettings.getDefaultInstance() + : dataRetentionSettings_; } } /** * * *
-     * Required. The Firebase link to update.
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
      * 
* * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * */ private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.FirebaseLink, - com.google.analytics.admin.v1alpha.FirebaseLink.Builder, - com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder> - getFirebaseLinkFieldBuilder() { - if (firebaseLinkBuilder_ == null) { - firebaseLinkBuilder_ = + com.google.analytics.admin.v1alpha.DataRetentionSettings, + com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder> + getDataRetentionSettingsFieldBuilder() { + if (dataRetentionSettingsBuilder_ == null) { + dataRetentionSettingsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.FirebaseLink, - com.google.analytics.admin.v1alpha.FirebaseLink.Builder, - com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder>( - getFirebaseLink(), getParentForChildren(), isClean()); - firebaseLink_ = null; + com.google.analytics.admin.v1alpha.DataRetentionSettings, + com.google.analytics.admin.v1alpha.DataRetentionSettings.Builder, + com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder>( + getDataRetentionSettings(), getParentForChildren(), isClean()); + dataRetentionSettings_ = null; } - return firebaseLinkBuilder_; + return dataRetentionSettingsBuilder_; } private com.google.protobuf.FieldMask updateMask_; @@ -1028,43 +1055,45 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest) + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) } - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest) - private static final com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) + private static final com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest DEFAULT_INSTANCE; static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest(); + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest(); } - public static com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest getDefaultInstance() { + public static com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + 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 UpdateFirebaseLinkRequest parsePartialFrom( + public UpdateDataRetentionSettingsRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateFirebaseLinkRequest(input, extensionRegistry); + return new UpdateDataRetentionSettingsRequest(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.admin.v1alpha.UpdateFirebaseLinkRequest getDefaultInstanceForType() { + public com.google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest + getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateFirebaseLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequestOrBuilder.java similarity index 68% rename from proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateFirebaseLinkRequestOrBuilder.java rename to proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequestOrBuilder.java index 65d54283..3e1d5ccd 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateFirebaseLinkRequestOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDataRetentionSettingsRequestOrBuilder.java @@ -18,51 +18,55 @@ package com.google.analytics.admin.v1alpha; -public interface UpdateFirebaseLinkRequestOrBuilder +public interface UpdateDataRetentionSettingsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest) + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateDataRetentionSettingsRequest) com.google.protobuf.MessageOrBuilder { /** * * *
-   * Required. The Firebase link to update.
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
    * 
* * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * * - * @return Whether the firebaseLink field is set. + * @return Whether the dataRetentionSettings field is set. */ - boolean hasFirebaseLink(); + boolean hasDataRetentionSettings(); /** * * *
-   * Required. The Firebase link to update.
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
    * 
* * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * * - * @return The firebaseLink. + * @return The dataRetentionSettings. */ - com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink(); + com.google.analytics.admin.v1alpha.DataRetentionSettings getDataRetentionSettings(); /** * * *
-   * Required. The Firebase link to update.
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
    * 
* * - * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 1 [(.google.api.field_behavior) = REQUIRED]; + * .google.analytics.admin.v1alpha.DataRetentionSettings data_retention_settings = 1 [(.google.api.field_behavior) = REQUIRED]; * */ - com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder(); + com.google.analytics.admin.v1alpha.DataRetentionSettingsOrBuilder + getDataRetentionSettingsOrBuilder(); /** * diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.java new file mode 100644 index 00000000..db028ab6 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequest.java @@ -0,0 +1,1112 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for UpdateDisplayVideo360AdvertiserLink RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} + */ +public final class UpdateDisplayVideo360AdvertiserLinkRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) + UpdateDisplayVideo360AdvertiserLinkRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder() to construct. + private UpdateDisplayVideo360AdvertiserLinkRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateDisplayVideo360AdvertiserLinkRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateDisplayVideo360AdvertiserLinkRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateDisplayVideo360AdvertiserLinkRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + 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.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder subBuilder = + null; + if (displayVideo360AdvertiserLink_ != null) { + subBuilder = displayVideo360AdvertiserLink_.toBuilder(); + } + displayVideo360AdvertiserLink_ = + input.readMessage( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(displayVideo360AdvertiserLink_); + displayVideo360AdvertiserLink_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + com.google.protobuf.FieldMask.Builder subBuilder = null; + if (updateMask_ != null) { + subBuilder = updateMask_.toBuilder(); + } + updateMask_ = + input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(updateMask_); + updateMask_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.class, + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.Builder + .class); + } + + public static final int DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + displayVideo360AdvertiserLink_; + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink to update
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + @java.lang.Override + public boolean hasDisplayVideo360AdvertiserLink() { + return displayVideo360AdvertiserLink_ != null; + } + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink to update
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return The displayVideo360AdvertiserLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink() { + return displayVideo360AdvertiserLink_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() + : displayVideo360AdvertiserLink_; + } + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink to update
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder() { + return getDisplayVideo360AdvertiserLink(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match
+   * all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match
+   * all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match
+   * all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return getUpdateMask(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (displayVideo360AdvertiserLink_ != null) { + output.writeMessage(1, getDisplayVideo360AdvertiserLink()); + } + if (updateMask_ != null) { + output.writeMessage(2, getUpdateMask()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (displayVideo360AdvertiserLink_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getDisplayVideo360AdvertiserLink()); + } + if (updateMask_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest other = + (com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) obj; + + if (hasDisplayVideo360AdvertiserLink() != other.hasDisplayVideo360AdvertiserLink()) + return false; + if (hasDisplayVideo360AdvertiserLink()) { + if (!getDisplayVideo360AdvertiserLink().equals(other.getDisplayVideo360AdvertiserLink())) + return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasDisplayVideo360AdvertiserLink()) { + hash = (37 * hash) + DISPLAY_VIDEO_360_ADVERTISER_LINK_FIELD_NUMBER; + hash = (53 * hash) + getDisplayVideo360AdvertiserLink().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 message for UpdateDisplayVideo360AdvertiserLink RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.class, + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.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 (displayVideo360AdvertiserLinkBuilder_ == null) { + displayVideo360AdvertiserLink_ = null; + } else { + displayVideo360AdvertiserLink_ = null; + displayVideo360AdvertiserLinkBuilder_ = null; + } + if (updateMaskBuilder_ == null) { + updateMask_ = null; + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateDisplayVideo360AdvertiserLinkRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest build() { + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + buildPartial() { + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest result = + new com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest(this); + if (displayVideo360AdvertiserLinkBuilder_ == null) { + result.displayVideo360AdvertiserLink_ = displayVideo360AdvertiserLink_; + } else { + result.displayVideo360AdvertiserLink_ = displayVideo360AdvertiserLinkBuilder_.build(); + } + if (updateMaskBuilder_ == null) { + result.updateMask_ = updateMask_; + } else { + result.updateMask_ = updateMaskBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + .getDefaultInstance()) return this; + if (other.hasDisplayVideo360AdvertiserLink()) { + mergeDisplayVideo360AdvertiserLink(other.getDisplayVideo360AdvertiserLink()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + displayVideo360AdvertiserLink_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + displayVideo360AdvertiserLinkBuilder_; + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink to update
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + public boolean hasDisplayVideo360AdvertiserLink() { + return displayVideo360AdvertiserLinkBuilder_ != null + || displayVideo360AdvertiserLink_ != null; + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink to update
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return The displayVideo360AdvertiserLink. + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink() { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + return displayVideo360AdvertiserLink_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() + : displayVideo360AdvertiserLink_; + } else { + return displayVideo360AdvertiserLinkBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink to update
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public Builder setDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + displayVideo360AdvertiserLink_ = value; + onChanged(); + } else { + displayVideo360AdvertiserLinkBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink to update
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public Builder setDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder builderForValue) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + displayVideo360AdvertiserLink_ = builderForValue.build(); + onChanged(); + } else { + displayVideo360AdvertiserLinkBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink to update
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public Builder mergeDisplayVideo360AdvertiserLink( + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink value) { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + if (displayVideo360AdvertiserLink_ != null) { + displayVideo360AdvertiserLink_ = + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.newBuilder( + displayVideo360AdvertiserLink_) + .mergeFrom(value) + .buildPartial(); + } else { + displayVideo360AdvertiserLink_ = value; + } + onChanged(); + } else { + displayVideo360AdvertiserLinkBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink to update
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public Builder clearDisplayVideo360AdvertiserLink() { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + displayVideo360AdvertiserLink_ = null; + onChanged(); + } else { + displayVideo360AdvertiserLink_ = null; + displayVideo360AdvertiserLinkBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink to update
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder + getDisplayVideo360AdvertiserLinkBuilder() { + + onChanged(); + return getDisplayVideo360AdvertiserLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink to update
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + public com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder() { + if (displayVideo360AdvertiserLinkBuilder_ != null) { + return displayVideo360AdvertiserLinkBuilder_.getMessageOrBuilder(); + } else { + return displayVideo360AdvertiserLink_ == null + ? com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.getDefaultInstance() + : displayVideo360AdvertiserLink_; + } + } + /** + * + * + *
+     * The DisplayVideo360AdvertiserLink to update
+     * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder> + getDisplayVideo360AdvertiserLinkFieldBuilder() { + if (displayVideo360AdvertiserLinkBuilder_ == null) { + displayVideo360AdvertiserLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink.Builder, + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder>( + getDisplayVideo360AdvertiserLink(), getParentForChildren(), isClean()); + displayVideo360AdvertiserLink_ = null; + } + return displayVideo360AdvertiserLinkBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match
+     * all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match
+     * all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match
+     * all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + onChanged(); + } else { + updateMaskBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match
+     * all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match
+     * all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (updateMask_ != null) { + updateMask_ = + com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); + } else { + updateMask_ = value; + } + onChanged(); + } else { + updateMaskBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match
+     * all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match
+     * all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match
+     * all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * Required. The list of fields to be updated. Omitted fields will not be updated.
+     * To replace the entire entity, use one path with the string "*" to match
+     * all fields.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + getUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) + private static final com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateDisplayVideo360AdvertiserLinkRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateDisplayVideo360AdvertiserLinkRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequestOrBuilder.java new file mode 100644 index 00000000..7424c583 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateDisplayVideo360AdvertiserLinkRequestOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface UpdateDisplayVideo360AdvertiserLinkRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateDisplayVideo360AdvertiserLinkRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink to update
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return Whether the displayVideo360AdvertiserLink field is set. + */ + boolean hasDisplayVideo360AdvertiserLink(); + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink to update
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + * + * @return The displayVideo360AdvertiserLink. + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink + getDisplayVideo360AdvertiserLink(); + /** + * + * + *
+   * The DisplayVideo360AdvertiserLink to update
+   * 
+ * + * + * .google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + * + */ + com.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkOrBuilder + getDisplayVideo360AdvertiserLinkOrBuilder(); + + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match
+   * all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match
+   * all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * Required. The list of fields to be updated. Omitted fields will not be updated.
+   * To replace the entire entity, use one path with the string "*" to match
+   * all fields.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto b/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto index 14ba713d..4f2beb4b 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto @@ -437,15 +437,6 @@ service AnalyticsAdminService { option (google.api.method_signature) = "parent,firebase_link"; } - // Updates a FirebaseLink on a property - rpc UpdateFirebaseLink(UpdateFirebaseLinkRequest) returns (FirebaseLink) { - option (google.api.http) = { - patch: "/v1alpha/{firebase_link.name=properties/*/firebaseLinks/*}" - body: "firebase_link" - }; - option (google.api.method_signature) = "firebase_link,update_mask"; - } - // Deletes a FirebaseLink on a property rpc DeleteFirebaseLink(DeleteFirebaseLinkRequest) returns (google.protobuf.Empty) { option (google.api.http) = { @@ -653,6 +644,108 @@ service AnalyticsAdminService { option (google.api.method_signature) = "parent"; } + // Look up a single DisplayVideo360AdvertiserLink + rpc GetDisplayVideo360AdvertiserLink(GetDisplayVideo360AdvertiserLinkRequest) returns (DisplayVideo360AdvertiserLink) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists all DisplayVideo360AdvertiserLinks on a property. + rpc ListDisplayVideo360AdvertiserLinks(ListDisplayVideo360AdvertiserLinksRequest) returns (ListDisplayVideo360AdvertiserLinksResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a DisplayVideo360AdvertiserLink. + // This can only be utilized by users who have proper authorization both on + // the Google Analytics property and on the Display & Video 360 advertiser. + // Users who do not have access to the Display & Video 360 advertiser should + // instead seek to create a DisplayVideo360LinkProposal. + rpc CreateDisplayVideo360AdvertiserLink(CreateDisplayVideo360AdvertiserLinkRequest) returns (DisplayVideo360AdvertiserLink) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinks" + body: "display_video_360_advertiser_link" + }; + option (google.api.method_signature) = "parent,display_video_360_advertiser_link"; + } + + // Deletes a DisplayVideo360AdvertiserLink on a property. + rpc DeleteDisplayVideo360AdvertiserLink(DeleteDisplayVideo360AdvertiserLinkRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinks/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates a DisplayVideo360AdvertiserLink on a property. + rpc UpdateDisplayVideo360AdvertiserLink(UpdateDisplayVideo360AdvertiserLinkRequest) returns (DisplayVideo360AdvertiserLink) { + option (google.api.http) = { + patch: "/v1alpha/{display_video_360_advertiser_link.name=properties/*/displayVideo360AdvertiserLinks/*}" + body: "display_video_360_advertiser_link" + }; + option (google.api.method_signature) = "display_video_360_advertiser_link,update_mask"; + } + + // Lookup for a single DisplayVideo360AdvertiserLinkProposal. + rpc GetDisplayVideo360AdvertiserLinkProposal(GetDisplayVideo360AdvertiserLinkProposalRequest) returns (DisplayVideo360AdvertiserLinkProposal) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Lists DisplayVideo360AdvertiserLinkProposals on a property. + rpc ListDisplayVideo360AdvertiserLinkProposals(ListDisplayVideo360AdvertiserLinkProposalsRequest) returns (ListDisplayVideo360AdvertiserLinkProposalsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a DisplayVideo360AdvertiserLinkProposal. + rpc CreateDisplayVideo360AdvertiserLinkProposal(CreateDisplayVideo360AdvertiserLinkProposalRequest) returns (DisplayVideo360AdvertiserLinkProposal) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/displayVideo360AdvertiserLinkProposals" + body: "display_video_360_advertiser_link_proposal" + }; + option (google.api.method_signature) = "parent,display_video_360_advertiser_link_proposal"; + } + + // Deletes a DisplayVideo360AdvertiserLinkProposal on a property. + // This can only be used on cancelled proposals. + rpc DeleteDisplayVideo360AdvertiserLinkProposal(DeleteDisplayVideo360AdvertiserLinkProposalRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Approves a DisplayVideo360AdvertiserLinkProposal. + // The DisplayVideo360AdvertiserLinkProposal will be deleted and a new + // DisplayVideo360AdvertiserLink will be created. + rpc ApproveDisplayVideo360AdvertiserLinkProposal(ApproveDisplayVideo360AdvertiserLinkProposalRequest) returns (ApproveDisplayVideo360AdvertiserLinkProposalResponse) { + option (google.api.http) = { + post: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:approve" + body: "*" + }; + } + + // Cancels a DisplayVideo360AdvertiserLinkProposal. + // Cancelling can mean either: + // - Declining a proposal initiated from Display & Video 360 + // - Withdrawing a proposal initiated from Google Analytics + // After being cancelled, a proposal will eventually be deleted automatically. + rpc CancelDisplayVideo360AdvertiserLinkProposal(CancelDisplayVideo360AdvertiserLinkProposalRequest) returns (DisplayVideo360AdvertiserLinkProposal) { + option (google.api.http) = { + post: "/v1alpha/{name=properties/*/displayVideo360AdvertiserLinkProposals/*}:cancel" + body: "*" + }; + } + // Creates a CustomDimension. rpc CreateCustomDimension(CreateCustomDimensionRequest) returns (CustomDimension) { option (google.api.http) = { @@ -738,6 +831,23 @@ service AnalyticsAdminService { }; option (google.api.method_signature) = "name"; } + + // Returns the singleton data retention settings for this property. + rpc GetDataRetentionSettings(GetDataRetentionSettingsRequest) returns (DataRetentionSettings) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/dataRetentionSettings}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates the singleton data retention settings for this property. + rpc UpdateDataRetentionSettings(UpdateDataRetentionSettingsRequest) returns (DataRetentionSettings) { + option (google.api.http) = { + patch: "/v1alpha/{data_retention_settings.name=properties/*/dataRetentionSettings}" + body: "data_retention_settings" + }; + option (google.api.method_signature) = "data_retention_settings,update_mask"; + } } // Request message for GetAccount RPC. @@ -1410,17 +1520,6 @@ message CreateFirebaseLinkRequest { FirebaseLink firebase_link = 2 [(google.api.field_behavior) = REQUIRED]; } -// Request message for UpdateFirebaseLink RPC -message UpdateFirebaseLinkRequest { - // Required. The Firebase link to update. - FirebaseLink firebase_link = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The list of fields to be updated. Field names must be in snake case - // (e.g., "field_to_update"). Omitted fields will not be updated. To replace - // the entire entity, use one path with the string "*" to match all fields. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; -} - // Request message for DeleteFirebaseLink RPC message DeleteFirebaseLinkRequest { // Required. Format: properties/{property_id}/firebaseLinks/{firebase_link_id} @@ -1839,6 +1938,193 @@ message ListConversionEventsResponse { string next_page_token = 2; } +// Request message for GetDisplayVideo360AdvertiserLink RPC. +message GetDisplayVideo360AdvertiserLinkRequest { + // Required. The name of the DisplayVideo360AdvertiserLink to get. + // Example format: properties/1234/displayVideo360AdvertiserLink/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink" + } + ]; +} + +// Request message for ListDisplayVideo360AdvertiserLinks RPC. +message ListDisplayVideo360AdvertiserLinksRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200 (higher values will be coerced to the maximum). + int32 page_size = 2; + + // A page token, received from a previous `ListDisplayVideo360AdvertiserLinks` + // call. Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `ListDisplayVideo360AdvertiserLinks` must match the call that provided the + // page token. + string page_token = 3; +} + +// Response message for ListDisplayVideo360AdvertiserLinks RPC. +message ListDisplayVideo360AdvertiserLinksResponse { + // List of DisplayVideo360AdvertiserLinks. + repeated DisplayVideo360AdvertiserLink display_video_360_advertiser_links = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for CreateDisplayVideo360AdvertiserLink RPC. +message CreateDisplayVideo360AdvertiserLinkRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink" + } + ]; + + // Required. The DisplayVideo360AdvertiserLink to create. + DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for DeleteDisplayVideo360AdvertiserLink RPC. +message DeleteDisplayVideo360AdvertiserLinkRequest { + // Required. The name of the DisplayVideo360AdvertiserLink to delete. + // Example format: properties/1234/displayVideo360AdvertiserLinks/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink" + } + ]; +} + +// Request message for UpdateDisplayVideo360AdvertiserLink RPC. +message UpdateDisplayVideo360AdvertiserLinkRequest { + // The DisplayVideo360AdvertiserLink to update + DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; + + // Required. The list of fields to be updated. Omitted fields will not be updated. + // To replace the entire entity, use one path with the string "*" to match + // all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for GetDisplayVideo360AdvertiserLinkProposal RPC. +message GetDisplayVideo360AdvertiserLinkProposalRequest { + // Required. The name of the DisplayVideo360AdvertiserLinkProposal to get. + // Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" + } + ]; +} + +// Request message for ListDisplayVideo360AdvertiserLinkProposals RPC. +message ListDisplayVideo360AdvertiserLinkProposalsRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 50 resources will be returned. + // The maximum value is 200 (higher values will be coerced to the maximum). + int32 page_size = 2; + + // A page token, received from a previous + // `ListDisplayVideo360AdvertiserLinkProposals` call. Provide this to retrieve + // the subsequent page. + // + // When paginating, all other parameters provided to + // `ListDisplayVideo360AdvertiserLinkProposals` must match the call that + // provided the page token. + string page_token = 3; +} + +// Response message for ListDisplayVideo360AdvertiserLinkProposals RPC. +message ListDisplayVideo360AdvertiserLinkProposalsResponse { + // List of DisplayVideo360AdvertiserLinkProposals. + repeated DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposals = 1; + + // A token, which can be sent as `page_token` to retrieve the next page. + // If this field is omitted, there are no subsequent pages. + string next_page_token = 2; +} + +// Request message for CreateDisplayVideo360AdvertiserLinkProposal RPC. +message CreateDisplayVideo360AdvertiserLinkProposalRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" + } + ]; + + // Required. The DisplayVideo360AdvertiserLinkProposal to create. + DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for DeleteDisplayVideo360AdvertiserLinkProposal RPC. +message DeleteDisplayVideo360AdvertiserLinkProposalRequest { + // Required. The name of the DisplayVideo360AdvertiserLinkProposal to delete. + // Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" + } + ]; +} + +// Request message for ApproveDisplayVideo360AdvertiserLinkProposal RPC. +message ApproveDisplayVideo360AdvertiserLinkProposalRequest { + // Required. The name of the DisplayVideo360AdvertiserLinkProposal to approve. + // Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" + } + ]; +} + +// Response message for ApproveDisplayVideo360AdvertiserLinkProposal RPC. +message ApproveDisplayVideo360AdvertiserLinkProposalResponse { + // The DisplayVideo360AdvertiserLink created as a result of approving the + // proposal. + DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 1; +} + +// Request message for CancelDisplayVideo360AdvertiserLinkProposal RPC. +message CancelDisplayVideo360AdvertiserLinkProposalRequest { + // Required. The name of the DisplayVideo360AdvertiserLinkProposal to cancel. + // Example format: properties/1234/displayVideo360AdvertiserLinkProposals/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" + } + ]; +} + // Request message for CreateCustomDimension RPC. message CreateCustomDimensionRequest { // Required. Example format: properties/1234 @@ -2002,3 +2288,29 @@ message GetCustomMetricRequest { } ]; } + +// Request message for GetDataRetentionSettings RPC. +message GetDataRetentionSettingsRequest { + // Required. The name of the settings to lookup. + // Format: + // properties/{property}/dataRetentionSettings + // Example: "properties/1000/dataRetentionSettings" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/DataRetentionSettings" + } + ]; +} + +// Request message for UpdateDataRetentionSettings RPC. +message UpdateDataRetentionSettingsRequest { + // Required. The settings to update. + // The `name` field is used to identify the settings to be updated. + DataRetentionSettings data_retention_settings = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The list of fields to be updated. Field names must be in snake case + // (e.g., "field_to_update"). Omitted fields will not be updated. To replace + // the entire entity, use one path with the string "*" to match all fields. + google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto b/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto index 7b6af230..ec9d4c99 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto +++ b/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto @@ -26,27 +26,6 @@ option java_multiple_files = true; option java_outer_classname = "ResourcesProto"; option java_package = "com.google.analytics.admin.v1alpha"; -// Maximum access settings that Firebase user receive on the linked Analytics -// property. -enum MaximumUserAccess { - // Unspecified maximum user access. - MAXIMUM_USER_ACCESS_UNSPECIFIED = 0; - - // Firebase users have no access to the Analytics property. - NO_ACCESS = 1; - - // Firebase users have Read & Analyze access to the Analytics property. - READ_AND_ANALYZE = 2; - - // Firebase users have edit access to the Analytics property, but may not - // manage the Firebase link. - EDITOR_WITHOUT_LINK_MANAGEMENT = 3; - - // Firebase users have edit access to the Analytics property and may manage - // the Firebase link. - EDITOR_INCLUDING_LINK_MANAGEMENT = 4; -} - // The category selected for this property, used for industry benchmarking. enum IndustryCategory { // Industry category unspecified @@ -131,6 +110,18 @@ enum IndustryCategory { SHOPPING = 26; } +// Various levels of service for Google Analytics. +enum ServiceLevel { + // Service level not specified or invalid. + SERVICE_LEVEL_UNSPECIFIED = 0; + + // The standard version of Google Analytics. + GOOGLE_ANALYTICS_STANDARD = 1; + + // The paid, premium version of Google Analytics. + GOOGLE_ANALYTICS_360 = 2; +} + // Different kinds of actors that can make changes to Google Analytics // resources. enum ActorType { @@ -202,6 +193,9 @@ enum ChangeHistoryResourceType { // CustomMetric resource CUSTOM_METRIC = 12; + + // DataRetentionSettings resource + DATA_RETENTION_SETTINGS = 13; } // Status of the Google Signals settings (i.e., whether this feature has been @@ -233,6 +227,51 @@ enum GoogleSignalsConsent { GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1; } +// An indication of which product the user initiated a link proposal from. +enum LinkProposalInitiatingProduct { + // Unspecified product. + LINK_PROPOSAL_INITIATING_PRODUCT_UNSPECIFIED = 0; + + // This proposal was created by a user from Google Analytics. + GOOGLE_ANALYTICS = 1; + + // This proposal was created by a user from a linked product (not Google + // Analytics). + LINKED_PRODUCT = 2; +} + +// The state of a link proposal resource. +enum LinkProposalState { + // Unspecified state + LINK_PROPOSAL_STATE_UNSPECIFIED = 0; + + // This proposal is awaiting review from a Google Analytics user. This + // proposal will automatically expire after some time. + AWAITING_REVIEW_FROM_GOOGLE_ANALYTICS = 1; + + // This proposal is awaiting review from a user of a linked product. This + // proposal will automatically expire after some time. + AWAITING_REVIEW_FROM_LINKED_PRODUCT = 2; + + // This proposal has been withdrawn by an admin on the initiating product. + // This proposal will be automatically deleted after some time. + WITHDRAWN = 3; + + // This proposal has been declined by an admin on the receiving product. This + // proposal will be automatically deleted after some time. + DECLINED = 4; + + // This proposal expired due to lack of response from an admin on the + // receiving product. This proposal will be automatically deleted after some + // time. + EXPIRED = 5; + + // This proposal has become obsolete because a link was directly created to + // the same external product resource that this proposal specifies. This + // proposal will be automatically deleted after some time. + OBSOLETE = 6; +} + // A resource message representing a Google Analytics account. message Account { option (google.api.resource) = { @@ -314,6 +353,9 @@ message Property { // Examples: "USD", "EUR", "JPY" string currency_code = 8; + // Output only. The Google Analytics service level that applies to this property. + ServiceLevel service_level = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. If set, the time at which this property was trashed. If not set, then this // property is not currently in the trash can. google.protobuf.Timestamp delete_time = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -563,10 +605,6 @@ message FirebaseLink { // Output only. Time when this FirebaseLink was originally created. google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Maximum user access to the GA4 property allowed to admins of - // the linked Firebase project. - MaximumUserAccess maximum_user_access = 4; } // Read-only resource with the tag for sending data from a website to a @@ -610,15 +648,15 @@ message GoogleAdsLink { // If this field is not set on create/update, it will be defaulted to true. google.protobuf.BoolValue ads_personalization_enabled = 5; - // Output only. Email address of the user that created the link. - // An empty string will be returned if the email address can't be retrieved. - string email_address = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Time when this link was originally created. google.protobuf.Timestamp create_time = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Time when this link was last updated. google.protobuf.Timestamp update_time = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Email address of the user that created the link. + // An empty string will be returned if the email address can't be retrieved. + string creator_email_address = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A resource message representing data sharing settings of a Google Analytics @@ -774,6 +812,14 @@ message ChangeHistoryChange { // A snapshot of a GoogleSignalsSettings resource in change history. GoogleSignalsSettings google_signals_settings = 8; + // A snapshot of a DisplayVideo360AdvertiserLink resource in change + // history. + DisplayVideo360AdvertiserLink display_video_360_advertiser_link = 9; + + // A snapshot of a DisplayVideo360AdvertiserLinkProposal resource in + // change history. + DisplayVideo360AdvertiserLinkProposal display_video_360_advertiser_link_proposal = 10; + // A snapshot of a ConversionEvent resource in change history. ConversionEvent conversion_event = 11; @@ -785,6 +831,9 @@ message ChangeHistoryChange { // A snapshot of a CustomMetric resource in change history. CustomMetric custom_metric = 14; + + // A snapshot of a data retention settings resource in change history. + DataRetentionSettings data_retention_settings = 15; } } @@ -803,6 +852,106 @@ message ChangeHistoryChange { ChangeHistoryResource resource_after_change = 4; } +// A link between a GA4 property and a Display & Video 360 advertiser. +message DisplayVideo360AdvertiserLink { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink" + pattern: "properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}" + }; + + // Output only. The resource name for this DisplayVideo360AdvertiserLink resource. + // Format: properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId} + // + // Note: linkId is not the Display & Video 360 Advertiser ID + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The Display & Video 360 Advertiser's advertiser ID. + string advertiser_id = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The display name of the Display & Video 360 Advertiser. + string advertiser_display_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Enables personalized advertising features with this integration. + // If this field is not set on create/update, it will be defaulted to true. + google.protobuf.BoolValue ads_personalization_enabled = 4; + + // Immutable. Enables the import of campaign data from Display & Video 360 into the GA4 + // property. After link creation, this can only be updated from the Display & + // Video 360 product. + // If this field is not set on create, it will be defaulted to true. + google.protobuf.BoolValue campaign_data_sharing_enabled = 5 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Enables the import of cost data from Display & Video 360 into the GA4 + // property. This can only be enabled if campaign_data_import_enabled is + // enabled. After link creation, this can only be updated from the Display & + // Video 360 product. + // If this field is not set on create, it will be defaulted to true. + google.protobuf.BoolValue cost_data_sharing_enabled = 6 [(google.api.field_behavior) = IMMUTABLE]; +} + +// A proposal for a link between an GA4 property and a Display & Video 360 +// advertiser. +// +// A proposal is converted to a DisplayVideo360AdvertiserLink once approved. +// Google Analytics admins approve inbound proposals while Display & Video 360 +// admins approve outbound proposals. +message DisplayVideo360AdvertiserLinkProposal { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" + pattern: "properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}" + }; + + // Output only. The resource name for this DisplayVideo360AdvertiserLinkProposal resource. + // Format: + // properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId} + // + // Note: proposalId is not the Display & Video 360 Advertiser ID + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The Display & Video 360 Advertiser's advertiser ID. + string advertiser_id = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. The status information for this link proposal. + LinkProposalStatusDetails link_proposal_status_details = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The display name of the Display & Video Advertiser. + // Only populated for proposals that originated from Display & Video 360. + string advertiser_display_name = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Input only. On a proposal being sent to Display & Video 360, this field must be set to + // the email address of an admin on the target advertiser. This is used to + // verify that the Google Analytics admin is aware of at least one admin on + // the Display & Video 360 Advertiser. This does not restrict approval of the + // proposal to a single user. Any admin on the Display & Video 360 Advertiser + // may approve the proposal. + string validation_email = 5 [(google.api.field_behavior) = INPUT_ONLY]; + + // Immutable. Enables personalized advertising features with this integration. + // If this field is not set on create, it will be defaulted to true. + google.protobuf.BoolValue ads_personalization_enabled = 6 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Enables the import of campaign data from Display & Video 360. + // If this field is not set on create, it will be defaulted to true. + google.protobuf.BoolValue campaign_data_sharing_enabled = 7 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. Enables the import of cost data from Display & Video 360. + // This can only be enabled if campaign_data_import_enabled is enabled. + // If this field is not set on create, it will be defaulted to true. + google.protobuf.BoolValue cost_data_sharing_enabled = 8 [(google.api.field_behavior) = IMMUTABLE]; +} + +// Status information for a link proposal. +message LinkProposalStatusDetails { + // Output only. The source of this proposal. + LinkProposalInitiatingProduct link_proposal_initiating_product = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The email address of the user that proposed this linkage. + string requestor_email = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The state of this proposal. + LinkProposalState link_proposal_state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // A conversion event in a Google Analytics property. message ConversionEvent { option (google.api.resource) = { @@ -822,7 +971,15 @@ message ConversionEvent { google.protobuf.Timestamp create_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. If set, this event can currently be deleted via DeleteConversionEvent. - bool is_deletable = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + bool deletable = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. If set to true, this conversion event refers to a custom event. If set to + // false, this conversion event refers to a default event in GA. Default + // events typically have special meaning in GA. Default events are usually + // created for you by the GA system, but in some cases can be created by + // property admins. Custom events count towards the maximum number of + // custom conversion events that may be created per property. + bool custom = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Settings values for Google Signals. This is a singleton resource. @@ -986,11 +1143,8 @@ message CustomMetric { // Max length of 150 characters. string description = 4 [(google.api.field_behavior) = OPTIONAL]; - // Required. Immutable. The type for the custom metric's value. - MeasurementUnit measurement_unit = 5 [ - (google.api.field_behavior) = REQUIRED, - (google.api.field_behavior) = IMMUTABLE - ]; + // Required. The type for the custom metric's value. + MeasurementUnit measurement_unit = 5 [(google.api.field_behavior) = REQUIRED]; // Required. Immutable. The scope of this custom metric. MetricScope scope = 6 [ @@ -998,3 +1152,46 @@ message CustomMetric { (google.api.field_behavior) = IMMUTABLE ]; } + +// Settings values for data retention. This is a singleton resource. +message DataRetentionSettings { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/DataRetentionSettings" + pattern: "properties/{property}/dataRetentionSettings" + }; + + // Valid values for the data retention duration. + enum RetentionDuration { + // Data retention time duration is not specified. + RETENTION_DURATION_UNSPECIFIED = 0; + + // The data retention time duration is 2 months. + TWO_MONTHS = 1; + + // The data retention time duration is 14 months. + FOURTEEN_MONTHS = 3; + + // The data retention time duration is 26 months. + // Available to 360 properties only. + TWENTY_SIX_MONTHS = 4; + + // The data retention time duration is 38 months. + // Available to 360 properties only. + THIRTY_EIGHT_MONTHS = 5; + + // The data retention time duration is 50 months. + // Available to 360 properties only. + FIFTY_MONTHS = 6; + } + + // Output only. Resource name for this DataRetentionSetting resource. + // Format: properties/{property}/dataRetentionSettings + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // The length of time that event-level data is retained. + RetentionDuration event_data_retention = 2; + + // If true, reset the retention period for the user identifier with every + // event from that user. + bool reset_user_data_on_new_activity = 3; +} From d7899d392a4d45e1ca484fbb6e2a37a25180b0c5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 25 Oct 2021 19:51:46 +0200 Subject: [PATCH 04/23] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.0 (#306) 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.2.0 * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- google-analytics-admin-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-analytics-admin-bom/pom.xml b/google-analytics-admin-bom/pom.xml index b8ec4035..6752bb47 100644 --- a/google-analytics-admin-bom/pom.xml +++ b/google-analytics-admin-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.1.0 + 1.2.0 Google Analytics Admin BOM diff --git a/pom.xml b/pom.xml index 1eb1e1ae..41ed07f2 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 3de05e56d905d74ae7468aed7e66e24c685c5df6 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 17:52:46 +0000 Subject: [PATCH 05/23] chore(ruby): Re-enable bigquery-storage-v1 generation, which also required updating protobuf from 3.15.3 to 3.18.1 for codegen (#299) - [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 feat: add GetDisplayVideo360AdvertiserLink, ListDisplayVideo360AdvertiserLinks, CreateDisplayVideo360AdvertiserLink, DeleteDisplayVideo360AdvertiserLink methods to the API feat: add GetDisplayVideo360AdvertiserLinkProposal, ListDisplayVideo360AdvertiserLinkProposals,DeleteDisplayVideo360AdvertiserLinkProposal, CancelDisplayVideo360AdvertiserLinkProposal methods to the API feat: add LinkProposalStatusDetails, DisplayVideo360AdvertiserLinkProposal, DisplayVideo360AdvertiserLink LinkProposalState, LinkProposalInitiatingProduct, ServiceLevel, DataRetentionSettings types to the API feat: add service_level field to Property type feat: add display_video_360_advertiser_link, display_video_360_advertiser_link_proposal, data_retention_settings fields to ChangeHistoryChange.resource oneof field. feat: add custom output only field to ConversionEvent type feat: change measurement_unit field to mutable in CustomMetric type fix: remove UpdateFirebaseLink method from the API fix: rename is_deletable field of ConversionEvent type to deletable fix: rename email_address field of GoogleAdsLink type to creator_email_address fix: remove maximum_user_access field from FirebaseLink type fix: remove MaximumUserAccess enum from the API --- .../analytics/admin/v1alpha/Account.java | 12 +++++------ .../admin/v1alpha/AccountSummary.java | 12 +++++------ .../admin/v1alpha/AndroidAppDataStream.java | 16 +++++++-------- ...Video360AdvertiserLinkProposalRequest.java | 4 ++-- .../ArchiveCustomDimensionRequest.java | 4 ++-- .../v1alpha/ArchiveCustomMetricRequest.java | 4 ++-- .../admin/v1alpha/AuditUserLink.java | 8 ++++---- .../admin/v1alpha/AuditUserLinksRequest.java | 8 ++++---- .../admin/v1alpha/AuditUserLinksResponse.java | 4 ++-- .../v1alpha/BatchCreateUserLinksRequest.java | 4 ++-- .../v1alpha/BatchDeleteUserLinksRequest.java | 4 ++-- .../v1alpha/BatchGetUserLinksRequest.java | 4 ++-- .../v1alpha/BatchUpdateUserLinksRequest.java | 4 ++-- ...Video360AdvertiserLinkProposalRequest.java | 4 ++-- .../admin/v1alpha/ChangeHistoryChange.java | 4 ++-- .../admin/v1alpha/ChangeHistoryEvent.java | 8 ++++---- .../admin/v1alpha/ConversionEvent.java | 8 ++++---- .../v1alpha/CreateConversionEventRequest.java | 4 ++-- .../v1alpha/CreateCustomDimensionRequest.java | 4 ++-- .../v1alpha/CreateCustomMetricRequest.java | 4 ++-- ...Video360AdvertiserLinkProposalRequest.java | 4 ++-- ...eDisplayVideo360AdvertiserLinkRequest.java | 4 ++-- .../v1alpha/CreateFirebaseLinkRequest.java | 4 ++-- .../v1alpha/CreateGoogleAdsLinkRequest.java | 4 ++-- ...reateMeasurementProtocolSecretRequest.java | 4 ++-- .../admin/v1alpha/CreateUserLinkRequest.java | 4 ++-- .../v1alpha/CreateWebDataStreamRequest.java | 4 ++-- .../admin/v1alpha/CustomDimension.java | 16 +++++++-------- .../analytics/admin/v1alpha/CustomMetric.java | 16 +++++++-------- .../admin/v1alpha/DataRetentionSettings.java | 4 ++-- .../admin/v1alpha/DataSharingSettings.java | 4 ++-- .../admin/v1alpha/DeleteAccountRequest.java | 4 ++-- .../DeleteAndroidAppDataStreamRequest.java | 4 ++-- .../v1alpha/DeleteConversionEventRequest.java | 4 ++-- ...Video360AdvertiserLinkProposalRequest.java | 4 ++-- ...eDisplayVideo360AdvertiserLinkRequest.java | 4 ++-- .../v1alpha/DeleteFirebaseLinkRequest.java | 4 ++-- .../v1alpha/DeleteGoogleAdsLinkRequest.java | 4 ++-- .../DeleteIosAppDataStreamRequest.java | 4 ++-- ...eleteMeasurementProtocolSecretRequest.java | 4 ++-- .../admin/v1alpha/DeletePropertyRequest.java | 4 ++-- .../admin/v1alpha/DeleteUserLinkRequest.java | 4 ++-- .../v1alpha/DeleteWebDataStreamRequest.java | 4 ++-- .../DisplayVideo360AdvertiserLink.java | 12 +++++------ ...DisplayVideo360AdvertiserLinkProposal.java | 16 +++++++-------- .../v1alpha/EnhancedMeasurementSettings.java | 12 +++++------ .../analytics/admin/v1alpha/FirebaseLink.java | 8 ++++---- .../admin/v1alpha/GetAccountRequest.java | 4 ++-- .../GetAndroidAppDataStreamRequest.java | 4 ++-- .../v1alpha/GetConversionEventRequest.java | 4 ++-- .../v1alpha/GetCustomDimensionRequest.java | 4 ++-- .../admin/v1alpha/GetCustomMetricRequest.java | 4 ++-- .../GetDataRetentionSettingsRequest.java | 4 ++-- .../GetDataSharingSettingsRequest.java | 4 ++-- ...Video360AdvertiserLinkProposalRequest.java | 4 ++-- ...tDisplayVideo360AdvertiserLinkRequest.java | 4 ++-- ...GetEnhancedMeasurementSettingsRequest.java | 4 ++-- .../v1alpha/GetGlobalSiteTagRequest.java | 4 ++-- .../GetGoogleSignalsSettingsRequest.java | 4 ++-- .../v1alpha/GetIosAppDataStreamRequest.java | 4 ++-- .../GetMeasurementProtocolSecretRequest.java | 4 ++-- .../admin/v1alpha/GetPropertyRequest.java | 4 ++-- .../admin/v1alpha/GetUserLinkRequest.java | 4 ++-- .../v1alpha/GetWebDataStreamRequest.java | 4 ++-- .../admin/v1alpha/GlobalSiteTag.java | 8 ++++---- .../admin/v1alpha/GoogleAdsLink.java | 12 +++++------ .../admin/v1alpha/GoogleSignalsSettings.java | 4 ++-- .../admin/v1alpha/IosAppDataStream.java | 16 +++++++-------- .../v1alpha/LinkProposalStatusDetails.java | 4 ++-- .../v1alpha/ListAccountSummariesRequest.java | 4 ++-- .../v1alpha/ListAccountSummariesResponse.java | 4 ++-- .../admin/v1alpha/ListAccountsRequest.java | 4 ++-- .../admin/v1alpha/ListAccountsResponse.java | 4 ++-- .../ListAndroidAppDataStreamsRequest.java | 8 ++++---- .../ListAndroidAppDataStreamsResponse.java | 4 ++-- .../v1alpha/ListConversionEventsRequest.java | 8 ++++---- .../v1alpha/ListConversionEventsResponse.java | 4 ++-- .../v1alpha/ListCustomDimensionsRequest.java | 8 ++++---- .../v1alpha/ListCustomDimensionsResponse.java | 4 ++-- .../v1alpha/ListCustomMetricsRequest.java | 8 ++++---- .../v1alpha/ListCustomMetricsResponse.java | 4 ++-- ...ideo360AdvertiserLinkProposalsRequest.java | 8 ++++---- ...deo360AdvertiserLinkProposalsResponse.java | 4 ++-- ...DisplayVideo360AdvertiserLinksRequest.java | 8 ++++---- ...isplayVideo360AdvertiserLinksResponse.java | 4 ++-- .../v1alpha/ListFirebaseLinksRequest.java | 8 ++++---- .../v1alpha/ListFirebaseLinksResponse.java | 4 ++-- .../v1alpha/ListGoogleAdsLinksRequest.java | 8 ++++---- .../v1alpha/ListGoogleAdsLinksResponse.java | 4 ++-- .../v1alpha/ListIosAppDataStreamsRequest.java | 8 ++++---- .../ListIosAppDataStreamsResponse.java | 4 ++-- ...ListMeasurementProtocolSecretsRequest.java | 8 ++++---- ...istMeasurementProtocolSecretsResponse.java | 4 ++-- .../admin/v1alpha/ListPropertiesRequest.java | 8 ++++---- .../admin/v1alpha/ListPropertiesResponse.java | 4 ++-- .../admin/v1alpha/ListUserLinksRequest.java | 8 ++++---- .../admin/v1alpha/ListUserLinksResponse.java | 4 ++-- .../v1alpha/ListWebDataStreamsRequest.java | 8 ++++---- .../v1alpha/ListWebDataStreamsResponse.java | 4 ++-- .../v1alpha/MeasurementProtocolSecret.java | 12 +++++------ .../analytics/admin/v1alpha/Property.java | 20 +++++++++---------- .../admin/v1alpha/PropertySummary.java | 8 ++++---- .../ProvisionAccountTicketRequest.java | 4 ++-- .../ProvisionAccountTicketResponse.java | 4 ++-- .../SearchChangeHistoryEventsRequest.java | 12 +++++------ .../SearchChangeHistoryEventsResponse.java | 4 ++-- .../analytics/admin/v1alpha/UserLink.java | 8 ++++---- .../admin/v1alpha/WebDataStream.java | 20 +++++++++---------- 108 files changed, 332 insertions(+), 332 deletions(-) diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java index 4d35edc7..3d275c7a 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java @@ -444,7 +444,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 (createTime_ != null) { @@ -453,10 +453,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(3, getUpdateTime()); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, displayName_); } - if (!getRegionCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, regionCode_); } if (deleted_ != false) { @@ -471,7 +471,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 (createTime_ != null) { @@ -480,10 +480,10 @@ public int getSerializedSize() { if (updateTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getUpdateTime()); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, displayName_); } - if (!getRegionCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(regionCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, regionCode_); } if (deleted_ != false) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java index 155ab88b..1b1f4dfb 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java @@ -386,13 +386,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getAccountBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, account_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); } for (int i = 0; i < propertySummaries_.size(); i++) { @@ -407,13 +407,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getAccountBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, account_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } for (int i = 0; i < propertySummaries_.size(); i++) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStream.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStream.java index e6f5944f..fec64428 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStream.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStream.java @@ -483,10 +483,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 (!getFirebaseAppIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, firebaseAppId_); } if (createTime_ != null) { @@ -495,10 +495,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(4, getUpdateTime()); } - if (!getPackageNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, packageName_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, displayName_); } unknownFields.writeTo(output); @@ -510,10 +510,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 (!getFirebaseAppIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, firebaseAppId_); } if (createTime_ != null) { @@ -522,10 +522,10 @@ public int getSerializedSize() { if (updateTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); } - if (!getPackageNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(packageName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, packageName_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, displayName_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.java index 843a4385..67c2a9de 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ApproveDisplayVideo360AdvertiserLinkProposalRequest.java @@ -185,7 +185,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); @@ -197,7 +197,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequest.java index 1712f6fb..12511b8f 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequest.java @@ -180,7 +180,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); @@ -192,7 +192,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequest.java index 338b24b7..94869b9d 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequest.java @@ -180,7 +180,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); @@ -192,7 +192,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLink.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLink.java index c321b030..0beb0db5 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLink.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLink.java @@ -402,10 +402,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 (!getEmailAddressBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(emailAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, emailAddress_); } for (int i = 0; i < directRoles_.size(); i++) { @@ -423,10 +423,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 (!getEmailAddressBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(emailAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, emailAddress_); } { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequest.java index 300f1231..c11a6c3a 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksRequest.java @@ -267,13 +267,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -285,13 +285,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponse.java index cda69e47..152515f4 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponse.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AuditUserLinksResponse.java @@ -272,7 +272,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < userLinks_.size(); i++) { output.writeMessage(1, userLinks_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -287,7 +287,7 @@ public int getSerializedSize() { for (int i = 0; i < userLinks_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, userLinks_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequest.java index 9e8c8a76..a00d78bc 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchCreateUserLinksRequest.java @@ -314,7 +314,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (notifyNewUsers_ != false) { @@ -332,7 +332,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (notifyNewUsers_ != false) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequest.java index 031c7c2b..cefb0175 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchDeleteUserLinksRequest.java @@ -289,7 +289,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } for (int i = 0; i < requests_.size(); i++) { @@ -304,7 +304,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } for (int i = 0; i < requests_.size(); i++) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequest.java index 230e22eb..a3ef4df2 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchGetUserLinksRequest.java @@ -276,7 +276,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } for (int i = 0; i < names_.size(); i++) { @@ -291,7 +291,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequest.java index 25aeaef7..b2b579cf 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequest.java @@ -289,7 +289,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } for (int i = 0; i < requests_.size(); i++) { @@ -304,7 +304,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } for (int i = 0; i < requests_.size(); i++) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.java index af467a9a..231a70d9 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CancelDisplayVideo360AdvertiserLinkProposalRequest.java @@ -185,7 +185,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); @@ -197,7 +197,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java index bdc74a42..296252e0 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java @@ -6373,7 +6373,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getResourceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); } if (action_ @@ -6395,7 +6395,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getResourceBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(resource_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_); } if (action_ diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java index f8ba7c9e..a5086993 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java @@ -461,7 +461,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); } if (changeTime_ != null) { @@ -471,7 +471,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io != com.google.analytics.admin.v1alpha.ActorType.ACTOR_TYPE_UNSPECIFIED.getNumber()) { output.writeEnum(3, actorType_); } - if (!getUserActorEmailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userActorEmail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, userActorEmail_); } if (changesFiltered_ != false) { @@ -489,7 +489,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(id_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); } if (changeTime_ != null) { @@ -499,7 +499,7 @@ public int getSerializedSize() { != com.google.analytics.admin.v1alpha.ActorType.ACTOR_TYPE_UNSPECIFIED.getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, actorType_); } - if (!getUserActorEmailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(userActorEmail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, userActorEmail_); } if (changesFiltered_ != false) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java index 7e3b68f7..355d7241 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java @@ -350,10 +350,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 (!getEventNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, eventName_); } if (createTime_ != null) { @@ -374,10 +374,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 (!getEventNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(eventName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, eventName_); } if (createTime_ != null) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequest.java index efc7e877..1963dc83 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequest.java @@ -254,7 +254,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (conversionEvent_ != null) { output.writeMessage(1, getConversionEvent()); } - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); } unknownFields.writeTo(output); @@ -269,7 +269,7 @@ public int getSerializedSize() { if (conversionEvent_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConversionEvent()); } - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequest.java index 09b2aba6..3ea4d680 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequest.java @@ -249,7 +249,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (customDimension_ != null) { @@ -264,7 +264,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (customDimension_ != null) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequest.java index b6032c7d..734c241e 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequest.java @@ -248,7 +248,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (customMetric_ != null) { @@ -263,7 +263,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (customMetric_ != null) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.java index 3ade309e..fbe33191 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkProposalRequest.java @@ -260,7 +260,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (displayVideo360AdvertiserLinkProposal_ != null) { @@ -275,7 +275,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (displayVideo360AdvertiserLinkProposal_ != null) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequest.java index 4271dcd4..336e4762 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateDisplayVideo360AdvertiserLinkRequest.java @@ -256,7 +256,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (displayVideo360AdvertiserLink_ != null) { @@ -271,7 +271,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (displayVideo360AdvertiserLink_ != null) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequest.java index c1c77508..9df54351 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequest.java @@ -250,7 +250,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (firebaseLink_ != null) { @@ -265,7 +265,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (firebaseLink_ != null) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequest.java index 1e6f605b..8a8132eb 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequest.java @@ -248,7 +248,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (googleAdsLink_ != null) { @@ -263,7 +263,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (googleAdsLink_ != null) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequest.java index 3cc5c21c..cce3fcdf 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequest.java @@ -261,7 +261,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (measurementProtocolSecret_ != null) { @@ -276,7 +276,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (measurementProtocolSecret_ != null) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequest.java index ddf92783..60d21086 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequest.java @@ -278,7 +278,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (notifyNewUser_ != false) { @@ -296,7 +296,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (notifyNewUser_ != false) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateWebDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateWebDataStreamRequest.java index 7f2d9429..a27dd19d 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateWebDataStreamRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateWebDataStreamRequest.java @@ -253,7 +253,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (webDataStream_ != null) { output.writeMessage(1, getWebDataStream()); } - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); } unknownFields.writeTo(output); @@ -268,7 +268,7 @@ public int getSerializedSize() { if (webDataStream_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getWebDataStream()); } - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java index 0ed322a0..0a8b143c 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java @@ -605,16 +605,16 @@ 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 (!getParameterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameterName_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } if (scope_ @@ -635,16 +635,16 @@ 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 (!getParameterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameterName_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } if (scope_ diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java index 979c8191..5d1e4a9d 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java @@ -941,16 +941,16 @@ 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 (!getParameterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameterName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameterName_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); } if (measurementUnit_ @@ -973,16 +973,16 @@ 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 (!getParameterNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parameterName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameterName_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); } - if (!getDescriptionBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); } if (measurementUnit_ diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java index 34919b69..8022ad05 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java @@ -486,7 +486,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 (eventDataRetention_ @@ -507,7 +507,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 (eventDataRetention_ diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java index 601c2019..1cd7fad0 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java @@ -298,7 +298,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 (sharingWithGoogleSupportEnabled_ != false) { @@ -325,7 +325,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 (sharingWithGoogleSupportEnabled_ != false) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequest.java index 8a2f0c08..a4d78652 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAccountRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAndroidAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAndroidAppDataStreamRequest.java index 7b355725..694def81 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAndroidAppDataStreamRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteAndroidAppDataStreamRequest.java @@ -183,7 +183,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); @@ -195,7 +195,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequest.java index 1ba58594..6bade7e9 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.java index d8d3e12f..6f410e2e 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkProposalRequest.java @@ -185,7 +185,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); @@ -197,7 +197,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.java index 103167f9..bdc7210e 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteDisplayVideo360AdvertiserLinkRequest.java @@ -183,7 +183,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); @@ -195,7 +195,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequest.java index 0f70697a..4fa7018f 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteFirebaseLinkRequest.java @@ -180,7 +180,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); @@ -192,7 +192,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequest.java index 67dd164b..aa3ea6b0 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteGoogleAdsLinkRequest.java @@ -178,7 +178,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -190,7 +190,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteIosAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteIosAppDataStreamRequest.java index d18ed101..6e970781 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteIosAppDataStreamRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteIosAppDataStreamRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java index a2974ec9..4068c918 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java @@ -189,7 +189,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); @@ -201,7 +201,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequest.java index 689f8790..095a586c 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeletePropertyRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequest.java index 3fc35a45..0bbcd00f 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteUserLinkRequest.java @@ -178,7 +178,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -190,7 +190,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteWebDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteWebDataStreamRequest.java index adab8f59..674dea5f 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteWebDataStreamRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteWebDataStreamRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java index 44017ad3..d5319033 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java @@ -517,13 +517,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getAdvertiserIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, advertiserId_); } - if (!getAdvertiserDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserDisplayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, advertiserDisplayName_); } if (adsPersonalizationEnabled_ != null) { @@ -544,13 +544,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getAdvertiserIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, advertiserId_); } - if (!getAdvertiserDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserDisplayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, advertiserDisplayName_); } if (adsPersonalizationEnabled_ != null) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java index abfe4880..9074737a 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java @@ -662,19 +662,19 @@ 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 (!getAdvertiserIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, advertiserId_); } if (linkProposalStatusDetails_ != null) { output.writeMessage(3, getLinkProposalStatusDetails()); } - if (!getAdvertiserDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserDisplayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, advertiserDisplayName_); } - if (!getValidationEmailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validationEmail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, validationEmail_); } if (adsPersonalizationEnabled_ != null) { @@ -695,10 +695,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 (!getAdvertiserIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, advertiserId_); } if (linkProposalStatusDetails_ != null) { @@ -706,10 +706,10 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 3, getLinkProposalStatusDetails()); } - if (!getAdvertiserDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(advertiserDisplayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, advertiserDisplayName_); } - if (!getValidationEmailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validationEmail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, validationEmail_); } if (adsPersonalizationEnabled_ != null) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettings.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettings.java index 8209b15d..7e3e7c69 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettings.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettings.java @@ -516,7 +516,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 (streamEnabled_ != false) { @@ -546,10 +546,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageChangesEnabled_ != false) { output.writeBool(13, pageChangesEnabled_); } - if (!getSearchQueryParameterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(searchQueryParameter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 16, searchQueryParameter_); } - if (!getUriQueryParameterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uriQueryParameter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 17, uriQueryParameter_); } unknownFields.writeTo(output); @@ -561,7 +561,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 (streamEnabled_ != false) { @@ -591,10 +591,10 @@ public int getSerializedSize() { if (pageChangesEnabled_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(13, pageChangesEnabled_); } - if (!getSearchQueryParameterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(searchQueryParameter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(16, searchQueryParameter_); } - if (!getUriQueryParameterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uriQueryParameter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(17, uriQueryParameter_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java index 71ed7297..e5d1e1fa 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java @@ -305,10 +305,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 (!getProjectBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, project_); } if (createTime_ != null) { @@ -323,10 +323,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 (!getProjectBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(project_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, project_); } if (createTime_ != null) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequest.java index e4300cbf..7925a515 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAccountRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAndroidAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAndroidAppDataStreamRequest.java index 3390180e..ec3f61f0 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAndroidAppDataStreamRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetAndroidAppDataStreamRequest.java @@ -183,7 +183,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); @@ -195,7 +195,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequest.java index 99879137..95cad9ee 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequest.java index ccf8ee47..0d0a6bc2 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequest.java @@ -180,7 +180,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); @@ -192,7 +192,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequest.java index 0f0caa66..87902d28 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequest.java @@ -180,7 +180,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); @@ -192,7 +192,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequest.java index 49e19839..e0d4fd7f 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataRetentionSettingsRequest.java @@ -185,7 +185,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); @@ -197,7 +197,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequest.java index e495c763..1166bac5 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDataSharingSettingsRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.java index f7313efd..7639e5a3 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkProposalRequest.java @@ -185,7 +185,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); @@ -197,7 +197,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequest.java index 63446e84..67840876 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetDisplayVideo360AdvertiserLinkRequest.java @@ -183,7 +183,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); @@ -195,7 +195,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequest.java index a0076e71..a20dfe14 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetEnhancedMeasurementSettingsRequest.java @@ -186,7 +186,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); @@ -198,7 +198,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequest.java index ce8c9e08..2fe37571 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGlobalSiteTagRequest.java @@ -184,7 +184,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -196,7 +196,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequest.java index e0993ed5..53cc5cfb 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequest.java @@ -181,7 +181,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); @@ -193,7 +193,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetIosAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetIosAppDataStreamRequest.java index 4319c20c..e9faf3d4 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetIosAppDataStreamRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetIosAppDataStreamRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java index 474324a2..8e653310 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java @@ -188,7 +188,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -200,7 +200,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequest.java index a69a9ca1..39edb44e 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetPropertyRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequest.java index de0fd772..cca6d927 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserLinkRequest.java @@ -178,7 +178,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -190,7 +190,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetWebDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetWebDataStreamRequest.java index 5399b325..dde7242d 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetWebDataStreamRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetWebDataStreamRequest.java @@ -182,7 +182,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } unknownFields.writeTo(output); @@ -194,7 +194,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-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java index f6996ab6..0d1b6edf 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java @@ -236,10 +236,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 (!getSnippetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snippet_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, snippet_); } unknownFields.writeTo(output); @@ -251,10 +251,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 (!getSnippetBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(snippet_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, snippet_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java index 2b04a7a7..dc6b0eee 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java @@ -515,10 +515,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 (!getCustomerIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, customerId_); } if (canManageClients_ != false) { @@ -533,7 +533,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(8, getUpdateTime()); } - if (!getCreatorEmailAddressBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creatorEmailAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, creatorEmailAddress_); } unknownFields.writeTo(output); @@ -545,10 +545,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 (!getCustomerIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(customerId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, customerId_); } if (canManageClients_ != false) { @@ -565,7 +565,7 @@ public int getSerializedSize() { if (updateTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); } - if (!getCreatorEmailAddressBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(creatorEmailAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, creatorEmailAddress_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettings.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettings.java index fa7ef77b..86901c6a 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettings.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettings.java @@ -274,7 +274,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } if (state_ @@ -297,7 +297,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } if (state_ diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStream.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStream.java index db3235df..9196ced9 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStream.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStream.java @@ -487,10 +487,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 (!getFirebaseAppIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, firebaseAppId_); } if (createTime_ != null) { @@ -499,10 +499,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(4, getUpdateTime()); } - if (!getBundleIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bundleId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, bundleId_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, displayName_); } unknownFields.writeTo(output); @@ -514,10 +514,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 (!getFirebaseAppIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, firebaseAppId_); } if (createTime_ != null) { @@ -526,10 +526,10 @@ public int getSerializedSize() { if (updateTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); } - if (!getBundleIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(bundleId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, bundleId_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, displayName_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetails.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetails.java index 7fb9ed65..18546148 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetails.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/LinkProposalStatusDetails.java @@ -282,7 +282,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(1, linkProposalInitiatingProduct_); } - if (!getRequestorEmailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestorEmail_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, requestorEmail_); } if (linkProposalState_ @@ -306,7 +306,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, linkProposalInitiatingProduct_); } - if (!getRequestorEmailBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(requestorEmail_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, requestorEmail_); } if (linkProposalState_ diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequest.java index 3d135d36..36fbd9e4 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequest.java @@ -209,7 +209,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(1, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); } unknownFields.writeTo(output); @@ -224,7 +224,7 @@ public int getSerializedSize() { if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponse.java index a509d951..cce448df 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponse.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesResponse.java @@ -268,7 +268,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < accountSummaries_.size(); i++) { output.writeMessage(1, accountSummaries_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -283,7 +283,7 @@ public int getSerializedSize() { for (int i = 0; i < accountSummaries_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, accountSummaries_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java index 28442dad..809e5272 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java @@ -234,7 +234,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(1, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, pageToken_); } if (showDeleted_ != false) { @@ -252,7 +252,7 @@ public int getSerializedSize() { if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, pageToken_); } if (showDeleted_ != false) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponse.java index a71548d4..18fcafbf 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponse.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsResponse.java @@ -264,7 +264,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < accounts_.size(); i++) { output.writeMessage(1, accounts_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -279,7 +279,7 @@ public int getSerializedSize() { for (int i = 0; i < accounts_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, accounts_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsRequest.java index 36aae9a9..7a831f1a 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsRequest.java @@ -273,13 +273,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -291,13 +291,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsResponse.java index 517384ef..496fa13e 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsResponse.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAndroidAppDataStreamsResponse.java @@ -282,7 +282,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < androidAppDataStreams_.size(); i++) { output.writeMessage(1, androidAppDataStreams_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -299,7 +299,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, androidAppDataStreams_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java index 9c7f1fae..b1fad686 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java @@ -268,13 +268,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -286,13 +286,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponse.java index 4d6e5978..f79c43f2 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponse.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponse.java @@ -268,7 +268,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < conversionEvents_.size(); i++) { output.writeMessage(1, conversionEvents_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -283,7 +283,7 @@ public int getSerializedSize() { for (int i = 0; i < conversionEvents_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, conversionEvents_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java index 4403e926..d43ae81a 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java @@ -266,13 +266,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -284,13 +284,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponse.java index e2c154f1..a311bd1b 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponse.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponse.java @@ -268,7 +268,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < customDimensions_.size(); i++) { output.writeMessage(1, customDimensions_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -283,7 +283,7 @@ public int getSerializedSize() { for (int i = 0; i < customDimensions_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, customDimensions_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequest.java index 5bf9f9dc..e2f267c4 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequest.java @@ -266,13 +266,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -284,13 +284,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponse.java index 896e4677..ad850f29 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponse.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponse.java @@ -266,7 +266,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < customMetrics_.size(); i++) { output.writeMessage(1, customMetrics_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -281,7 +281,7 @@ public int getSerializedSize() { for (int i = 0; i < customMetrics_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, customMetrics_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.java index d2757236..7cfe276e 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsRequest.java @@ -275,13 +275,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -293,13 +293,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.java index a9248af3..a86bc06e 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinkProposalsResponse.java @@ -290,7 +290,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < displayVideo360AdvertiserLinkProposals_.size(); i++) { output.writeMessage(1, displayVideo360AdvertiserLinkProposals_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -307,7 +307,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, displayVideo360AdvertiserLinkProposals_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequest.java index ccbf31d5..f6e338d9 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksRequest.java @@ -271,13 +271,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -289,13 +289,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponse.java index f93d8fea..d1693e3b 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponse.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListDisplayVideo360AdvertiserLinksResponse.java @@ -286,7 +286,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < displayVideo360AdvertiserLinks_.size(); i++) { output.writeMessage(1, displayVideo360AdvertiserLinks_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -303,7 +303,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, displayVideo360AdvertiserLinks_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java index f1283470..373726d9 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java @@ -269,13 +269,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -287,13 +287,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponse.java index c83cc7b3..3f2910d8 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponse.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksResponse.java @@ -270,7 +270,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < firebaseLinks_.size(); i++) { output.writeMessage(1, firebaseLinks_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -285,7 +285,7 @@ public int getSerializedSize() { for (int i = 0; i < firebaseLinks_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, firebaseLinks_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java index 2fc9e697..f09a81dd 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java @@ -266,13 +266,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -284,13 +284,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponse.java index 7e07c3dc..51e85723 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponse.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksResponse.java @@ -267,7 +267,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < googleAdsLinks_.size(); i++) { output.writeMessage(1, googleAdsLinks_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -282,7 +282,7 @@ public int getSerializedSize() { for (int i = 0; i < googleAdsLinks_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, googleAdsLinks_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsRequest.java index 5bf646d9..8896ab66 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsRequest.java @@ -270,13 +270,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -288,13 +288,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsResponse.java index f58da292..21fd88de 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsResponse.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListIosAppDataStreamsResponse.java @@ -273,7 +273,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < iosAppDataStreams_.size(); i++) { output.writeMessage(1, iosAppDataStreams_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -289,7 +289,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, iosAppDataStreams_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java index d650ee2c..240aa85b 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java @@ -276,13 +276,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -294,13 +294,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponse.java index 6409ec06..bea30ac2 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponse.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponse.java @@ -286,7 +286,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < measurementProtocolSecrets_.size(); i++) { output.writeMessage(1, measurementProtocolSecrets_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -303,7 +303,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 1, measurementProtocolSecrets_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java index 5f5eaa7e..60b98ecb 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java @@ -310,13 +310,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, filter_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } if (showDeleted_ != false) { @@ -331,13 +331,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getFilterBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, filter_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } if (showDeleted_ != false) { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponse.java index ba59ebbf..bd0a97de 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponse.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesResponse.java @@ -265,7 +265,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < properties_.size(); i++) { output.writeMessage(1, properties_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -280,7 +280,7 @@ public int getSerializedSize() { for (int i = 0; i < properties_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, properties_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequest.java index a70b2156..28bfd296 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksRequest.java @@ -267,13 +267,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -285,13 +285,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponse.java index c4f378e1..3641596d 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponse.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListUserLinksResponse.java @@ -264,7 +264,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < userLinks_.size(); i++) { output.writeMessage(1, userLinks_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -279,7 +279,7 @@ public int getSerializedSize() { for (int i = 0; i < userLinks_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, userLinks_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsRequest.java index 64d862e2..8907d42d 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsRequest.java @@ -270,13 +270,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); } if (pageSize_ != 0) { output.writeInt32(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); } unknownFields.writeTo(output); @@ -288,13 +288,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); } if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsResponse.java index 0f8db588..29b9fccb 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsResponse.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListWebDataStreamsResponse.java @@ -267,7 +267,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < webDataStreams_.size(); i++) { output.writeMessage(1, webDataStreams_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -282,7 +282,7 @@ public int getSerializedSize() { for (int i = 0; i < webDataStreams_.size(); i++) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, webDataStreams_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java index 1be30d69..da35d4db 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java @@ -298,13 +298,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } - if (!getSecretValueBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretValue_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, secretValue_); } unknownFields.writeTo(output); @@ -316,13 +316,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } - if (!getSecretValueBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(secretValue_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, secretValue_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java index 09e4c9ba..334a2d84 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java @@ -791,10 +791,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 (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); } if (createTime_ != null) { @@ -803,7 +803,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(4, getUpdateTime()); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, displayName_); } if (industryCategory_ @@ -811,10 +811,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(6, industryCategory_); } - if (!getTimeZoneBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, timeZone_); } - if (!getCurrencyCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, currencyCode_); } if (serviceLevel_ @@ -836,10 +836,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 (!getParentBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); } if (createTime_ != null) { @@ -848,7 +848,7 @@ public int getSerializedSize() { if (updateTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getUpdateTime()); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, displayName_); } if (industryCategory_ @@ -856,10 +856,10 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, industryCategory_); } - if (!getTimeZoneBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(timeZone_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, timeZone_); } - if (!getCurrencyCodeBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(currencyCode_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, currencyCode_); } if (serviceLevel_ diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java index 0eafb0fe..17a49aa9 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertySummary.java @@ -235,10 +235,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getPropertyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, property_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); } unknownFields.writeTo(output); @@ -250,10 +250,10 @@ 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_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequest.java index ec5a0f9c..bee2ce50 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketRequest.java @@ -243,7 +243,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (account_ != null) { output.writeMessage(1, getAccount()); } - if (!getRedirectUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirectUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, redirectUri_); } unknownFields.writeTo(output); @@ -258,7 +258,7 @@ public int getSerializedSize() { if (account_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAccount()); } - if (!getRedirectUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(redirectUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, redirectUri_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponse.java index dd9c083c..185022f7 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponse.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponse.java @@ -175,7 +175,7 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getAccountTicketIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountTicketId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, accountTicketId_); } unknownFields.writeTo(output); @@ -187,7 +187,7 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getAccountTicketIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountTicketId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, accountTicketId_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequest.java index c546aac8..21485181 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequest.java @@ -832,10 +832,10 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); - if (!getAccountBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, account_); } - if (!getPropertyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, property_); } if (getResourceTypeList().size() > 0) { @@ -864,7 +864,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (pageSize_ != 0) { output.writeInt32(8, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, pageToken_); } unknownFields.writeTo(output); @@ -876,10 +876,10 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getAccountBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(account_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, account_); } - if (!getPropertyBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(property_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, property_); } { @@ -924,7 +924,7 @@ public int getSerializedSize() { if (pageSize_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_); } - if (!getPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, pageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponse.java index 87554d6b..9f7d63fa 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponse.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponse.java @@ -276,7 +276,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < changeHistoryEvents_.size(); i++) { output.writeMessage(1, changeHistoryEvents_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); } unknownFields.writeTo(output); @@ -292,7 +292,7 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, changeHistoryEvents_.get(i)); } - if (!getNextPageTokenBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); } size += unknownFields.getSerializedSize(); diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLink.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLink.java index 211479cb..97312bc1 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLink.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLink.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 (!getEmailAddressBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(emailAddress_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, emailAddress_); } for (int i = 0; i < directRoles_.size(); i++) { @@ -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 (!getEmailAddressBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(emailAddress_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, emailAddress_); } { diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStream.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStream.java index 50abcfea..d51cfd07 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStream.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStream.java @@ -542,13 +542,13 @@ public final boolean isInitialized() { @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } - if (!getMeasurementIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(measurementId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, measurementId_); } - if (!getFirebaseAppIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, firebaseAppId_); } if (createTime_ != null) { @@ -557,10 +557,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (updateTime_ != null) { output.writeMessage(5, getUpdateTime()); } - if (!getDefaultUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultUri_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, defaultUri_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, displayName_); } unknownFields.writeTo(output); @@ -572,13 +572,13 @@ public int getSerializedSize() { if (size != -1) return size; size = 0; - if (!getNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); } - if (!getMeasurementIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(measurementId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, measurementId_); } - if (!getFirebaseAppIdBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(firebaseAppId_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, firebaseAppId_); } if (createTime_ != null) { @@ -587,10 +587,10 @@ public int getSerializedSize() { if (updateTime_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getUpdateTime()); } - if (!getDefaultUriBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(defaultUri_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, defaultUri_); } - if (!getDisplayNameBytes().isEmpty()) { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, displayName_); } size += unknownFields.getSerializedSize(); From ad241bac00ba62fe5ecbe9ae3df10e2f7e4b91c4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 25 Oct 2021 20:28:23 +0200 Subject: [PATCH 06/23] chore(deps): update dependency com.google.analytics:google-analytics-admin to v0.6.2 (#304) 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-admin](https://togithub.com/googleapis/java-analytics-admin) | `0.6.1` -> `0.6.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-admin/0.6.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-admin/0.6.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-admin/0.6.2/compatibility-slim/0.6.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-admin/0.6.2/confidence-slim/0.6.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-analytics-admin ### [`v0.6.2`](https://togithub.com/googleapis/java-analytics-admin/blob/master/CHANGELOG.md#​062-httpswwwgithubcomgoogleapisjava-analytics-admincomparev061v062-2021-10-19) [Compare Source](https://togithub.com/googleapis/java-analytics-admin/compare/v0.6.1...v0.6.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-admin). --- 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 856e1877..ab62fa48 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -29,7 +29,7 @@ com.google.analytics google-analytics-admin - 0.6.1 + 0.6.2 From e0e166531a854caca67380300f604383073b4c94 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 20:54:14 +0000 Subject: [PATCH 07/23] chore(java): remove pin on Apache Maven 3.8.1 from github actions (#1268) (#309) --- .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 de3d864f76d555874123f645dec71955a429dd2a 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 01:04:14 +0000 Subject: [PATCH 08/23] Update ci.yaml (#1275) (#310) --- .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 09304a33eba4413f644d617a3156a421ec9b680b 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:40:18 +0000 Subject: [PATCH 09/23] chore: cleanup cloud RAD generation (#1269) (#311) --- .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 8dcd4365..587df5b6 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-admin 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 22e3a1a06d4c25f81eb82aa8a5df9ffee96d1d45 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 9 Nov 2021 00:14:15 +0100 Subject: [PATCH 10/23] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.1 (#312) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.0` -> `1.2.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.1/compatibility-slim/1.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.1/confidence-slim/1.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.2.1`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​121-httpswwwgithubcomgoogleapisjava-shared-configcomparev120v121-2021-11-08) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.0...v1.2.1)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-admin). --- google-analytics-admin-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-analytics-admin-bom/pom.xml b/google-analytics-admin-bom/pom.xml index 6752bb47..61a1eb8a 100644 --- a/google-analytics-admin-bom/pom.xml +++ b/google-analytics-admin-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.0 + 1.2.1 Google Analytics Admin BOM diff --git a/pom.xml b/pom.xml index 41ed07f2..c615e59f 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 49ce21369b30c2d0d377364562084e4f4b43d4a4 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:17 +0000 Subject: [PATCH 11/23] chore: update jre to 11 for linter (#1278) (#313) --- .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 89315cbbc30c8f9db28d1a3d7b438ceb42b5dda9 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:26:13 +0000 Subject: [PATCH 12/23] chore: update minimum java version to java 8 (#1281) (#315) --- .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 1c1b8c37..e2c02c8a 100644 --- a/README.md +++ b/README.md @@ -93,7 +93,7 @@ Analytics Admin 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] @@ -165,7 +165,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 90be858cd029c33b9c46962c12a89199c15c85c3 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 15 Nov 2021 17:14:29 +0100 Subject: [PATCH 13/23] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 (#316) 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-admin). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c615e59f..aa3c32f3 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 92f6c223432f09a6838f77de5fac6476c47afe97 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Nov 2021 23:16:26 +0100 Subject: [PATCH 14/23] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.2 (#317) 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-admin). --- google-analytics-admin-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-analytics-admin-bom/pom.xml b/google-analytics-admin-bom/pom.xml index 61a1eb8a..fef15f80 100644 --- a/google-analytics-admin-bom/pom.xml +++ b/google-analytics-admin-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.1 + 1.2.2 Google Analytics Admin BOM diff --git a/pom.xml b/pom.xml index aa3c32f3..c58f4c34 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 9e20ffaae10fac1932df5a660b48b3533dd50293 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 15/23] chore: remove enable-samples profile (#1284) (#318) --- .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 9ed38958..50c3f2da 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 6e0f574e96e2a641d34613e1af7eb60f15dea722 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:16 -0500 Subject: [PATCH 16/23] chore: update Java and Python dependencies (#314) 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 Co-authored-by: Owl Bot --- .../v1alpha/AnalyticsAdminServiceClient.java | 243 +++++++----------- .../AnalyticsAdminServiceClientTest.java | 20 +- .../v1alpha/AnalyticsAdminServiceGrpc.java | 1 + 3 files changed, 100 insertions(+), 164 deletions(-) diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java index 26934953..58a4752c 100644 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java @@ -1278,7 +1278,7 @@ public final UnaryCallable getUserLinkCallable() { * AnalyticsAdminServiceClient.create()) { * BatchGetUserLinksRequest request = * BatchGetUserLinksRequest.newBuilder() - * .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) + * .setParent(AccountName.of("[ACCOUNT]").toString()) * .addAllNames(new ArrayList()) * .build(); * BatchGetUserLinksResponse response = analyticsAdminServiceClient.batchGetUserLinks(request); @@ -1303,7 +1303,7 @@ public final BatchGetUserLinksResponse batchGetUserLinks(BatchGetUserLinksReques * AnalyticsAdminServiceClient.create()) { * BatchGetUserLinksRequest request = * BatchGetUserLinksRequest.newBuilder() - * .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString()) + * .setParent(AccountName.of("[ACCOUNT]").toString()) * .addAllNames(new ArrayList()) * .build(); * ApiFuture future = @@ -1381,7 +1381,7 @@ public final ListUserLinksPagedResponse listUserLinks(PropertyName parent) { *
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString();
+   *   String parent = AccountName.of("[ACCOUNT]").toString();
    *   for (UserLink element : analyticsAdminServiceClient.listUserLinks(parent).iterateAll()) {
    *     // doThingsWith(element);
    *   }
@@ -1407,7 +1407,7 @@ public final ListUserLinksPagedResponse listUserLinks(String parent) {
    *     AnalyticsAdminServiceClient.create()) {
    *   ListUserLinksRequest request =
    *       ListUserLinksRequest.newBuilder()
-   *           .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -1435,7 +1435,7 @@ public final ListUserLinksPagedResponse listUserLinks(ListUserLinksRequest reque
    *     AnalyticsAdminServiceClient.create()) {
    *   ListUserLinksRequest request =
    *       ListUserLinksRequest.newBuilder()
-   *           .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -1464,7 +1464,7 @@ public final ListUserLinksPagedResponse listUserLinks(ListUserLinksRequest reque
    *     AnalyticsAdminServiceClient.create()) {
    *   ListUserLinksRequest request =
    *       ListUserLinksRequest.newBuilder()
-   *           .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -1505,7 +1505,7 @@ public final UnaryCallable listUser
    *     AnalyticsAdminServiceClient.create()) {
    *   AuditUserLinksRequest request =
    *       AuditUserLinksRequest.newBuilder()
-   *           .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -1540,7 +1540,7 @@ public final AuditUserLinksPagedResponse auditUserLinks(AuditUserLinksRequest re
    *     AnalyticsAdminServiceClient.create()) {
    *   AuditUserLinksRequest request =
    *       AuditUserLinksRequest.newBuilder()
-   *           .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -1575,7 +1575,7 @@ public final AuditUserLinksPagedResponse auditUserLinks(AuditUserLinksRequest re
    *     AnalyticsAdminServiceClient.create()) {
    *   AuditUserLinksRequest request =
    *       AuditUserLinksRequest.newBuilder()
-   *           .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -1677,7 +1677,7 @@ public final UserLink createUserLink(PropertyName parent, UserLink userLink) {
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString();
+   *   String parent = AccountName.of("[ACCOUNT]").toString();
    *   UserLink userLink = UserLink.newBuilder().build();
    *   UserLink response = analyticsAdminServiceClient.createUserLink(parent, userLink);
    * }
@@ -1708,7 +1708,7 @@ public final UserLink createUserLink(String parent, UserLink userLink) {
    *     AnalyticsAdminServiceClient.create()) {
    *   CreateUserLinkRequest request =
    *       CreateUserLinkRequest.newBuilder()
-   *           .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
    *           .setNotifyNewUser(true)
    *           .setUserLink(UserLink.newBuilder().build())
    *           .build();
@@ -1738,7 +1738,7 @@ public final UserLink createUserLink(CreateUserLinkRequest request) {
    *     AnalyticsAdminServiceClient.create()) {
    *   CreateUserLinkRequest request =
    *       CreateUserLinkRequest.newBuilder()
-   *           .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
    *           .setNotifyNewUser(true)
    *           .setUserLink(UserLink.newBuilder().build())
    *           .build();
@@ -1767,7 +1767,7 @@ public final UnaryCallable createUserLinkCallab
    *     AnalyticsAdminServiceClient.create()) {
    *   BatchCreateUserLinksRequest request =
    *       BatchCreateUserLinksRequest.newBuilder()
-   *           .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
    *           .setNotifyNewUsers(true)
    *           .addAllRequests(new ArrayList())
    *           .build();
@@ -1798,7 +1798,7 @@ public final BatchCreateUserLinksResponse batchCreateUserLinks(
    *     AnalyticsAdminServiceClient.create()) {
    *   BatchCreateUserLinksRequest request =
    *       BatchCreateUserLinksRequest.newBuilder()
-   *           .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
    *           .setNotifyNewUsers(true)
    *           .addAllRequests(new ArrayList())
    *           .build();
@@ -1892,7 +1892,7 @@ public final UnaryCallable updateUserLinkCallab
    *     AnalyticsAdminServiceClient.create()) {
    *   BatchUpdateUserLinksRequest request =
    *       BatchUpdateUserLinksRequest.newBuilder()
-   *           .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
    *           .addAllRequests(new ArrayList())
    *           .build();
    *   BatchUpdateUserLinksResponse response =
@@ -1919,7 +1919,7 @@ public final BatchUpdateUserLinksResponse batchUpdateUserLinks(
    *     AnalyticsAdminServiceClient.create()) {
    *   BatchUpdateUserLinksRequest request =
    *       BatchUpdateUserLinksRequest.newBuilder()
-   *           .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
    *           .addAllRequests(new ArrayList())
    *           .build();
    *   ApiFuture future =
@@ -2038,7 +2038,7 @@ public final UnaryCallable deleteUserLinkCallable(
    *     AnalyticsAdminServiceClient.create()) {
    *   BatchDeleteUserLinksRequest request =
    *       BatchDeleteUserLinksRequest.newBuilder()
-   *           .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
    *           .addAllRequests(new ArrayList())
    *           .build();
    *   analyticsAdminServiceClient.batchDeleteUserLinks(request);
@@ -2063,7 +2063,7 @@ public final void batchDeleteUserLinks(BatchDeleteUserLinksRequest request) {
    *     AnalyticsAdminServiceClient.create()) {
    *   BatchDeleteUserLinksRequest request =
    *       BatchDeleteUserLinksRequest.newBuilder()
-   *           .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+   *           .setParent(AccountName.of("[ACCOUNT]").toString())
    *           .addAllRequests(new ArrayList())
    *           .build();
    *   ApiFuture future =
@@ -2397,7 +2397,7 @@ public final WebDataStream createWebDataStream(PropertyName parent, WebDataStrea
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString();
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
    *   WebDataStream webDataStream = WebDataStream.newBuilder().build();
    *   WebDataStream response =
    *       analyticsAdminServiceClient.createWebDataStream(parent, webDataStream);
@@ -2430,7 +2430,7 @@ public final WebDataStream createWebDataStream(String parent, WebDataStream webD
    *   CreateWebDataStreamRequest request =
    *       CreateWebDataStreamRequest.newBuilder()
    *           .setWebDataStream(WebDataStream.newBuilder().build())
-   *           .setParent(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .build();
    *   WebDataStream response = analyticsAdminServiceClient.createWebDataStream(request);
    * }
@@ -2455,7 +2455,7 @@ public final WebDataStream createWebDataStream(CreateWebDataStreamRequest reques
    *   CreateWebDataStreamRequest request =
    *       CreateWebDataStreamRequest.newBuilder()
    *           .setWebDataStream(WebDataStream.newBuilder().build())
-   *           .setParent(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .build();
    *   ApiFuture future =
    *       analyticsAdminServiceClient.createWebDataStreamCallable().futureCall(request);
@@ -2513,7 +2513,7 @@ public final ListWebDataStreamsPagedResponse listWebDataStreams(PropertyName par
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString();
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
    *   for (WebDataStream element :
    *       analyticsAdminServiceClient.listWebDataStreams(parent).iterateAll()) {
    *     // doThingsWith(element);
@@ -2545,7 +2545,7 @@ public final ListWebDataStreamsPagedResponse listWebDataStreams(String parent) {
    *     AnalyticsAdminServiceClient.create()) {
    *   ListWebDataStreamsRequest request =
    *       ListWebDataStreamsRequest.newBuilder()
-   *           .setParent(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -2578,7 +2578,7 @@ public final ListWebDataStreamsPagedResponse listWebDataStreams(
    *     AnalyticsAdminServiceClient.create()) {
    *   ListWebDataStreamsRequest request =
    *       ListWebDataStreamsRequest.newBuilder()
-   *           .setParent(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -2610,7 +2610,7 @@ public final ListWebDataStreamsPagedResponse listWebDataStreams(
    *     AnalyticsAdminServiceClient.create()) {
    *   ListWebDataStreamsRequest request =
    *       ListWebDataStreamsRequest.newBuilder()
-   *           .setParent(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -2965,7 +2965,7 @@ public final ListIosAppDataStreamsPagedResponse listIosAppDataStreams(PropertyNa
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString();
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
    *   for (IosAppDataStream element :
    *       analyticsAdminServiceClient.listIosAppDataStreams(parent).iterateAll()) {
    *     // doThingsWith(element);
@@ -2997,7 +2997,7 @@ public final ListIosAppDataStreamsPagedResponse listIosAppDataStreams(String par
    *     AnalyticsAdminServiceClient.create()) {
    *   ListIosAppDataStreamsRequest request =
    *       ListIosAppDataStreamsRequest.newBuilder()
-   *           .setParent(IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -3030,7 +3030,7 @@ public final ListIosAppDataStreamsPagedResponse listIosAppDataStreams(
    *     AnalyticsAdminServiceClient.create()) {
    *   ListIosAppDataStreamsRequest request =
    *       ListIosAppDataStreamsRequest.newBuilder()
-   *           .setParent(IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -3062,7 +3062,7 @@ public final ListIosAppDataStreamsPagedResponse listIosAppDataStreams(
    *     AnalyticsAdminServiceClient.create()) {
    *   ListIosAppDataStreamsRequest request =
    *       ListIosAppDataStreamsRequest.newBuilder()
-   *           .setParent(IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -3429,8 +3429,7 @@ public final ListAndroidAppDataStreamsPagedResponse listAndroidAppDataStreams(
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent =
-   *       AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString();
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
    *   for (AndroidAppDataStream element :
    *       analyticsAdminServiceClient.listAndroidAppDataStreams(parent).iterateAll()) {
    *     // doThingsWith(element);
@@ -3462,8 +3461,7 @@ public final ListAndroidAppDataStreamsPagedResponse listAndroidAppDataStreams(St
    *     AnalyticsAdminServiceClient.create()) {
    *   ListAndroidAppDataStreamsRequest request =
    *       ListAndroidAppDataStreamsRequest.newBuilder()
-   *           .setParent(
-   *               AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -3496,8 +3494,7 @@ public final ListAndroidAppDataStreamsPagedResponse listAndroidAppDataStreams(
    *     AnalyticsAdminServiceClient.create()) {
    *   ListAndroidAppDataStreamsRequest request =
    *       ListAndroidAppDataStreamsRequest.newBuilder()
-   *           .setParent(
-   *               AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -3530,8 +3527,7 @@ public final ListAndroidAppDataStreamsPagedResponse listAndroidAppDataStreams(
    *     AnalyticsAdminServiceClient.create()) {
    *   ListAndroidAppDataStreamsRequest request =
    *       ListAndroidAppDataStreamsRequest.newBuilder()
-   *           .setParent(
-   *               AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -3804,7 +3800,7 @@ public final FirebaseLink createFirebaseLink(PropertyName parent, FirebaseLink f
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString();
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
    *   FirebaseLink firebaseLink = FirebaseLink.newBuilder().build();
    *   FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(parent, firebaseLink);
    * }
@@ -3836,7 +3832,7 @@ public final FirebaseLink createFirebaseLink(String parent, FirebaseLink firebas
    *     AnalyticsAdminServiceClient.create()) {
    *   CreateFirebaseLinkRequest request =
    *       CreateFirebaseLinkRequest.newBuilder()
-   *           .setParent(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setFirebaseLink(FirebaseLink.newBuilder().build())
    *           .build();
    *   FirebaseLink response = analyticsAdminServiceClient.createFirebaseLink(request);
@@ -3863,7 +3859,7 @@ public final FirebaseLink createFirebaseLink(CreateFirebaseLinkRequest request)
    *     AnalyticsAdminServiceClient.create()) {
    *   CreateFirebaseLinkRequest request =
    *       CreateFirebaseLinkRequest.newBuilder()
-   *           .setParent(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setFirebaseLink(FirebaseLink.newBuilder().build())
    *           .build();
    *   ApiFuture future =
@@ -4012,7 +4008,7 @@ public final ListFirebaseLinksPagedResponse listFirebaseLinks(PropertyName paren
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString();
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
    *   for (FirebaseLink element :
    *       analyticsAdminServiceClient.listFirebaseLinks(parent).iterateAll()) {
    *     // doThingsWith(element);
@@ -4040,7 +4036,7 @@ public final ListFirebaseLinksPagedResponse listFirebaseLinks(String parent) {
    *     AnalyticsAdminServiceClient.create()) {
    *   ListFirebaseLinksRequest request =
    *       ListFirebaseLinksRequest.newBuilder()
-   *           .setParent(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -4069,7 +4065,7 @@ public final ListFirebaseLinksPagedResponse listFirebaseLinks(ListFirebaseLinksR
    *     AnalyticsAdminServiceClient.create()) {
    *   ListFirebaseLinksRequest request =
    *       ListFirebaseLinksRequest.newBuilder()
-   *           .setParent(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -4098,7 +4094,7 @@ public final ListFirebaseLinksPagedResponse listFirebaseLinks(ListFirebaseLinksR
    *     AnalyticsAdminServiceClient.create()) {
    *   ListFirebaseLinksRequest request =
    *       ListFirebaseLinksRequest.newBuilder()
-   *           .setParent(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -4260,7 +4256,7 @@ public final GoogleAdsLink createGoogleAdsLink(PropertyName parent, GoogleAdsLin
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString();
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
    *   GoogleAdsLink googleAdsLink = GoogleAdsLink.newBuilder().build();
    *   GoogleAdsLink response =
    *       analyticsAdminServiceClient.createGoogleAdsLink(parent, googleAdsLink);
@@ -4291,7 +4287,7 @@ public final GoogleAdsLink createGoogleAdsLink(String parent, GoogleAdsLink goog
    *     AnalyticsAdminServiceClient.create()) {
    *   CreateGoogleAdsLinkRequest request =
    *       CreateGoogleAdsLinkRequest.newBuilder()
-   *           .setParent(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setGoogleAdsLink(GoogleAdsLink.newBuilder().build())
    *           .build();
    *   GoogleAdsLink response = analyticsAdminServiceClient.createGoogleAdsLink(request);
@@ -4316,7 +4312,7 @@ public final GoogleAdsLink createGoogleAdsLink(CreateGoogleAdsLinkRequest reques
    *     AnalyticsAdminServiceClient.create()) {
    *   CreateGoogleAdsLinkRequest request =
    *       CreateGoogleAdsLinkRequest.newBuilder()
-   *           .setParent(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setGoogleAdsLink(GoogleAdsLink.newBuilder().build())
    *           .build();
    *   ApiFuture future =
@@ -4547,7 +4543,7 @@ public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(PropertyName par
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString();
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
    *   for (GoogleAdsLink element :
    *       analyticsAdminServiceClient.listGoogleAdsLinks(parent).iterateAll()) {
    *     // doThingsWith(element);
@@ -4575,7 +4571,7 @@ public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(String parent) {
    *     AnalyticsAdminServiceClient.create()) {
    *   ListGoogleAdsLinksRequest request =
    *       ListGoogleAdsLinksRequest.newBuilder()
-   *           .setParent(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -4605,7 +4601,7 @@ public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(
    *     AnalyticsAdminServiceClient.create()) {
    *   ListGoogleAdsLinksRequest request =
    *       ListGoogleAdsLinksRequest.newBuilder()
-   *           .setParent(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -4634,7 +4630,7 @@ public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(
    *     AnalyticsAdminServiceClient.create()) {
    *   ListGoogleAdsLinksRequest request =
    *       ListGoogleAdsLinksRequest.newBuilder()
-   *           .setParent(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -4917,10 +4913,7 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent =
-   *       MeasurementProtocolSecretName.of(
-   *               "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
-   *           .toString();
+   *   String parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString();
    *   for (MeasurementProtocolSecret element :
    *       analyticsAdminServiceClient.listMeasurementProtocolSecrets(parent).iterateAll()) {
    *     // doThingsWith(element);
@@ -4951,10 +4944,7 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol
    *     AnalyticsAdminServiceClient.create()) {
    *   ListMeasurementProtocolSecretsRequest request =
    *       ListMeasurementProtocolSecretsRequest.newBuilder()
-   *           .setParent(
-   *               MeasurementProtocolSecretName.of(
-   *                       "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
-   *                   .toString())
+   *           .setParent(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -4984,10 +4974,7 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol
    *     AnalyticsAdminServiceClient.create()) {
    *   ListMeasurementProtocolSecretsRequest request =
    *       ListMeasurementProtocolSecretsRequest.newBuilder()
-   *           .setParent(
-   *               MeasurementProtocolSecretName.of(
-   *                       "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
-   *                   .toString())
+   *           .setParent(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -5019,10 +5006,7 @@ public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocol
    *     AnalyticsAdminServiceClient.create()) {
    *   ListMeasurementProtocolSecretsRequest request =
    *       ListMeasurementProtocolSecretsRequest.newBuilder()
-   *           .setParent(
-   *               MeasurementProtocolSecretName.of(
-   *                       "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
-   *                   .toString())
+   *           .setParent(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -5091,10 +5075,7 @@ public final MeasurementProtocolSecret createMeasurementProtocolSecret(
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent =
-   *       MeasurementProtocolSecretName.of(
-   *               "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
-   *           .toString();
+   *   String parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString();
    *   MeasurementProtocolSecret measurementProtocolSecret =
    *       MeasurementProtocolSecret.newBuilder().build();
    *   MeasurementProtocolSecret response =
@@ -5130,10 +5111,7 @@ public final MeasurementProtocolSecret createMeasurementProtocolSecret(
    *     AnalyticsAdminServiceClient.create()) {
    *   CreateMeasurementProtocolSecretRequest request =
    *       CreateMeasurementProtocolSecretRequest.newBuilder()
-   *           .setParent(
-   *               MeasurementProtocolSecretName.of(
-   *                       "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
-   *                   .toString())
+   *           .setParent(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString())
    *           .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
    *           .build();
    *   MeasurementProtocolSecret response =
@@ -5160,10 +5138,7 @@ public final MeasurementProtocolSecret createMeasurementProtocolSecret(
    *     AnalyticsAdminServiceClient.create()) {
    *   CreateMeasurementProtocolSecretRequest request =
    *       CreateMeasurementProtocolSecretRequest.newBuilder()
-   *           .setParent(
-   *               MeasurementProtocolSecretName.of(
-   *                       "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
-   *                   .toString())
+   *           .setParent(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString())
    *           .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
    *           .build();
    *   ApiFuture future =
@@ -5720,7 +5695,7 @@ public final ConversionEvent createConversionEvent(
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString();
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
    *   ConversionEvent conversionEvent = ConversionEvent.newBuilder().build();
    *   ConversionEvent response =
    *       analyticsAdminServiceClient.createConversionEvent(parent, conversionEvent);
@@ -5754,7 +5729,7 @@ public final ConversionEvent createConversionEvent(
    *   CreateConversionEventRequest request =
    *       CreateConversionEventRequest.newBuilder()
    *           .setConversionEvent(ConversionEvent.newBuilder().build())
-   *           .setParent(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .build();
    *   ConversionEvent response = analyticsAdminServiceClient.createConversionEvent(request);
    * }
@@ -5779,7 +5754,7 @@ public final ConversionEvent createConversionEvent(CreateConversionEventRequest
    *   CreateConversionEventRequest request =
    *       CreateConversionEventRequest.newBuilder()
    *           .setConversionEvent(ConversionEvent.newBuilder().build())
-   *           .setParent(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .build();
    *   ApiFuture future =
    *       analyticsAdminServiceClient.createConversionEventCallable().futureCall(request);
@@ -6035,7 +6010,7 @@ public final ListConversionEventsPagedResponse listConversionEvents(PropertyName
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString();
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
    *   for (ConversionEvent element :
    *       analyticsAdminServiceClient.listConversionEvents(parent).iterateAll()) {
    *     // doThingsWith(element);
@@ -6065,7 +6040,7 @@ public final ListConversionEventsPagedResponse listConversionEvents(String paren
    *     AnalyticsAdminServiceClient.create()) {
    *   ListConversionEventsRequest request =
    *       ListConversionEventsRequest.newBuilder()
-   *           .setParent(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -6097,7 +6072,7 @@ public final ListConversionEventsPagedResponse listConversionEvents(
    *     AnalyticsAdminServiceClient.create()) {
    *   ListConversionEventsRequest request =
    *       ListConversionEventsRequest.newBuilder()
-   *           .setParent(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -6128,7 +6103,7 @@ public final ListConversionEventsPagedResponse listConversionEvents(
    *     AnalyticsAdminServiceClient.create()) {
    *   ListConversionEventsRequest request =
    *       ListConversionEventsRequest.newBuilder()
-   *           .setParent(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -6306,9 +6281,7 @@ public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent =
-   *       DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
-   *           .toString();
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
    *   for (DisplayVideo360AdvertiserLink element :
    *       analyticsAdminServiceClient.listDisplayVideo360AdvertiserLinks(parent).iterateAll()) {
    *     // doThingsWith(element);
@@ -6337,10 +6310,7 @@ public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360
    *     AnalyticsAdminServiceClient.create()) {
    *   ListDisplayVideo360AdvertiserLinksRequest request =
    *       ListDisplayVideo360AdvertiserLinksRequest.newBuilder()
-   *           .setParent(
-   *               DisplayVideo360AdvertiserLinkName.of(
-   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
-   *                   .toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -6370,10 +6340,7 @@ public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360
    *     AnalyticsAdminServiceClient.create()) {
    *   ListDisplayVideo360AdvertiserLinksRequest request =
    *       ListDisplayVideo360AdvertiserLinksRequest.newBuilder()
-   *           .setParent(
-   *               DisplayVideo360AdvertiserLinkName.of(
-   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
-   *                   .toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -6406,10 +6373,7 @@ public final ListDisplayVideo360AdvertiserLinksPagedResponse listDisplayVideo360
    *     AnalyticsAdminServiceClient.create()) {
    *   ListDisplayVideo360AdvertiserLinksRequest request =
    *       ListDisplayVideo360AdvertiserLinksRequest.newBuilder()
-   *           .setParent(
-   *               DisplayVideo360AdvertiserLinkName.of(
-   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
-   *                   .toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -6482,9 +6446,7 @@ public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink(
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent =
-   *       DisplayVideo360AdvertiserLinkName.of("[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
-   *           .toString();
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
    *   DisplayVideo360AdvertiserLink displayVideo360AdvertiserLink =
    *       DisplayVideo360AdvertiserLink.newBuilder().build();
    *   DisplayVideo360AdvertiserLink response =
@@ -6521,10 +6483,7 @@ public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink(
    *     AnalyticsAdminServiceClient.create()) {
    *   CreateDisplayVideo360AdvertiserLinkRequest request =
    *       CreateDisplayVideo360AdvertiserLinkRequest.newBuilder()
-   *           .setParent(
-   *               DisplayVideo360AdvertiserLinkName.of(
-   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
-   *                   .toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
    *           .build();
    *   DisplayVideo360AdvertiserLink response =
@@ -6554,10 +6513,7 @@ public final DisplayVideo360AdvertiserLink createDisplayVideo360AdvertiserLink(
    *     AnalyticsAdminServiceClient.create()) {
    *   CreateDisplayVideo360AdvertiserLinkRequest request =
    *       CreateDisplayVideo360AdvertiserLinkRequest.newBuilder()
-   *           .setParent(
-   *               DisplayVideo360AdvertiserLinkName.of(
-   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK]")
-   *                   .toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setDisplayVideo360AdvertiserLink(DisplayVideo360AdvertiserLink.newBuilder().build())
    *           .build();
    *   ApiFuture future =
@@ -6935,10 +6891,7 @@ public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserL
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent =
-   *       DisplayVideo360AdvertiserLinkProposalName.of(
-   *               "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
-   *           .toString();
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
    *   for (DisplayVideo360AdvertiserLinkProposal element :
    *       analyticsAdminServiceClient
    *           .listDisplayVideo360AdvertiserLinkProposals(parent)
@@ -6969,10 +6922,7 @@ public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserL
    *     AnalyticsAdminServiceClient.create()) {
    *   ListDisplayVideo360AdvertiserLinkProposalsRequest request =
    *       ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder()
-   *           .setParent(
-   *               DisplayVideo360AdvertiserLinkProposalName.of(
-   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
-   *                   .toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -7005,10 +6955,7 @@ public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserL
    *     AnalyticsAdminServiceClient.create()) {
    *   ListDisplayVideo360AdvertiserLinkProposalsRequest request =
    *       ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder()
-   *           .setParent(
-   *               DisplayVideo360AdvertiserLinkProposalName.of(
-   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
-   *                   .toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -7041,10 +6988,7 @@ public final DisplayVideo360AdvertiserLinkProposal getDisplayVideo360AdvertiserL
    *     AnalyticsAdminServiceClient.create()) {
    *   ListDisplayVideo360AdvertiserLinkProposalsRequest request =
    *       ListDisplayVideo360AdvertiserLinkProposalsRequest.newBuilder()
-   *           .setParent(
-   *               DisplayVideo360AdvertiserLinkProposalName.of(
-   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
-   *                   .toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -7116,10 +7060,7 @@ public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360Advertis
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent =
-   *       DisplayVideo360AdvertiserLinkProposalName.of(
-   *               "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
-   *           .toString();
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
    *   DisplayVideo360AdvertiserLinkProposal displayVideo360AdvertiserLinkProposal =
    *       DisplayVideo360AdvertiserLinkProposal.newBuilder().build();
    *   DisplayVideo360AdvertiserLinkProposal response =
@@ -7154,10 +7095,7 @@ public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360Advertis
    *     AnalyticsAdminServiceClient.create()) {
    *   CreateDisplayVideo360AdvertiserLinkProposalRequest request =
    *       CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
-   *           .setParent(
-   *               DisplayVideo360AdvertiserLinkProposalName.of(
-   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
-   *                   .toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setDisplayVideo360AdvertiserLinkProposal(
    *               DisplayVideo360AdvertiserLinkProposal.newBuilder().build())
    *           .build();
@@ -7185,10 +7123,7 @@ public final DisplayVideo360AdvertiserLinkProposal createDisplayVideo360Advertis
    *     AnalyticsAdminServiceClient.create()) {
    *   CreateDisplayVideo360AdvertiserLinkProposalRequest request =
    *       CreateDisplayVideo360AdvertiserLinkProposalRequest.newBuilder()
-   *           .setParent(
-   *               DisplayVideo360AdvertiserLinkProposalName.of(
-   *                       "[PROPERTY]", "[DISPLAY_VIDEO_360_ADVERTISER_LINK_PROPOSAL]")
-   *                   .toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setDisplayVideo360AdvertiserLinkProposal(
    *               DisplayVideo360AdvertiserLinkProposal.newBuilder().build())
    *           .build();
@@ -7492,7 +7427,7 @@ public final CustomDimension createCustomDimension(
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = CustomDimensionName.of("[PROPERTY]").toString();
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
    *   CustomDimension customDimension = CustomDimension.newBuilder().build();
    *   CustomDimension response =
    *       analyticsAdminServiceClient.createCustomDimension(parent, customDimension);
@@ -7524,7 +7459,7 @@ public final CustomDimension createCustomDimension(
    *     AnalyticsAdminServiceClient.create()) {
    *   CreateCustomDimensionRequest request =
    *       CreateCustomDimensionRequest.newBuilder()
-   *           .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setCustomDimension(CustomDimension.newBuilder().build())
    *           .build();
    *   CustomDimension response = analyticsAdminServiceClient.createCustomDimension(request);
@@ -7549,7 +7484,7 @@ public final CustomDimension createCustomDimension(CreateCustomDimensionRequest
    *     AnalyticsAdminServiceClient.create()) {
    *   CreateCustomDimensionRequest request =
    *       CreateCustomDimensionRequest.newBuilder()
-   *           .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setCustomDimension(CustomDimension.newBuilder().build())
    *           .build();
    *   ApiFuture future =
@@ -7684,7 +7619,7 @@ public final ListCustomDimensionsPagedResponse listCustomDimensions(PropertyName
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = CustomDimensionName.of("[PROPERTY]").toString();
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
    *   for (CustomDimension element :
    *       analyticsAdminServiceClient.listCustomDimensions(parent).iterateAll()) {
    *     // doThingsWith(element);
@@ -7712,7 +7647,7 @@ public final ListCustomDimensionsPagedResponse listCustomDimensions(String paren
    *     AnalyticsAdminServiceClient.create()) {
    *   ListCustomDimensionsRequest request =
    *       ListCustomDimensionsRequest.newBuilder()
-   *           .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -7742,7 +7677,7 @@ public final ListCustomDimensionsPagedResponse listCustomDimensions(
    *     AnalyticsAdminServiceClient.create()) {
    *   ListCustomDimensionsRequest request =
    *       ListCustomDimensionsRequest.newBuilder()
-   *           .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -7771,7 +7706,7 @@ public final ListCustomDimensionsPagedResponse listCustomDimensions(
    *     AnalyticsAdminServiceClient.create()) {
    *   ListCustomDimensionsRequest request =
    *       ListCustomDimensionsRequest.newBuilder()
-   *           .setParent(CustomDimensionName.of("[PROPERTY]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -8031,7 +7966,7 @@ public final CustomMetric createCustomMetric(PropertyName parent, CustomMetric c
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = CustomMetricName.of("[PROPERTY]").toString();
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
    *   CustomMetric customMetric = CustomMetric.newBuilder().build();
    *   CustomMetric response = analyticsAdminServiceClient.createCustomMetric(parent, customMetric);
    * }
@@ -8061,7 +7996,7 @@ public final CustomMetric createCustomMetric(String parent, CustomMetric customM
    *     AnalyticsAdminServiceClient.create()) {
    *   CreateCustomMetricRequest request =
    *       CreateCustomMetricRequest.newBuilder()
-   *           .setParent(CustomMetricName.of("[PROPERTY]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setCustomMetric(CustomMetric.newBuilder().build())
    *           .build();
    *   CustomMetric response = analyticsAdminServiceClient.createCustomMetric(request);
@@ -8086,7 +8021,7 @@ public final CustomMetric createCustomMetric(CreateCustomMetricRequest request)
    *     AnalyticsAdminServiceClient.create()) {
    *   CreateCustomMetricRequest request =
    *       CreateCustomMetricRequest.newBuilder()
-   *           .setParent(CustomMetricName.of("[PROPERTY]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setCustomMetric(CustomMetric.newBuilder().build())
    *           .build();
    *   ApiFuture future =
@@ -8218,7 +8153,7 @@ public final ListCustomMetricsPagedResponse listCustomMetrics(PropertyName paren
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = CustomMetricName.of("[PROPERTY]").toString();
+   *   String parent = PropertyName.of("[PROPERTY]").toString();
    *   for (CustomMetric element :
    *       analyticsAdminServiceClient.listCustomMetrics(parent).iterateAll()) {
    *     // doThingsWith(element);
@@ -8246,7 +8181,7 @@ public final ListCustomMetricsPagedResponse listCustomMetrics(String parent) {
    *     AnalyticsAdminServiceClient.create()) {
    *   ListCustomMetricsRequest request =
    *       ListCustomMetricsRequest.newBuilder()
-   *           .setParent(CustomMetricName.of("[PROPERTY]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -8275,7 +8210,7 @@ public final ListCustomMetricsPagedResponse listCustomMetrics(ListCustomMetricsR
    *     AnalyticsAdminServiceClient.create()) {
    *   ListCustomMetricsRequest request =
    *       ListCustomMetricsRequest.newBuilder()
-   *           .setParent(CustomMetricName.of("[PROPERTY]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
@@ -8304,7 +8239,7 @@ public final ListCustomMetricsPagedResponse listCustomMetrics(ListCustomMetricsR
    *     AnalyticsAdminServiceClient.create()) {
    *   ListCustomMetricsRequest request =
    *       ListCustomMetricsRequest.newBuilder()
-   *           .setParent(CustomMetricName.of("[PROPERTY]").toString())
+   *           .setParent(PropertyName.of("[PROPERTY]").toString())
    *           .setPageSize(883849137)
    *           .setPageToken("pageToken873572522")
    *           .build();
diff --git a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java
index 7ca67d83..8557eb65 100644
--- a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java
+++ b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java
@@ -896,7 +896,7 @@ public void batchGetUserLinksTest() throws Exception {
 
     BatchGetUserLinksRequest request =
         BatchGetUserLinksRequest.newBuilder()
-            .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+            .setParent(AccountName.of("[ACCOUNT]").toString())
             .addAllNames(new ArrayList())
             .build();
 
@@ -923,7 +923,7 @@ public void batchGetUserLinksExceptionTest() throws Exception {
     try {
       BatchGetUserLinksRequest request =
           BatchGetUserLinksRequest.newBuilder()
-              .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+              .setParent(AccountName.of("[ACCOUNT]").toString())
               .addAllNames(new ArrayList())
               .build();
       client.batchGetUserLinks(request);
@@ -1077,7 +1077,7 @@ public void auditUserLinksTest() throws Exception {
 
     AuditUserLinksRequest request =
         AuditUserLinksRequest.newBuilder()
-            .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+            .setParent(AccountName.of("[ACCOUNT]").toString())
             .setPageSize(883849137)
             .setPageToken("pageToken873572522")
             .build();
@@ -1110,7 +1110,7 @@ public void auditUserLinksExceptionTest() throws Exception {
     try {
       AuditUserLinksRequest request =
           AuditUserLinksRequest.newBuilder()
-              .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+              .setParent(AccountName.of("[ACCOUNT]").toString())
               .setPageSize(883849137)
               .setPageToken("pageToken873572522")
               .build();
@@ -1260,7 +1260,7 @@ public void batchCreateUserLinksTest() throws Exception {
 
     BatchCreateUserLinksRequest request =
         BatchCreateUserLinksRequest.newBuilder()
-            .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+            .setParent(AccountName.of("[ACCOUNT]").toString())
             .setNotifyNewUsers(true)
             .addAllRequests(new ArrayList())
             .build();
@@ -1290,7 +1290,7 @@ public void batchCreateUserLinksExceptionTest() throws Exception {
     try {
       BatchCreateUserLinksRequest request =
           BatchCreateUserLinksRequest.newBuilder()
-              .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+              .setParent(AccountName.of("[ACCOUNT]").toString())
               .setNotifyNewUsers(true)
               .addAllRequests(new ArrayList())
               .build();
@@ -1351,7 +1351,7 @@ public void batchUpdateUserLinksTest() throws Exception {
 
     BatchUpdateUserLinksRequest request =
         BatchUpdateUserLinksRequest.newBuilder()
-            .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+            .setParent(AccountName.of("[ACCOUNT]").toString())
             .addAllRequests(new ArrayList())
             .build();
 
@@ -1379,7 +1379,7 @@ public void batchUpdateUserLinksExceptionTest() throws Exception {
     try {
       BatchUpdateUserLinksRequest request =
           BatchUpdateUserLinksRequest.newBuilder()
-              .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+              .setParent(AccountName.of("[ACCOUNT]").toString())
               .addAllRequests(new ArrayList())
               .build();
       client.batchUpdateUserLinks(request);
@@ -1464,7 +1464,7 @@ public void batchDeleteUserLinksTest() throws Exception {
 
     BatchDeleteUserLinksRequest request =
         BatchDeleteUserLinksRequest.newBuilder()
-            .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+            .setParent(AccountName.of("[ACCOUNT]").toString())
             .addAllRequests(new ArrayList())
             .build();
 
@@ -1491,7 +1491,7 @@ public void batchDeleteUserLinksExceptionTest() throws Exception {
     try {
       BatchDeleteUserLinksRequest request =
           BatchDeleteUserLinksRequest.newBuilder()
-              .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+              .setParent(AccountName.of("[ACCOUNT]").toString())
               .addAllRequests(new ArrayList())
               .build();
       client.batchDeleteUserLinks(request);
diff --git a/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java b/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java
index 2aa792cf..896877a6 100644
--- a/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java
+++ b/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java
@@ -27,6 +27,7 @@
 @javax.annotation.Generated(
     value = "by gRPC proto compiler",
     comments = "Source: google/analytics/admin/v1alpha/analytics_admin.proto")
+@io.grpc.stub.annotations.GrpcGenerated
 public final class AnalyticsAdminServiceGrpc {
 
   private AnalyticsAdminServiceGrpc() {}

From 6d31a66c32ed7d16d10e0205f05790be76c92fe0 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate 
Date: Fri, 3 Dec 2021 17:12:35 +0100
Subject: [PATCH 17/23] deps: update dependency
 com.google.cloud:google-cloud-shared-dependencies to v2.5.1 (#321)
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-admin). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index c58f4c34..40ee5e24 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 259886e2a1b1ed49adf0ba37f220e6b4059d4737 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 6 Dec 2021 18:04:29 +0000 Subject: [PATCH 18/23] fix(java): add -ntp flag to native image testing command (#1299) (#322) --- .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 50c3f2da..35f67f28 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 bcafc22bc9de414d25940bba3a571b9587977041 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 7 Dec 2021 00:20:30 +0100 Subject: [PATCH 19/23] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.2.0 (#320) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | `1.0.23` -> `1.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/compatibility-slim/1.0.23)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/confidence-slim/1.0.23)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.2.0`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.24...v1.2.0) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.24...v1.2.0) ### [`v1.0.24`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.23...v1.0.24) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.23...v1.0.24)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: 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-admin). --- 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 ab62fa48..5369d7ef 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 ffb65232..e026b7cb 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 17c1fa29..c5bfbb2e 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 20d4ffe5..d1d1cc57 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 e4564497b94927eb550712364467cefa545ae1fe 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:46:20 +0000 Subject: [PATCH 20/23] fix(java): run Maven in plain console-friendly mode (#1301) (#326) --- .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 35f67f28..e4ce6524 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 e1a13af4b0ab37bc4af81d0e9c6f25d3eadaaeaf Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 6 Jan 2022 20:06:33 +0100 Subject: [PATCH 21/23] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v1.2.4 (#328) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:google-cloud-shared-config](https://togithub.com/googleapis/java-shared-config) | `1.2.2` -> `1.2.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.4/compatibility-slim/1.2.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/1.2.4/confidence-slim/1.2.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-config ### [`v1.2.4`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​124-httpswwwgithubcomgoogleapisjava-shared-configcomparev123v124-2022-01-06) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.3...v1.2.4) ### [`v1.2.3`](https://togithub.com/googleapis/java-shared-config/blob/HEAD/CHANGELOG.md#​123-httpswwwgithubcomgoogleapisjava-shared-configcomparev122v123-2022-01-04) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v1.2.2...v1.2.3)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: 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-admin). --- google-analytics-admin-bom/pom.xml | 2 +- pom.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/google-analytics-admin-bom/pom.xml b/google-analytics-admin-bom/pom.xml index fef15f80..8103a03a 100644 --- a/google-analytics-admin-bom/pom.xml +++ b/google-analytics-admin-bom/pom.xml @@ -8,7 +8,7 @@ com.google.cloud google-cloud-shared-config - 1.2.2 + 1.2.4 Google Analytics Admin BOM diff --git a/pom.xml b/pom.xml index 40ee5e24..24bff665 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 1.2.2 + 1.2.4 From 462d2de3ca950782b90a46b978328c0f85300414 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Jan 2022 04:34:32 +0100 Subject: [PATCH 22/23] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 (#329) 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-admin). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 24bff665..31c05b4d 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 1f4cbf1ec8fb14d393ee8d4e09ed63ec74dd8baf 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:18 +0000 Subject: [PATCH 23/23] chore: release 0.7.0 (#308) :robot: I have created a release \*beep\* \*boop\* --- ## [0.7.0](https://www.github.com/googleapis/java-analytics-admin/compare/v0.6.2...v0.7.0) (2022-01-07) ### Features * add `GetDataRetentionSettings`, `UpdateDataRetentionSettings` methods to the API ([#269](https://www.github.com/googleapis/java-analytics-admin/issues/269)) ([3d3726d](https://www.github.com/googleapis/java-analytics-admin/commit/3d3726db76a6763b3c7a2dd7132b0fefbfe7c6ac)) * add custom output only field to ConversionEvent type ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) * add display_video_360_advertiser_link, display_video_360_advertiser_link_proposal, data_retention_settings fields to ChangeHistoryChange.resource oneof field. ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) * add service_level field to Property type ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) * change measurement_unit field to mutable in CustomMetric type ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) ### Bug Fixes * **java:** add -ntp flag to native image testing command ([#1299](https://www.github.com/googleapis/java-analytics-admin/issues/1299)) ([#322](https://www.github.com/googleapis/java-analytics-admin/issues/322)) ([259886e](https://www.github.com/googleapis/java-analytics-admin/commit/259886e2a1b1ed49adf0ba37f220e6b4059d4737)) * **java:** java 17 dependency arguments ([#1266](https://www.github.com/googleapis/java-analytics-admin/issues/1266)) ([#307](https://www.github.com/googleapis/java-analytics-admin/issues/307)) ([4cfbf3b](https://www.github.com/googleapis/java-analytics-admin/commit/4cfbf3b3e0bc93292fdf6e80aa662356399db047)) * **java:** run Maven in plain console-friendly mode ([#1301](https://www.github.com/googleapis/java-analytics-admin/issues/1301)) ([#326](https://www.github.com/googleapis/java-analytics-admin/issues/326)) ([e456449](https://www.github.com/googleapis/java-analytics-admin/commit/e4564497b94927eb550712364467cefa545ae1fe)) * remove maximum_user_access field from FirebaseLink type ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) * remove MaximumUserAccess enum from the API ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) * remove UpdateFirebaseLink method from the API ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) * rename email_address field of GoogleAdsLink type to creator_email_address ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) * rename is_deletable field of ConversionEvent type to deletable ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#316](https://www.github.com/googleapis/java-analytics-admin/issues/316)) ([90be858](https://www.github.com/googleapis/java-analytics-admin/commit/90be858cd029c33b9c46962c12a89199c15c85c3)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#321](https://www.github.com/googleapis/java-analytics-admin/issues/321)) ([6d31a66](https://www.github.com/googleapis/java-analytics-admin/commit/6d31a66c32ed7d16d10e0205f05790be76c92fe0)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 ([#329](https://www.github.com/googleapis/java-analytics-admin/issues/329)) ([462d2de](https://www.github.com/googleapis/java-analytics-admin/commit/462d2de3ca950782b90a46b978328c0f85300414)) --- 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 | 30 ++++++++++++++++++++ google-analytics-admin-bom/pom.xml | 8 +++--- google-analytics-admin/pom.xml | 4 +-- grpc-google-analytics-admin-v1alpha/pom.xml | 4 +-- pom.xml | 8 +++--- proto-google-analytics-admin-v1alpha/pom.xml | 4 +-- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- versions.txt | 6 ++-- 9 files changed, 49 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec56fbdc..f33871de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,35 @@ # Changelog +## [0.7.0](https://www.github.com/googleapis/java-analytics-admin/compare/v0.6.2...v0.7.0) (2022-01-07) + + +### Features + +* add `GetDataRetentionSettings`, `UpdateDataRetentionSettings` methods to the API ([#269](https://www.github.com/googleapis/java-analytics-admin/issues/269)) ([3d3726d](https://www.github.com/googleapis/java-analytics-admin/commit/3d3726db76a6763b3c7a2dd7132b0fefbfe7c6ac)) +* add custom output only field to ConversionEvent type ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) +* add display_video_360_advertiser_link, display_video_360_advertiser_link_proposal, data_retention_settings fields to ChangeHistoryChange.resource oneof field. ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) +* add service_level field to Property type ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) +* change measurement_unit field to mutable in CustomMetric type ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) + + +### Bug Fixes + +* **java:** add -ntp flag to native image testing command ([#1299](https://www.github.com/googleapis/java-analytics-admin/issues/1299)) ([#322](https://www.github.com/googleapis/java-analytics-admin/issues/322)) ([259886e](https://www.github.com/googleapis/java-analytics-admin/commit/259886e2a1b1ed49adf0ba37f220e6b4059d4737)) +* **java:** java 17 dependency arguments ([#1266](https://www.github.com/googleapis/java-analytics-admin/issues/1266)) ([#307](https://www.github.com/googleapis/java-analytics-admin/issues/307)) ([4cfbf3b](https://www.github.com/googleapis/java-analytics-admin/commit/4cfbf3b3e0bc93292fdf6e80aa662356399db047)) +* **java:** run Maven in plain console-friendly mode ([#1301](https://www.github.com/googleapis/java-analytics-admin/issues/1301)) ([#326](https://www.github.com/googleapis/java-analytics-admin/issues/326)) ([e456449](https://www.github.com/googleapis/java-analytics-admin/commit/e4564497b94927eb550712364467cefa545ae1fe)) +* remove maximum_user_access field from FirebaseLink type ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) +* remove MaximumUserAccess enum from the API ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) +* remove UpdateFirebaseLink method from the API ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) +* rename email_address field of GoogleAdsLink type to creator_email_address ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) +* rename is_deletable field of ConversionEvent type to deletable ([3de05e5](https://www.github.com/googleapis/java-analytics-admin/commit/3de05e56d905d74ae7468aed7e66e24c685c5df6)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.0 ([#316](https://www.github.com/googleapis/java-analytics-admin/issues/316)) ([90be858](https://www.github.com/googleapis/java-analytics-admin/commit/90be858cd029c33b9c46962c12a89199c15c85c3)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.5.1 ([#321](https://www.github.com/googleapis/java-analytics-admin/issues/321)) ([6d31a66](https://www.github.com/googleapis/java-analytics-admin/commit/6d31a66c32ed7d16d10e0205f05790be76c92fe0)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v2.6.0 ([#329](https://www.github.com/googleapis/java-analytics-admin/issues/329)) ([462d2de](https://www.github.com/googleapis/java-analytics-admin/commit/462d2de3ca950782b90a46b978328c0f85300414)) + ### [0.6.2](https://www.github.com/googleapis/java-analytics-admin/compare/v0.6.1...v0.6.2) (2021-10-19) diff --git a/google-analytics-admin-bom/pom.xml b/google-analytics-admin-bom/pom.xml index 8103a03a..704f21bf 100644 --- a/google-analytics-admin-bom/pom.xml +++ b/google-analytics-admin-bom/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-admin-bom - 0.6.3-SNAPSHOT + 0.7.0 pom com.google.cloud @@ -56,17 +56,17 @@ com.google.analytics google-analytics-admin - 0.6.3-SNAPSHOT + 0.7.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.6.3-SNAPSHOT + 0.7.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.6.3-SNAPSHOT + 0.7.0 diff --git a/google-analytics-admin/pom.xml b/google-analytics-admin/pom.xml index 6f0ed58d..8d7ccb07 100644 --- a/google-analytics-admin/pom.xml +++ b/google-analytics-admin/pom.xml @@ -3,7 +3,7 @@ 4.0.0 com.google.analytics google-analytics-admin - 0.6.3-SNAPSHOT + 0.7.0 jar Google Analytics Admin https://github.com/googleapis/java-analytics-admin @@ -11,7 +11,7 @@ com.google.analytics google-analytics-admin-parent - 0.6.3-SNAPSHOT + 0.7.0 google-analytics-admin diff --git a/grpc-google-analytics-admin-v1alpha/pom.xml b/grpc-google-analytics-admin-v1alpha/pom.xml index d225e387..785b504f 100644 --- a/grpc-google-analytics-admin-v1alpha/pom.xml +++ b/grpc-google-analytics-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.6.3-SNAPSHOT + 0.7.0 grpc-google-analytics-admin-v1alpha GRPC library for grpc-google-analytics-admin-v1alpha com.google.analytics google-analytics-admin-parent - 0.6.3-SNAPSHOT + 0.7.0 diff --git a/pom.xml b/pom.xml index 31c05b4d..61d91267 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-admin-parent pom - 0.6.3-SNAPSHOT + 0.7.0 Google Analytics Admin Parent https://github.com/googleapis/java-analytics-admin @@ -61,17 +61,17 @@ com.google.analytics google-analytics-admin - 0.6.3-SNAPSHOT + 0.7.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.6.3-SNAPSHOT + 0.7.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.6.3-SNAPSHOT + 0.7.0 diff --git a/proto-google-analytics-admin-v1alpha/pom.xml b/proto-google-analytics-admin-v1alpha/pom.xml index 3af8e655..c2df7887 100644 --- a/proto-google-analytics-admin-v1alpha/pom.xml +++ b/proto-google-analytics-admin-v1alpha/pom.xml @@ -4,13 +4,13 @@ 4.0.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.6.3-SNAPSHOT + 0.7.0 proto-google-analytics-admin-v1alpha PROTO library for proto-google-analytics-admin-v1alpha com.google.analytics google-analytics-admin-parent - 0.6.3-SNAPSHOT + 0.7.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index c5bfbb2e..219b64d0 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-admin - 0.6.3-SNAPSHOT + 0.7.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index d1d1cc57..4dcdf226 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -27,7 +27,7 @@ com.google.analytics google-analytics-admin - 0.6.3-SNAPSHOT + 0.7.0 diff --git a/versions.txt b/versions.txt index 049dcd78..10d99785 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-admin:0.6.2:0.6.3-SNAPSHOT -grpc-google-analytics-admin-v1alpha:0.6.2:0.6.3-SNAPSHOT -proto-google-analytics-admin-v1alpha:0.6.2:0.6.3-SNAPSHOT +google-analytics-admin:0.7.0:0.7.0 +grpc-google-analytics-admin-v1alpha:0.7.0:0.7.0 +proto-google-analytics-admin-v1alpha:0.7.0:0.7.0