From 1e19379f8e29fc5f4870ded6ebdb7ae41155ec49 Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 25 Feb 2021 22:18:22 +0000 Subject: [PATCH 01/42] chore(master): release 0.3.3-SNAPSHOT (#178) :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 473dc3da..df53df10 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.3.2 + 0.3.3-SNAPSHOT pom com.google.cloud @@ -68,17 +68,17 @@ com.google.analytics google-analytics-admin - 0.3.2 + 0.3.3-SNAPSHOT com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.3.2 + 0.3.3-SNAPSHOT com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.3.2 + 0.3.3-SNAPSHOT diff --git a/google-analytics-admin/pom.xml b/google-analytics-admin/pom.xml index 677fdd79..3b7d7902 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.3.2 + 0.3.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.3.2 + 0.3.3-SNAPSHOT google-analytics-admin diff --git a/grpc-google-analytics-admin-v1alpha/pom.xml b/grpc-google-analytics-admin-v1alpha/pom.xml index 24728766..1719b925 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.3.2 + 0.3.3-SNAPSHOT grpc-google-analytics-admin-v1alpha GRPC library for grpc-google-analytics-admin-v1alpha com.google.analytics google-analytics-admin-parent - 0.3.2 + 0.3.3-SNAPSHOT diff --git a/pom.xml b/pom.xml index 2f5f6439..233325d7 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-admin-parent pom - 0.3.2 + 0.3.3-SNAPSHOT Google Analytics Admin Parent https://github.com/googleapis/java-analytics-admin @@ -70,17 +70,17 @@ com.google.analytics google-analytics-admin - 0.3.2 + 0.3.3-SNAPSHOT com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.3.2 + 0.3.3-SNAPSHOT com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.3.2 + 0.3.3-SNAPSHOT diff --git a/proto-google-analytics-admin-v1alpha/pom.xml b/proto-google-analytics-admin-v1alpha/pom.xml index a63ecaa9..bf2a6a1b 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.3.2 + 0.3.3-SNAPSHOT proto-google-analytics-admin-v1alpha PROTO library for proto-google-analytics-admin-v1alpha com.google.analytics google-analytics-admin-parent - 0.3.2 + 0.3.3-SNAPSHOT diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index f5c3891d..46c69bee 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-admin - 0.3.2 + 0.3.3-SNAPSHOT diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index cbdf3245..694d62bc 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -27,7 +27,7 @@ com.google.analytics google-analytics-admin - 0.3.2 + 0.3.3-SNAPSHOT diff --git a/versions.txt b/versions.txt index a4a45fa0..b3e3e1c5 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-admin:0.3.2:0.3.2 -proto-google-analytics-admin-v1alpha:0.3.2:0.3.2 -grpc-google-analytics-admin-v1alpha:0.3.2:0.3.2 \ No newline at end of file +google-analytics-admin:0.3.2:0.3.3-SNAPSHOT +proto-google-analytics-admin-v1alpha:0.3.2:0.3.3-SNAPSHOT +grpc-google-analytics-admin-v1alpha:0.3.2:0.3.3-SNAPSHOT \ No newline at end of file From e8d626908a020d4c1ea6ff0ff34afd5d65ae967a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 2 Mar 2021 10:40:03 -0800 Subject: [PATCH 02/42] fix: add `https://www.googleapis.com/auth/analytics.edit` OAuth2 scope to the list of acceptable scopes for all read only methods (#179) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/f4db069f-cbbf-4be2-82c8-2112cfa6e279/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 359531616 Source-Link: https://github.com/googleapis/googleapis/commit/2a9e7295e6fe864d0a748ff5a7c44d2da6e6d15a Source-Link: https://github.com/googleapis/googleapis-gen/commit/48cbe56ce46a7a917c5258213dfa63ee3b35839f docs: update the documentation of the `update_mask` field used by Update() methods --- .../v1alpha/AnalyticsAdminServiceClient.java | 112 +++++++++++++----- .../v1alpha/AnalyticsAdminServiceGrpc.java | 64 ++++++++-- .../admin/v1alpha/UpdateAccountRequest.java | 72 +++++------ .../UpdateAccountRequestOrBuilder.java | 18 +-- .../UpdateAndroidAppDataStreamRequest.java | 72 +++++------ ...eAndroidAppDataStreamRequestOrBuilder.java | 18 +-- ...ateEnhancedMeasurementSettingsRequest.java | 72 +++++------ ...edMeasurementSettingsRequestOrBuilder.java | 18 +-- .../v1alpha/UpdateFirebaseLinkRequest.java | 72 +++++------ .../UpdateFirebaseLinkRequestOrBuilder.java | 18 +-- .../v1alpha/UpdateGoogleAdsLinkRequest.java | 72 +++++------ .../UpdateGoogleAdsLinkRequestOrBuilder.java | 18 +-- .../UpdateIosAppDataStreamRequest.java | 72 +++++------ ...pdateIosAppDataStreamRequestOrBuilder.java | 18 +-- .../admin/v1alpha/UpdatePropertyRequest.java | 72 +++++------ .../UpdatePropertyRequestOrBuilder.java | 18 +-- .../v1alpha/UpdateWebDataStreamRequest.java | 72 +++++------ .../UpdateWebDataStreamRequestOrBuilder.java | 18 +-- .../admin/v1alpha/analytics_admin.proto | 70 ++++++----- .../analytics/admin/v1alpha/resources.proto | 2 +- synth.metadata | 6 +- 21 files changed, 543 insertions(+), 431 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 c9e82081..9c5cef10 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 @@ -487,9 +487,9 @@ public final UnaryCallable deleteAccountCallable() * * @param account Required. The account to update. The account's `name` field is used to identify * the account. - * @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 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 Account updateAccount(Account account, FieldMask updateMask) { @@ -1096,9 +1096,9 @@ public final UnaryCallable deletePropertyCallable( * * @param property Required. The property to update. The property's `name` field is used to * identify the property to be updated. - * @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 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 Property updateProperty(Property property, FieldMask updateMask) { @@ -2263,9 +2263,9 @@ public final UnaryCallable deleteWebDataStrea * * @param webDataStream Required. The web stream to update. The `name` field is used to identify * the web stream to be updated. - * @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 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 WebDataStream updateWebDataStream( @@ -2820,9 +2820,9 @@ public final void deleteIosAppDataStream(DeleteIosAppDataStreamRequest request) * * @param iosAppDataStream Required. The iOS app stream to update. The `name` field is used to * identify the iOS app stream to be updated. - * @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 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 IosAppDataStream updateIosAppDataStream( @@ -2888,7 +2888,13 @@ public final IosAppDataStream updateIosAppDataStream(UpdateIosAppDataStreamReque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an iOS app data stream with the specified location and attributes. + * Creates an iOS app stream with the specified location and attributes. + * + *

Note that an iOS app stream must be linked to a Firebase app to receive traffic. + * + *

To create a working app stream, make sure your property is linked to a Firebase project. + * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data + * stream in Analytics (may take up to 24 hours). * *

Sample code: * @@ -2919,7 +2925,13 @@ public final IosAppDataStream createIosAppDataStream( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an iOS app data stream with the specified location and attributes. + * Creates an iOS app stream with the specified location and attributes. + * + *

Note that an iOS app stream must be linked to a Firebase app to receive traffic. + * + *

To create a working app stream, make sure your property is linked to a Firebase project. + * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data + * stream in Analytics (may take up to 24 hours). * *

Sample code: * @@ -2950,7 +2962,13 @@ public final IosAppDataStream createIosAppDataStream( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an iOS app data stream with the specified location and attributes. + * Creates an iOS app stream with the specified location and attributes. + * + *

Note that an iOS app stream must be linked to a Firebase app to receive traffic. + * + *

To create a working app stream, make sure your property is linked to a Firebase project. + * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data + * stream in Analytics (may take up to 24 hours). * *

Sample code: * @@ -2975,7 +2993,13 @@ public final IosAppDataStream createIosAppDataStream(CreateIosAppDataStreamReque // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an iOS app data stream with the specified location and attributes. + * Creates an iOS app stream with the specified location and attributes. + * + *

Note that an iOS app stream must be linked to a Firebase app to receive traffic. + * + *

To create a working app stream, make sure your property is linked to a Firebase project. + * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data + * stream in Analytics (may take up to 24 hours). * *

Sample code: * @@ -3388,9 +3412,9 @@ public final void deleteAndroidAppDataStream(DeleteAndroidAppDataStreamRequest r * * @param androidAppDataStream Required. The android app stream to update. The `name` field is * used to identify the android app stream to be updated. - * @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 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 AndroidAppDataStream updateAndroidAppDataStream( @@ -3458,7 +3482,13 @@ public final AndroidAppDataStream updateAndroidAppDataStream( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an android app stream with the specified location and attributes. + * Creates an Android app stream with the specified location and attributes. + * + *

Note that an Android app stream must be linked to a Firebase app to receive traffic. + * + *

To create a working app stream, make sure your property is linked to a Firebase project. + * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data + * stream in Analytics (may take up to 24 hours). * *

Sample code: * @@ -3489,7 +3519,13 @@ public final AndroidAppDataStream createAndroidAppDataStream( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an android app stream with the specified location and attributes. + * Creates an Android app stream with the specified location and attributes. + * + *

Note that an Android app stream must be linked to a Firebase app to receive traffic. + * + *

To create a working app stream, make sure your property is linked to a Firebase project. + * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data + * stream in Analytics (may take up to 24 hours). * *

Sample code: * @@ -3521,7 +3557,13 @@ public final AndroidAppDataStream createAndroidAppDataStream( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an android app stream with the specified location and attributes. + * Creates an Android app stream with the specified location and attributes. + * + *

Note that an Android app stream must be linked to a Firebase app to receive traffic. + * + *

To create a working app stream, make sure your property is linked to a Firebase project. + * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data + * stream in Analytics (may take up to 24 hours). * *

Sample code: * @@ -3549,7 +3591,13 @@ public final AndroidAppDataStream createAndroidAppDataStream( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Creates an android app stream with the specified location and attributes. + * Creates an Android app stream with the specified location and attributes. + * + *

Note that an Android app stream must be linked to a Firebase app to receive traffic. + * + *

To create a working app stream, make sure your property is linked to a Firebase project. + * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data + * stream in Analytics (may take up to 24 hours). * *

Sample code: * @@ -3874,9 +3922,9 @@ public final EnhancedMeasurementSettings getEnhancedMeasurementSettings( * * @param enhancedMeasurementSettings 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. Omitted fields will not be - * updated. To replace the entire entity, use one path with the string "*" to match all - * fields. + * @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 EnhancedMeasurementSettings updateEnhancedMeasurementSettings( @@ -4077,9 +4125,9 @@ public final UnaryCallable createFireba * } * * @param firebaseLink Required. The Firebase link 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 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) { @@ -4606,9 +4654,9 @@ public final GoogleAdsLink createGoogleAdsLink(CreateGoogleAdsLinkRequest reques * } * * @param googleAdsLink The GoogleAdsLink 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 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 GoogleAdsLink updateGoogleAdsLink( 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 c5003b14..5f8fccf7 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 @@ -2871,7 +2871,13 @@ public void updateIosAppDataStream( * * *

-     * Creates an iOS app data stream with the specified location and attributes.
+     * Creates an iOS app stream with the specified location and attributes.
+     * Note that an iOS app stream must be linked to a Firebase app to receive
+     * traffic.
+     * To create a working app stream, make sure your property is linked to a
+     * Firebase project. Then, use the Firebase API to create a Firebase app,
+     * which will also create an appropriate data stream in Analytics (may take up
+     * to 24 hours).
      * 
*/ public void createIosAppDataStream( @@ -2943,7 +2949,13 @@ public void updateAndroidAppDataStream( * * *
-     * Creates an android app stream with the specified location and attributes.
+     * Creates an Android app stream with the specified location and attributes.
+     * Note that an Android app stream must be linked to a Firebase app to receive
+     * traffic.
+     * To create a working app stream, make sure your property is linked to a
+     * Firebase project. Then, use the Firebase API to create a Firebase app,
+     * which will also create an appropriate data stream in Analytics (may take up
+     * to 24 hours).
      * 
*/ public void createAndroidAppDataStream( @@ -4008,7 +4020,13 @@ public void updateIosAppDataStream( * * *
-     * Creates an iOS app data stream with the specified location and attributes.
+     * Creates an iOS app stream with the specified location and attributes.
+     * Note that an iOS app stream must be linked to a Firebase app to receive
+     * traffic.
+     * To create a working app stream, make sure your property is linked to a
+     * Firebase project. Then, use the Firebase API to create a Firebase app,
+     * which will also create an appropriate data stream in Analytics (may take up
+     * to 24 hours).
      * 
*/ public void createIosAppDataStream( @@ -4095,7 +4113,13 @@ public void updateAndroidAppDataStream( * * *
-     * Creates an android app stream with the specified location and attributes.
+     * Creates an Android app stream with the specified location and attributes.
+     * Note that an Android app stream must be linked to a Firebase app to receive
+     * traffic.
+     * To create a working app stream, make sure your property is linked to a
+     * Firebase project. Then, use the Firebase API to create a Firebase app,
+     * which will also create an appropriate data stream in Analytics (may take up
+     * to 24 hours).
      * 
*/ public void createAndroidAppDataStream( @@ -4760,7 +4784,13 @@ public com.google.analytics.admin.v1alpha.IosAppDataStream updateIosAppDataStrea * * *
-     * Creates an iOS app data stream with the specified location and attributes.
+     * Creates an iOS app stream with the specified location and attributes.
+     * Note that an iOS app stream must be linked to a Firebase app to receive
+     * traffic.
+     * To create a working app stream, make sure your property is linked to a
+     * Firebase project. Then, use the Firebase API to create a Firebase app,
+     * which will also create an appropriate data stream in Analytics (may take up
+     * to 24 hours).
      * 
*/ public com.google.analytics.admin.v1alpha.IosAppDataStream createIosAppDataStream( @@ -4827,7 +4857,13 @@ public com.google.analytics.admin.v1alpha.AndroidAppDataStream updateAndroidAppD * * *
-     * Creates an android app stream with the specified location and attributes.
+     * Creates an Android app stream with the specified location and attributes.
+     * Note that an Android app stream must be linked to a Firebase app to receive
+     * traffic.
+     * To create a working app stream, make sure your property is linked to a
+     * Firebase project. Then, use the Firebase API to create a Firebase app,
+     * which will also create an appropriate data stream in Analytics (may take up
+     * to 24 hours).
      * 
*/ public com.google.analytics.admin.v1alpha.AndroidAppDataStream createAndroidAppDataStream( @@ -5485,7 +5521,13 @@ protected AnalyticsAdminServiceFutureStub build( * * *
-     * Creates an iOS app data stream with the specified location and attributes.
+     * Creates an iOS app stream with the specified location and attributes.
+     * Note that an iOS app stream must be linked to a Firebase app to receive
+     * traffic.
+     * To create a working app stream, make sure your property is linked to a
+     * Firebase project. Then, use the Firebase API to create a Firebase app,
+     * which will also create an appropriate data stream in Analytics (may take up
+     * to 24 hours).
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -5561,7 +5603,13 @@ protected AnalyticsAdminServiceFutureStub build( * * *
-     * Creates an android app stream with the specified location and attributes.
+     * Creates an Android app stream with the specified location and attributes.
+     * Note that an Android app stream must be linked to a Firebase app to receive
+     * traffic.
+     * To create a working app stream, make sure your property is linked to a
+     * Firebase project. Then, use the Firebase API to create a Firebase app,
+     * which will also create an appropriate data stream in Analytics (may take up
+     * to 24 hours).
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java index 7ad3aff4..ba029004 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java @@ -196,9 +196,9 @@ public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() * * *
-   * 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.
+   * 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]; @@ -214,9 +214,9 @@ public 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.
+   * 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]; @@ -232,9 +232,9 @@ public 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.
+   * 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]; @@ -826,9 +826,9 @@ public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() * * *
-     * 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.
+     * 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]; @@ -843,9 +843,9 @@ public 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.
+     * 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]; @@ -866,9 +866,9 @@ public 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.
+     * 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]; @@ -891,9 +891,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * 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.
+     * 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]; @@ -913,9 +913,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * 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.
+     * 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]; @@ -940,9 +940,9 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * 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.
+     * 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]; @@ -963,9 +963,9 @@ public Builder clearUpdateMask() { * * *
-     * 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.
+     * 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]; @@ -980,9 +980,9 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * 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.
+     * 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]; @@ -1001,9 +1001,9 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * 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.
+     * 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/java/com/google/analytics/admin/v1alpha/UpdateAccountRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequestOrBuilder.java index 5edc91a9..d10a3e06 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequestOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequestOrBuilder.java @@ -71,9 +71,9 @@ public interface UpdateAccountRequestOrBuilder * * *
-   * 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.
+   * 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]; @@ -86,9 +86,9 @@ public interface UpdateAccountRequestOrBuilder * * *
-   * 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.
+   * 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]; @@ -101,9 +101,9 @@ public interface UpdateAccountRequestOrBuilder * * *
-   * 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.
+   * 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/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequest.java index 99d06d69..c829e275 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequest.java @@ -199,9 +199,9 @@ public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppData * * *
-   * 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.
+   * 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]; @@ -217,9 +217,9 @@ public 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.
+   * 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]; @@ -235,9 +235,9 @@ public 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.
+   * 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]; @@ -844,9 +844,9 @@ public Builder clearAndroidAppDataStream() { * * *
-     * 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.
+     * 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]; @@ -861,9 +861,9 @@ public 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.
+     * 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]; @@ -884,9 +884,9 @@ public 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.
+     * 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]; @@ -909,9 +909,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * 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.
+     * 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]; @@ -931,9 +931,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * 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.
+     * 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]; @@ -958,9 +958,9 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * 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.
+     * 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]; @@ -981,9 +981,9 @@ public Builder clearUpdateMask() { * * *
-     * 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.
+     * 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]; @@ -998,9 +998,9 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * 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.
+     * 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]; @@ -1019,9 +1019,9 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * 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.
+     * 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/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequestOrBuilder.java index a8fadd55..ecc55b89 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequestOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequestOrBuilder.java @@ -72,9 +72,9 @@ public interface UpdateAndroidAppDataStreamRequestOrBuilder * * *
-   * 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.
+   * 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]; @@ -87,9 +87,9 @@ public interface UpdateAndroidAppDataStreamRequestOrBuilder * * *
-   * 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.
+   * 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]; @@ -102,9 +102,9 @@ public interface UpdateAndroidAppDataStreamRequestOrBuilder * * *
-   * 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.
+   * 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/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequest.java index a129469e..8a84e47a 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequest.java @@ -204,9 +204,9 @@ public boolean hasEnhancedMeasurementSettings() { * * *
-   * 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.
+   * 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]; @@ -222,9 +222,9 @@ public 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.
+   * 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]; @@ -240,9 +240,9 @@ public 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.
+   * 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]; @@ -864,9 +864,9 @@ public Builder clearEnhancedMeasurementSettings() { * * *
-     * 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.
+     * 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]; @@ -881,9 +881,9 @@ public 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.
+     * 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]; @@ -904,9 +904,9 @@ public 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.
+     * 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]; @@ -929,9 +929,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * 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.
+     * 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]; @@ -951,9 +951,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * 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.
+     * 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]; @@ -978,9 +978,9 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * 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.
+     * 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]; @@ -1001,9 +1001,9 @@ public Builder clearUpdateMask() { * * *
-     * 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.
+     * 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]; @@ -1018,9 +1018,9 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * 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.
+     * 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]; @@ -1039,9 +1039,9 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * 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.
+     * 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/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequestOrBuilder.java index 8f09c18f..0a1d9b8f 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequestOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateEnhancedMeasurementSettingsRequestOrBuilder.java @@ -72,9 +72,9 @@ public interface UpdateEnhancedMeasurementSettingsRequestOrBuilder * * *
-   * 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.
+   * 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]; @@ -87,9 +87,9 @@ public interface UpdateEnhancedMeasurementSettingsRequestOrBuilder * * *
-   * 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.
+   * 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]; @@ -102,9 +102,9 @@ public interface UpdateEnhancedMeasurementSettingsRequestOrBuilder * * *
-   * 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.
+   * 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/java/com/google/analytics/admin/v1alpha/UpdateFirebaseLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateFirebaseLinkRequest.java index 8c77406b..c0302c7b 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/UpdateFirebaseLinkRequest.java @@ -193,9 +193,9 @@ public com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkO * * *
-   * 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.
+   * 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]; @@ -211,9 +211,9 @@ public 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.
+   * 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]; @@ -229,9 +229,9 @@ public 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.
+   * 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]; @@ -817,9 +817,9 @@ public com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkO * * *
-     * 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.
+     * 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]; @@ -834,9 +834,9 @@ public 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.
+     * 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]; @@ -857,9 +857,9 @@ public 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.
+     * 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]; @@ -882,9 +882,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * 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.
+     * 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]; @@ -904,9 +904,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * 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.
+     * 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]; @@ -931,9 +931,9 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * 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.
+     * 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]; @@ -954,9 +954,9 @@ public Builder clearUpdateMask() { * * *
-     * 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.
+     * 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]; @@ -971,9 +971,9 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * 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.
+     * 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]; @@ -992,9 +992,9 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * 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.
+     * 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/java/com/google/analytics/admin/v1alpha/UpdateFirebaseLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateFirebaseLinkRequestOrBuilder.java index 54a03f97..65d54283 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/UpdateFirebaseLinkRequestOrBuilder.java @@ -68,9 +68,9 @@ public interface UpdateFirebaseLinkRequestOrBuilder * * *
-   * 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.
+   * 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]; @@ -83,9 +83,9 @@ public interface UpdateFirebaseLinkRequestOrBuilder * * *
-   * 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.
+   * 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]; @@ -98,9 +98,9 @@ public interface UpdateFirebaseLinkRequestOrBuilder * * *
-   * 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.
+   * 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/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequest.java index db81e6fc..347f5eb9 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequest.java @@ -187,9 +187,9 @@ public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLin * * *
-   * 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.
+   * 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]; @@ -205,9 +205,9 @@ public 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.
+   * 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]; @@ -223,9 +223,9 @@ public 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.
+   * 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]; @@ -794,9 +794,9 @@ public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLin * * *
-     * 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.
+     * 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]; @@ -811,9 +811,9 @@ public 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.
+     * 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]; @@ -834,9 +834,9 @@ public 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.
+     * 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]; @@ -859,9 +859,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * 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.
+     * 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]; @@ -881,9 +881,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * 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.
+     * 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]; @@ -908,9 +908,9 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * 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.
+     * 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]; @@ -931,9 +931,9 @@ public Builder clearUpdateMask() { * * *
-     * 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.
+     * 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]; @@ -948,9 +948,9 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * 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.
+     * 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]; @@ -969,9 +969,9 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * 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.
+     * 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/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequestOrBuilder.java index 399b55e1..9a302809 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequestOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleAdsLinkRequestOrBuilder.java @@ -62,9 +62,9 @@ public interface UpdateGoogleAdsLinkRequestOrBuilder * * *
-   * 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.
+   * 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]; @@ -77,9 +77,9 @@ public interface UpdateGoogleAdsLinkRequestOrBuilder * * *
-   * 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.
+   * 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]; @@ -92,9 +92,9 @@ public interface UpdateGoogleAdsLinkRequestOrBuilder * * *
-   * 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.
+   * 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/java/com/google/analytics/admin/v1alpha/UpdateIosAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateIosAppDataStreamRequest.java index bf0b6144..93543ad1 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateIosAppDataStreamRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateIosAppDataStreamRequest.java @@ -198,9 +198,9 @@ public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream() * * *
-   * 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.
+   * 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]; @@ -216,9 +216,9 @@ public 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.
+   * 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]; @@ -234,9 +234,9 @@ public 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.
+   * 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]; @@ -836,9 +836,9 @@ public Builder clearIosAppDataStream() { * * *
-     * 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.
+     * 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]; @@ -853,9 +853,9 @@ public 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.
+     * 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]; @@ -876,9 +876,9 @@ public 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.
+     * 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]; @@ -901,9 +901,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * 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.
+     * 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]; @@ -923,9 +923,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * 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.
+     * 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]; @@ -950,9 +950,9 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * 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.
+     * 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]; @@ -973,9 +973,9 @@ public Builder clearUpdateMask() { * * *
-     * 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.
+     * 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]; @@ -990,9 +990,9 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * 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.
+     * 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]; @@ -1011,9 +1011,9 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * 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.
+     * 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/java/com/google/analytics/admin/v1alpha/UpdateIosAppDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateIosAppDataStreamRequestOrBuilder.java index 9931af4e..6eaa9606 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateIosAppDataStreamRequestOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateIosAppDataStreamRequestOrBuilder.java @@ -71,9 +71,9 @@ public interface UpdateIosAppDataStreamRequestOrBuilder * * *
-   * 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.
+   * 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]; @@ -86,9 +86,9 @@ public interface UpdateIosAppDataStreamRequestOrBuilder * * *
-   * 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.
+   * 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]; @@ -101,9 +101,9 @@ public interface UpdateIosAppDataStreamRequestOrBuilder * * *
-   * 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.
+   * 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/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequest.java index ebdecd6b..23d6bb82 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequest.java @@ -199,9 +199,9 @@ public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder * * *
-   * 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.
+   * 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]; @@ -217,9 +217,9 @@ public 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.
+   * 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]; @@ -235,9 +235,9 @@ public 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.
+   * 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]; @@ -839,9 +839,9 @@ public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder * * *
-     * 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.
+     * 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]; @@ -856,9 +856,9 @@ public 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.
+     * 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]; @@ -879,9 +879,9 @@ public 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.
+     * 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]; @@ -904,9 +904,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * 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.
+     * 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]; @@ -926,9 +926,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * 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.
+     * 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]; @@ -953,9 +953,9 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * 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.
+     * 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]; @@ -976,9 +976,9 @@ public Builder clearUpdateMask() { * * *
-     * 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.
+     * 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]; @@ -993,9 +993,9 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * 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.
+     * 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]; @@ -1014,9 +1014,9 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * 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.
+     * 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/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequestOrBuilder.java index ebc593a5..bad68db8 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequestOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdatePropertyRequestOrBuilder.java @@ -74,9 +74,9 @@ public interface UpdatePropertyRequestOrBuilder * * *
-   * 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.
+   * 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]; @@ -89,9 +89,9 @@ public interface UpdatePropertyRequestOrBuilder * * *
-   * 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.
+   * 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]; @@ -104,9 +104,9 @@ public interface UpdatePropertyRequestOrBuilder * * *
-   * 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.
+   * 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/java/com/google/analytics/admin/v1alpha/UpdateWebDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateWebDataStreamRequest.java index cbafdfa8..d28636dc 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateWebDataStreamRequest.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateWebDataStreamRequest.java @@ -196,9 +196,9 @@ public com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStrea * * *
-   * 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.
+   * 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]; @@ -214,9 +214,9 @@ public 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.
+   * 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]; @@ -232,9 +232,9 @@ public 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.
+   * 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]; @@ -830,9 +830,9 @@ public com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStrea * * *
-     * 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.
+     * 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]; @@ -847,9 +847,9 @@ public 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.
+     * 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]; @@ -870,9 +870,9 @@ public 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.
+     * 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]; @@ -895,9 +895,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * 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.
+     * 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]; @@ -917,9 +917,9 @@ public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForVal * * *
-     * 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.
+     * 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]; @@ -944,9 +944,9 @@ public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { * * *
-     * 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.
+     * 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]; @@ -967,9 +967,9 @@ public Builder clearUpdateMask() { * * *
-     * 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.
+     * 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]; @@ -984,9 +984,9 @@ public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { * * *
-     * 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.
+     * 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]; @@ -1005,9 +1005,9 @@ public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { * * *
-     * 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.
+     * 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/java/com/google/analytics/admin/v1alpha/UpdateWebDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateWebDataStreamRequestOrBuilder.java index 4af777c1..e0f3c21c 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateWebDataStreamRequestOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateWebDataStreamRequestOrBuilder.java @@ -71,9 +71,9 @@ public interface UpdateWebDataStreamRequestOrBuilder * * *
-   * 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.
+   * 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]; @@ -86,9 +86,9 @@ public interface UpdateWebDataStreamRequestOrBuilder * * *
-   * 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.
+   * 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]; @@ -101,9 +101,9 @@ public interface UpdateWebDataStreamRequestOrBuilder * * *
-   * 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.
+   * 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/analytics_admin.proto b/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto index c5a7308c..712cc601 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 @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// 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. @@ -358,7 +358,15 @@ service AnalyticsAdminService { option (google.api.method_signature) = "ios_app_data_stream,update_mask"; } - // Creates an iOS app data stream with the specified location and attributes. + // Creates an iOS app stream with the specified location and attributes. + // + // Note that an iOS app stream must be linked to a Firebase app to receive + // traffic. + // + // To create a working app stream, make sure your property is linked to a + // Firebase project. Then, use the Firebase API to create a Firebase app, + // which will also create an appropriate data stream in Analytics (may take up + // to 24 hours). rpc CreateIosAppDataStream(CreateIosAppDataStreamRequest) returns (IosAppDataStream) { option (google.api.http) = { post: "/v1alpha/{parent=properties/*}/iosAppDataStreams" @@ -403,7 +411,15 @@ service AnalyticsAdminService { option (google.api.method_signature) = "android_app_data_stream,update_mask"; } - // Creates an android app stream with the specified location and attributes. + // Creates an Android app stream with the specified location and attributes. + // + // Note that an Android app stream must be linked to a Firebase app to receive + // traffic. + // + // To create a working app stream, make sure your property is linked to a + // Firebase project. Then, use the Firebase API to create a Firebase app, + // which will also create an appropriate data stream in Analytics (may take up + // to 24 hours). rpc CreateAndroidAppDataStream(CreateAndroidAppDataStreamRequest) returns (AndroidAppDataStream) { option (google.api.http) = { post: "/v1alpha/{parent=properties/*}/androidAppDataStreams" @@ -596,9 +612,9 @@ message UpdateAccountRequest { // The account's `name` field is used to identify the account. Account account = 1 [(google.api.field_behavior) = REQUIRED]; - // 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. + // 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]; } @@ -683,9 +699,9 @@ message UpdatePropertyRequest { // updated. Property property = 1 [(google.api.field_behavior) = REQUIRED]; - // 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. + // 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]; } @@ -962,9 +978,9 @@ message UpdateWebDataStreamRequest { // The `name` field is used to identify the web stream to be updated. WebDataStream web_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - // 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. + // 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]; } @@ -1049,9 +1065,9 @@ message UpdateIosAppDataStreamRequest { // The `name` field is used to identify the iOS app stream to be updated. IosAppDataStream ios_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - // 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. + // 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]; } @@ -1136,9 +1152,9 @@ message UpdateAndroidAppDataStreamRequest { // The `name` field is used to identify the android app stream to be updated. AndroidAppDataStream android_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - // 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. + // 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]; } @@ -1213,9 +1229,9 @@ message UpdateEnhancedMeasurementSettingsRequest { // The `name` field is used to identify the settings to be updated. EnhancedMeasurementSettings enhanced_measurement_settings = 1 [(google.api.field_behavior) = REQUIRED]; - // 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. + // 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]; } @@ -1239,9 +1255,9 @@ 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. Omitted fields will not be updated. - // To replace the entire entity, use one path with the string "*" to match - // all fields. + // 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]; } @@ -1326,9 +1342,9 @@ message UpdateGoogleAdsLinkRequest { // The GoogleAdsLink to update GoogleAdsLink google_ads_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. + // 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 41044dec..3dfa5422 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 @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// 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. diff --git a/synth.metadata b/synth.metadata index be8b54d4..d516fe85 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-analytics-admin.git", - "sha": "f329dc74b5a29b35d5efb97e611cb5f6ced2d746" + "sha": "1e19379f8e29fc5f4870ded6ebdb7ae41155ec49" } }, { "git": { "name": "googleapis-gen", "remote": "https://github.com/googleapis/googleapis-gen.git", - "sha": "9d14cd16d94886f7f10a243e1b5a6876946f32bb", - "internalRef": "358516065" + "sha": "48cbe56ce46a7a917c5258213dfa63ee3b35839f", + "internalRef": "359531616" } }, { From 55d2f4eae090b9358e591dd0ce591410de6e031f Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 2 Mar 2021 10:48:03 -0800 Subject: [PATCH 03/42] chore: regenerate README (#181) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2021-03-02 18:42:17,942 synthtool [DEBUG] > Executing /root/.cache/synthtool/java-analytics-admin/.github/readme/synth.py. On branch autosynth-readme nothing to commit, working tree clean 2021-03-02 18:42:18,895 synthtool [DEBUG] > Wrote metadata to .github/readme/synth.metadata/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/ec38e3c1-466b-4ca8-9186-c648d40fed4f/targets - [ ] To automatically regenerate this PR, check this box. --- .github/readme/synth.metadata/synth.metadata | 4 ++-- README.md | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/readme/synth.metadata/synth.metadata b/.github/readme/synth.metadata/synth.metadata index 1626728d..a98a065a 100644 --- a/.github/readme/synth.metadata/synth.metadata +++ b/.github/readme/synth.metadata/synth.metadata @@ -4,14 +4,14 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-analytics-admin.git", - "sha": "75db8701c1bb6b130e7f4399f71d13d84088c5f2" + "sha": "e8d626908a020d4c1ea6ff0ff34afd5d65ae967a" } }, { "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "8c5628b86cfa8386de7b8fc1675e6b528b552d57" + "sha": "21da7d9fa02f6916d9f87cf4072b3547b5c72eb5" } } ] diff --git a/README.md b/README.md index 26c33f11..6b2c16ec 100644 --- a/README.md +++ b/README.md @@ -20,18 +20,18 @@ If you are using Maven, add this to your pom.xml file: com.google.analytics google-analytics-admin - 0.3.1 + 0.3.2 ``` If you are using Gradle without BOM, add this to your dependencies ```Groovy -compile 'com.google.analytics:google-analytics-admin:0.3.1' +compile 'com.google.analytics:google-analytics-admin:0.3.2' ``` If you are using SBT, add this to your dependencies ```Scala -libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.3.1" +libraryDependencies += "com.google.analytics" % "google-analytics-admin" % "0.3.2" ``` ## Authentication From ec0a0c3aa62d10b7b502a0c3038bfa2d2e40f96c Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 2 Mar 2021 16:44:30 -0800 Subject: [PATCH 04/42] chore: remove docLava v2 doc generation (#182) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/dd48a04e-1b79-4cf2-bbe1-c31ca37cdd54/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/21da7d9fa02f6916d9f87cf4072b3547b5c72eb5 --- .kokoro/release/publish_javadoc.cfg | 8 +------- .kokoro/release/publish_javadoc.sh | 19 ------------------- synth.metadata | 4 ++-- 3 files changed, 3 insertions(+), 28 deletions(-) diff --git a/.kokoro/release/publish_javadoc.cfg b/.kokoro/release/publish_javadoc.cfg index 9b412b10..3a4b2976 100644 --- a/.kokoro/release/publish_javadoc.cfg +++ b/.kokoro/release/publish_javadoc.cfg @@ -7,12 +7,6 @@ env_vars: { value: "docs-staging" } -# cloud-rad staging -env_vars: { - key: "STAGING_BUCKET_V2" - value: "docs-staging-v2-staging" -} - env_vars: { key: "TRAMPOLINE_BUILD_FILE" value: "github/java-analytics-admin/.kokoro/release/publish_javadoc.sh" @@ -26,4 +20,4 @@ before_action { keyname: "docuploader_service_account" } } -} \ No newline at end of file +} diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh index 58b8f331..1d1cc36b 100755 --- a/.kokoro/release/publish_javadoc.sh +++ b/.kokoro/release/publish_javadoc.sh @@ -56,22 +56,3 @@ python3 -m docuploader create-metadata \ python3 -m docuploader upload . \ --credentials ${CREDENTIALS} \ --staging-bucket ${STAGING_BUCKET} - -popd - -# V2 due to problems w/ the released javadoc plugin doclava, Java 8 is required. Beware of accidental updates. - -mvn clean site -B -q -Ddevsite.template="${KOKORO_GFILE_DIR}/java/" - -pushd target/devsite/reference - -# create metadata -python3 -m docuploader create-metadata \ - --name ${NAME} \ - --version ${VERSION} \ - --language java - -# upload docs to staging bucket -python3 -m docuploader upload . \ - --credentials ${CREDENTIALS} \ - --staging-bucket ${STAGING_BUCKET_V2} diff --git a/synth.metadata b/synth.metadata index d516fe85..79dc28f2 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-analytics-admin.git", - "sha": "1e19379f8e29fc5f4870ded6ebdb7ae41155ec49" + "sha": "55d2f4eae090b9358e591dd0ce591410de6e031f" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "6946fd71ae9215b0e7ae188f5057df765ee6d7d2" + "sha": "21da7d9fa02f6916d9f87cf4072b3547b5c72eb5" } } ], From f6e1f2f7f1a8e9b540d821e684862b7cc12f0144 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 4 Mar 2021 08:06:27 -0800 Subject: [PATCH 05/42] chore(release): update Java microgenerator to 1.0.1 (#183) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/292a5080-ebe0-4c71-bb68-8d2f16e9a67e/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 360805639 Source-Link: https://github.com/googleapis/googleapis/commit/3befd26ca55723d3e8111909331eac1249837987 Source-Link: https://github.com/googleapis/googleapis-gen/commit/1ad043d44370c3639640b1f1f549296c005448f5 --- .../admin/v1alpha/AnalyticsAdminServiceClient.java | 2 +- .../admin/v1alpha/AnalyticsAdminServiceSettings.java | 2 +- .../com/google/analytics/admin/v1alpha/package-info.java | 2 +- .../admin/v1alpha/stub/AnalyticsAdminServiceStub.java | 2 +- .../v1alpha/stub/AnalyticsAdminServiceStubSettings.java | 2 +- .../stub/GrpcAnalyticsAdminServiceCallableFactory.java | 2 +- .../admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java | 2 +- .../admin/v1alpha/AnalyticsAdminServiceClientTest.java | 2 +- .../analytics/admin/v1alpha/MockAnalyticsAdminService.java | 2 +- .../admin/v1alpha/MockAnalyticsAdminServiceImpl.java | 2 +- .../com/google/analytics/admin/v1alpha/AccountName.java | 2 +- .../google/analytics/admin/v1alpha/AccountSummaryName.java | 2 +- .../analytics/admin/v1alpha/AndroidAppDataStreamName.java | 2 +- .../analytics/admin/v1alpha/DataSharingSettingsName.java | 2 +- .../admin/v1alpha/EnhancedMeasurementSettingsName.java | 2 +- .../google/analytics/admin/v1alpha/FirebaseLinkName.java | 2 +- .../google/analytics/admin/v1alpha/GlobalSiteTagName.java | 2 +- .../google/analytics/admin/v1alpha/GoogleAdsLinkName.java | 2 +- .../analytics/admin/v1alpha/IosAppDataStreamName.java | 2 +- .../com/google/analytics/admin/v1alpha/PropertyName.java | 2 +- .../com/google/analytics/admin/v1alpha/UserLinkName.java | 2 +- .../google/analytics/admin/v1alpha/WebDataStreamName.java | 2 +- synth.metadata | 6 +++--- 23 files changed, 25 insertions(+), 25 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 9c5cef10..0a35a77f 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 @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. 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 1c99ca03..76363c43 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 @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/package-info.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/package-info.java index ddd2fd62..fbc24934 100644 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/package-info.java +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. 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 7b55092d..56884cc3 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 @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. 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 07b5b2f4..16fa8920 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 @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceCallableFactory.java b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceCallableFactory.java index 1bf78621..bf667ac9 100644 --- a/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceCallableFactory.java +++ b/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. 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 581c329c..a70347a9 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 @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. 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 8ff79722..16380982 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 @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminService.java b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminService.java index dfb12185..0575d8bc 100644 --- a/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminService.java +++ b/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminService.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. 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 67608409..f77f22ff 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 @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountName.java index ccfa5292..f8147f6b 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountName.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryName.java index 3e560362..200a9444 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryName.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStreamName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStreamName.java index cc0b3277..0fe0cca9 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStreamName.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStreamName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsName.java index fb685bb3..ece341ae 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsName.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsName.java index cd54f7c1..635da2a6 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsName.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/EnhancedMeasurementSettingsName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkName.java index 6a3724b4..ce8dc214 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkName.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagName.java index 53b40a6a..d85fc90d 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagName.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkName.java index 91246c4f..6fb8423f 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkName.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStreamName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStreamName.java index 52915f6f..3235c77e 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStreamName.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/IosAppDataStreamName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyName.java index e4e7ebc7..1fce097c 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyName.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkName.java index e07131ea..0a68da91 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkName.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStreamName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStreamName.java index b9f43cfc..b9faebf4 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStreamName.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/WebDataStreamName.java @@ -1,5 +1,5 @@ /* - * Copyright 2020 Google LLC + * 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. diff --git a/synth.metadata b/synth.metadata index 79dc28f2..1da001ac 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-analytics-admin.git", - "sha": "55d2f4eae090b9358e591dd0ce591410de6e031f" + "sha": "ec0a0c3aa62d10b7b502a0c3038bfa2d2e40f96c" } }, { "git": { "name": "googleapis-gen", "remote": "https://github.com/googleapis/googleapis-gen.git", - "sha": "48cbe56ce46a7a917c5258213dfa63ee3b35839f", - "internalRef": "359531616" + "sha": "1ad043d44370c3639640b1f1f549296c005448f5", + "internalRef": "360805639" } }, { From b0428f37d98e7d34458331d66e2c757904638787 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 4 Mar 2021 15:54:05 -0800 Subject: [PATCH 06/42] chore: copy README to docfx-yml dir (#184) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/69766c45-5159-4300-b6d1-f7a09f78f2ab/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/d0bdade9a962042dc0f770cf631086f3db59b5b0 --- .kokoro/release/publish_javadoc11.sh | 5 ++++- synth.metadata | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index 29b4cd3c..938e2629 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -40,6 +40,9 @@ export VERSION=$(grep ${NAME}: versions.txt | cut -d: -f3) # 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 + pushd target/docfx-yml # create metadata @@ -52,4 +55,4 @@ python3 -m docuploader create-metadata \ python3 -m docuploader upload . \ --credentials ${CREDENTIALS} \ --staging-bucket ${STAGING_BUCKET_V2} \ - --destination-prefix docfx- + --destination-prefix docfx diff --git a/synth.metadata b/synth.metadata index 1da001ac..da05fa1a 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-analytics-admin.git", - "sha": "ec0a0c3aa62d10b7b502a0c3038bfa2d2e40f96c" + "sha": "f6e1f2f7f1a8e9b540d821e684862b7cc12f0144" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "21da7d9fa02f6916d9f87cf4072b3547b5c72eb5" + "sha": "d0bdade9a962042dc0f770cf631086f3db59b5b0" } } ], From 4821d34b98dc470928874ef2e3996c80fb88ee54 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 8 Mar 2021 08:26:03 -0800 Subject: [PATCH 07/42] chore: update gax-java dependency to 1.62 (#185) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/91814418-9239-4513-8d8f-fda3fa752a45/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 361377784 Source-Link: https://github.com/googleapis/googleapis/commit/0e915217fb5261c1e57bfaf0e16ee5c7feaaba89 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ba5ec70708cd72caa1692a95ce57891e3ade61dd --- .../v1alpha/AnalyticsAdminServiceGrpc.java | 547 ++++++++++-------- synth.metadata | 6 +- 2 files changed, 305 insertions(+), 248 deletions(-) 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 5f8fccf7..cccda831 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 @@ -16,11 +16,6 @@ package com.google.analytics.admin.v1alpha; import static io.grpc.MethodDescriptor.generateFullMethodName; -import static io.grpc.stub.ClientCalls.asyncUnaryCall; -import static io.grpc.stub.ClientCalls.blockingUnaryCall; -import static io.grpc.stub.ClientCalls.futureUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnaryCall; -import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall; /** * @@ -2449,7 +2444,7 @@ public abstract static class AnalyticsAdminServiceImplBase implements io.grpc.Bi public void getAccount( com.google.analytics.admin.v1alpha.GetAccountRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAccountMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccountMethod(), responseObserver); } /** @@ -2466,7 +2461,8 @@ public void listAccounts( com.google.analytics.admin.v1alpha.ListAccountsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListAccountsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAccountsMethod(), responseObserver); } /** @@ -2486,7 +2482,8 @@ public void listAccounts( public void deleteAccount( com.google.analytics.admin.v1alpha.DeleteAccountRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteAccountMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAccountMethod(), responseObserver); } /** @@ -2499,7 +2496,8 @@ public void deleteAccount( public void updateAccount( com.google.analytics.admin.v1alpha.UpdateAccountRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateAccountMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAccountMethod(), responseObserver); } /** @@ -2514,7 +2512,8 @@ public void provisionAccountTicket( io.grpc.stub.StreamObserver< com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse> responseObserver) { - asyncUnimplementedUnaryCall(getProvisionAccountTicketMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getProvisionAccountTicketMethod(), responseObserver); } /** @@ -2528,7 +2527,8 @@ public void listAccountSummaries( com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListAccountSummariesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAccountSummariesMethod(), responseObserver); } /** @@ -2541,7 +2541,8 @@ public void listAccountSummaries( public void getProperty( com.google.analytics.admin.v1alpha.GetPropertyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetPropertyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetPropertyMethod(), responseObserver); } /** @@ -2559,7 +2560,8 @@ public void listProperties( com.google.analytics.admin.v1alpha.ListPropertiesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListPropertiesMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListPropertiesMethod(), responseObserver); } /** @@ -2572,7 +2574,8 @@ public void listProperties( public void createProperty( com.google.analytics.admin.v1alpha.CreatePropertyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreatePropertyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreatePropertyMethod(), responseObserver); } /** @@ -2592,7 +2595,8 @@ public void createProperty( public void deleteProperty( com.google.analytics.admin.v1alpha.DeletePropertyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeletePropertyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeletePropertyMethod(), responseObserver); } /** @@ -2605,7 +2609,8 @@ public void deleteProperty( public void updateProperty( com.google.analytics.admin.v1alpha.UpdatePropertyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdatePropertyMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdatePropertyMethod(), responseObserver); } /** @@ -2618,7 +2623,8 @@ public void updateProperty( public void getUserLink( com.google.analytics.admin.v1alpha.GetUserLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetUserLinkMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetUserLinkMethod(), responseObserver); } /** @@ -2632,7 +2638,8 @@ public void batchGetUserLinks( com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBatchGetUserLinksMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchGetUserLinksMethod(), responseObserver); } /** @@ -2646,7 +2653,8 @@ public void listUserLinks( com.google.analytics.admin.v1alpha.ListUserLinksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListUserLinksMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListUserLinksMethod(), responseObserver); } /** @@ -2667,7 +2675,8 @@ public void auditUserLinks( com.google.analytics.admin.v1alpha.AuditUserLinksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getAuditUserLinksMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAuditUserLinksMethod(), responseObserver); } /** @@ -2683,7 +2692,8 @@ public void auditUserLinks( public void createUserLink( com.google.analytics.admin.v1alpha.CreateUserLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateUserLinkMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateUserLinkMethod(), responseObserver); } /** @@ -2699,7 +2709,8 @@ public void batchCreateUserLinks( com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBatchCreateUserLinksMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchCreateUserLinksMethod(), responseObserver); } /** @@ -2712,7 +2723,8 @@ public void batchCreateUserLinks( public void updateUserLink( com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateUserLinkMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateUserLinkMethod(), responseObserver); } /** @@ -2726,7 +2738,8 @@ public void batchUpdateUserLinks( com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBatchUpdateUserLinksMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchUpdateUserLinksMethod(), responseObserver); } /** @@ -2739,7 +2752,8 @@ public void batchUpdateUserLinks( public void deleteUserLink( com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteUserLinkMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteUserLinkMethod(), responseObserver); } /** @@ -2752,7 +2766,8 @@ public void deleteUserLink( public void batchDeleteUserLinks( com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getBatchDeleteUserLinksMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getBatchDeleteUserLinksMethod(), responseObserver); } /** @@ -2766,7 +2781,8 @@ public void getWebDataStream( com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetWebDataStreamMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetWebDataStreamMethod(), responseObserver); } /** @@ -2779,7 +2795,8 @@ public void getWebDataStream( public void deleteWebDataStream( com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteWebDataStreamMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteWebDataStreamMethod(), responseObserver); } /** @@ -2793,7 +2810,8 @@ public void updateWebDataStream( com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateWebDataStreamMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateWebDataStreamMethod(), responseObserver); } /** @@ -2807,7 +2825,8 @@ public void createWebDataStream( com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateWebDataStreamMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateWebDataStreamMethod(), responseObserver); } /** @@ -2823,7 +2842,8 @@ public void listWebDataStreams( com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListWebDataStreamsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListWebDataStreamsMethod(), responseObserver); } /** @@ -2837,7 +2857,8 @@ public void getIosAppDataStream( com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetIosAppDataStreamMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIosAppDataStreamMethod(), responseObserver); } /** @@ -2850,7 +2871,8 @@ public void getIosAppDataStream( public void deleteIosAppDataStream( com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteIosAppDataStreamMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteIosAppDataStreamMethod(), responseObserver); } /** @@ -2864,7 +2886,8 @@ public void updateIosAppDataStream( com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateIosAppDataStreamMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateIosAppDataStreamMethod(), responseObserver); } /** @@ -2884,7 +2907,8 @@ public void createIosAppDataStream( com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateIosAppDataStreamMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateIosAppDataStreamMethod(), responseObserver); } /** @@ -2901,7 +2925,8 @@ public void listIosAppDataStreams( io.grpc.stub.StreamObserver< com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> responseObserver) { - asyncUnimplementedUnaryCall(getListIosAppDataStreamsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListIosAppDataStreamsMethod(), responseObserver); } /** @@ -2915,7 +2940,8 @@ public void getAndroidAppDataStream( com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetAndroidAppDataStreamMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAndroidAppDataStreamMethod(), responseObserver); } /** @@ -2928,7 +2954,8 @@ public void getAndroidAppDataStream( public void deleteAndroidAppDataStream( com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteAndroidAppDataStreamMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAndroidAppDataStreamMethod(), responseObserver); } /** @@ -2942,7 +2969,8 @@ public void updateAndroidAppDataStream( com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateAndroidAppDataStreamMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAndroidAppDataStreamMethod(), responseObserver); } /** @@ -2962,7 +2990,8 @@ public void createAndroidAppDataStream( com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateAndroidAppDataStreamMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAndroidAppDataStreamMethod(), responseObserver); } /** @@ -2979,7 +3008,8 @@ public void listAndroidAppDataStreams( io.grpc.stub.StreamObserver< com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> responseObserver) { - asyncUnimplementedUnaryCall(getListAndroidAppDataStreamsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAndroidAppDataStreamsMethod(), responseObserver); } /** @@ -2995,7 +3025,8 @@ public void getEnhancedMeasurementSettings( com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetEnhancedMeasurementSettingsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEnhancedMeasurementSettingsMethod(), responseObserver); } /** @@ -3011,7 +3042,8 @@ public void updateEnhancedMeasurementSettings( com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateEnhancedMeasurementSettingsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateEnhancedMeasurementSettingsMethod(), responseObserver); } /** @@ -3026,7 +3058,8 @@ public void createFirebaseLink( com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateFirebaseLinkMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateFirebaseLinkMethod(), responseObserver); } /** @@ -3040,7 +3073,8 @@ public void updateFirebaseLink( com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateFirebaseLinkMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateFirebaseLinkMethod(), responseObserver); } /** @@ -3053,7 +3087,8 @@ public void updateFirebaseLink( public void deleteFirebaseLink( com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteFirebaseLinkMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFirebaseLinkMethod(), responseObserver); } /** @@ -3068,7 +3103,8 @@ public void listFirebaseLinks( com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListFirebaseLinksMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFirebaseLinksMethod(), responseObserver); } /** @@ -3083,7 +3119,8 @@ public void getGlobalSiteTag( com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetGlobalSiteTagMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetGlobalSiteTagMethod(), responseObserver); } /** @@ -3097,7 +3134,8 @@ public void createGoogleAdsLink( com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getCreateGoogleAdsLinkMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateGoogleAdsLinkMethod(), responseObserver); } /** @@ -3111,7 +3149,8 @@ public void updateGoogleAdsLink( com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getUpdateGoogleAdsLinkMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateGoogleAdsLinkMethod(), responseObserver); } /** @@ -3124,7 +3163,8 @@ public void updateGoogleAdsLink( public void deleteGoogleAdsLink( com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getDeleteGoogleAdsLinkMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteGoogleAdsLinkMethod(), responseObserver); } /** @@ -3138,7 +3178,8 @@ public void listGoogleAdsLinks( com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getListGoogleAdsLinksMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListGoogleAdsLinksMethod(), responseObserver); } /** @@ -3153,7 +3194,8 @@ public void getDataSharingSettings( com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnimplementedUnaryCall(getGetDataSharingSettingsMethod(), responseObserver); + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataSharingSettingsMethod(), responseObserver); } @java.lang.Override @@ -3161,321 +3203,321 @@ public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getGetAccountMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.GetAccountRequest, com.google.analytics.admin.v1alpha.Account>(this, METHODID_GET_ACCOUNT))) .addMethod( getListAccountsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.ListAccountsRequest, com.google.analytics.admin.v1alpha.ListAccountsResponse>( this, METHODID_LIST_ACCOUNTS))) .addMethod( getDeleteAccountMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.DeleteAccountRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_ACCOUNT))) .addMethod( getUpdateAccountMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.UpdateAccountRequest, com.google.analytics.admin.v1alpha.Account>(this, METHODID_UPDATE_ACCOUNT))) .addMethod( getProvisionAccountTicketMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest, com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse>( this, METHODID_PROVISION_ACCOUNT_TICKET))) .addMethod( getListAccountSummariesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.ListAccountSummariesRequest, com.google.analytics.admin.v1alpha.ListAccountSummariesResponse>( this, METHODID_LIST_ACCOUNT_SUMMARIES))) .addMethod( getGetPropertyMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.GetPropertyRequest, com.google.analytics.admin.v1alpha.Property>(this, METHODID_GET_PROPERTY))) .addMethod( getListPropertiesMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.ListPropertiesRequest, com.google.analytics.admin.v1alpha.ListPropertiesResponse>( this, METHODID_LIST_PROPERTIES))) .addMethod( getCreatePropertyMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.CreatePropertyRequest, com.google.analytics.admin.v1alpha.Property>(this, METHODID_CREATE_PROPERTY))) .addMethod( getDeletePropertyMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.DeletePropertyRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_PROPERTY))) .addMethod( getUpdatePropertyMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.UpdatePropertyRequest, com.google.analytics.admin.v1alpha.Property>(this, METHODID_UPDATE_PROPERTY))) .addMethod( getGetUserLinkMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.GetUserLinkRequest, com.google.analytics.admin.v1alpha.UserLink>(this, METHODID_GET_USER_LINK))) .addMethod( getBatchGetUserLinksMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest, com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse>( this, METHODID_BATCH_GET_USER_LINKS))) .addMethod( getListUserLinksMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.ListUserLinksRequest, com.google.analytics.admin.v1alpha.ListUserLinksResponse>( this, METHODID_LIST_USER_LINKS))) .addMethod( getAuditUserLinksMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.AuditUserLinksRequest, com.google.analytics.admin.v1alpha.AuditUserLinksResponse>( this, METHODID_AUDIT_USER_LINKS))) .addMethod( getCreateUserLinkMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.CreateUserLinkRequest, com.google.analytics.admin.v1alpha.UserLink>( this, METHODID_CREATE_USER_LINK))) .addMethod( getBatchCreateUserLinksMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest, com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse>( this, METHODID_BATCH_CREATE_USER_LINKS))) .addMethod( getUpdateUserLinkMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.UpdateUserLinkRequest, com.google.analytics.admin.v1alpha.UserLink>( this, METHODID_UPDATE_USER_LINK))) .addMethod( getBatchUpdateUserLinksMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest, com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse>( this, METHODID_BATCH_UPDATE_USER_LINKS))) .addMethod( getDeleteUserLinkMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.DeleteUserLinkRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_USER_LINK))) .addMethod( getBatchDeleteUserLinksMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest, com.google.protobuf.Empty>(this, METHODID_BATCH_DELETE_USER_LINKS))) .addMethod( getGetWebDataStreamMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.GetWebDataStreamRequest, com.google.analytics.admin.v1alpha.WebDataStream>( this, METHODID_GET_WEB_DATA_STREAM))) .addMethod( getDeleteWebDataStreamMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_WEB_DATA_STREAM))) .addMethod( getUpdateWebDataStreamMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest, com.google.analytics.admin.v1alpha.WebDataStream>( this, METHODID_UPDATE_WEB_DATA_STREAM))) .addMethod( getCreateWebDataStreamMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest, com.google.analytics.admin.v1alpha.WebDataStream>( this, METHODID_CREATE_WEB_DATA_STREAM))) .addMethod( getListWebDataStreamsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest, com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse>( this, METHODID_LIST_WEB_DATA_STREAMS))) .addMethod( getGetIosAppDataStreamMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest, com.google.analytics.admin.v1alpha.IosAppDataStream>( this, METHODID_GET_IOS_APP_DATA_STREAM))) .addMethod( getDeleteIosAppDataStreamMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_IOS_APP_DATA_STREAM))) .addMethod( getUpdateIosAppDataStreamMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest, com.google.analytics.admin.v1alpha.IosAppDataStream>( this, METHODID_UPDATE_IOS_APP_DATA_STREAM))) .addMethod( getCreateIosAppDataStreamMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest, com.google.analytics.admin.v1alpha.IosAppDataStream>( this, METHODID_CREATE_IOS_APP_DATA_STREAM))) .addMethod( getListIosAppDataStreamsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest, com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse>( this, METHODID_LIST_IOS_APP_DATA_STREAMS))) .addMethod( getGetAndroidAppDataStreamMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest, com.google.analytics.admin.v1alpha.AndroidAppDataStream>( this, METHODID_GET_ANDROID_APP_DATA_STREAM))) .addMethod( getDeleteAndroidAppDataStreamMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_ANDROID_APP_DATA_STREAM))) .addMethod( getUpdateAndroidAppDataStreamMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest, com.google.analytics.admin.v1alpha.AndroidAppDataStream>( this, METHODID_UPDATE_ANDROID_APP_DATA_STREAM))) .addMethod( getCreateAndroidAppDataStreamMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest, com.google.analytics.admin.v1alpha.AndroidAppDataStream>( this, METHODID_CREATE_ANDROID_APP_DATA_STREAM))) .addMethod( getListAndroidAppDataStreamsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest, com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse>( this, METHODID_LIST_ANDROID_APP_DATA_STREAMS))) .addMethod( getGetEnhancedMeasurementSettingsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest, com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings>( this, METHODID_GET_ENHANCED_MEASUREMENT_SETTINGS))) .addMethod( getUpdateEnhancedMeasurementSettingsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest, com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings>( this, METHODID_UPDATE_ENHANCED_MEASUREMENT_SETTINGS))) .addMethod( getCreateFirebaseLinkMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest, com.google.analytics.admin.v1alpha.FirebaseLink>( this, METHODID_CREATE_FIREBASE_LINK))) .addMethod( getUpdateFirebaseLinkMethod(), - asyncUnaryCall( + 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(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_FIREBASE_LINK))) .addMethod( getListFirebaseLinksMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest, com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse>( this, METHODID_LIST_FIREBASE_LINKS))) .addMethod( getGetGlobalSiteTagMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest, com.google.analytics.admin.v1alpha.GlobalSiteTag>( this, METHODID_GET_GLOBAL_SITE_TAG))) .addMethod( getCreateGoogleAdsLinkMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest, com.google.analytics.admin.v1alpha.GoogleAdsLink>( this, METHODID_CREATE_GOOGLE_ADS_LINK))) .addMethod( getUpdateGoogleAdsLinkMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest, com.google.analytics.admin.v1alpha.GoogleAdsLink>( this, METHODID_UPDATE_GOOGLE_ADS_LINK))) .addMethod( getDeleteGoogleAdsLinkMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_GOOGLE_ADS_LINK))) .addMethod( getListGoogleAdsLinksMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest, com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse>( this, METHODID_LIST_GOOGLE_ADS_LINKS))) .addMethod( getGetDataSharingSettingsMethod(), - asyncUnaryCall( + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest, com.google.analytics.admin.v1alpha.DataSharingSettings>( @@ -3513,7 +3555,7 @@ protected AnalyticsAdminServiceStub build( public void getAccount( com.google.analytics.admin.v1alpha.GetAccountRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetAccountMethod(), getCallOptions()), request, responseObserver); } @@ -3531,7 +3573,7 @@ public void listAccounts( com.google.analytics.admin.v1alpha.ListAccountsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListAccountsMethod(), getCallOptions()), request, responseObserver); @@ -3554,7 +3596,7 @@ public void listAccounts( public void deleteAccount( com.google.analytics.admin.v1alpha.DeleteAccountRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteAccountMethod(), getCallOptions()), request, responseObserver); @@ -3570,7 +3612,7 @@ public void deleteAccount( public void updateAccount( com.google.analytics.admin.v1alpha.UpdateAccountRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateAccountMethod(), getCallOptions()), request, responseObserver); @@ -3588,7 +3630,7 @@ public void provisionAccountTicket( io.grpc.stub.StreamObserver< com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse> responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getProvisionAccountTicketMethod(), getCallOptions()), request, responseObserver); @@ -3605,7 +3647,7 @@ public void listAccountSummaries( com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListAccountSummariesMethod(), getCallOptions()), request, responseObserver); @@ -3621,7 +3663,7 @@ public void listAccountSummaries( public void getProperty( com.google.analytics.admin.v1alpha.GetPropertyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetPropertyMethod(), getCallOptions()), request, responseObserver); @@ -3642,7 +3684,7 @@ public void listProperties( com.google.analytics.admin.v1alpha.ListPropertiesRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListPropertiesMethod(), getCallOptions()), request, responseObserver); @@ -3658,7 +3700,7 @@ public void listProperties( public void createProperty( com.google.analytics.admin.v1alpha.CreatePropertyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreatePropertyMethod(), getCallOptions()), request, responseObserver); @@ -3681,7 +3723,7 @@ public void createProperty( public void deleteProperty( com.google.analytics.admin.v1alpha.DeletePropertyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeletePropertyMethod(), getCallOptions()), request, responseObserver); @@ -3697,7 +3739,7 @@ public void deleteProperty( public void updateProperty( com.google.analytics.admin.v1alpha.UpdatePropertyRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdatePropertyMethod(), getCallOptions()), request, responseObserver); @@ -3713,7 +3755,7 @@ public void updateProperty( public void getUserLink( com.google.analytics.admin.v1alpha.GetUserLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetUserLinkMethod(), getCallOptions()), request, responseObserver); @@ -3730,7 +3772,7 @@ public void batchGetUserLinks( com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchGetUserLinksMethod(), getCallOptions()), request, responseObserver); @@ -3747,7 +3789,7 @@ public void listUserLinks( com.google.analytics.admin.v1alpha.ListUserLinksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListUserLinksMethod(), getCallOptions()), request, responseObserver); @@ -3771,7 +3813,7 @@ public void auditUserLinks( com.google.analytics.admin.v1alpha.AuditUserLinksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getAuditUserLinksMethod(), getCallOptions()), request, responseObserver); @@ -3790,7 +3832,7 @@ public void auditUserLinks( public void createUserLink( com.google.analytics.admin.v1alpha.CreateUserLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateUserLinkMethod(), getCallOptions()), request, responseObserver); @@ -3809,7 +3851,7 @@ public void batchCreateUserLinks( com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchCreateUserLinksMethod(), getCallOptions()), request, responseObserver); @@ -3825,7 +3867,7 @@ public void batchCreateUserLinks( public void updateUserLink( com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateUserLinkMethod(), getCallOptions()), request, responseObserver); @@ -3842,7 +3884,7 @@ public void batchUpdateUserLinks( com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchUpdateUserLinksMethod(), getCallOptions()), request, responseObserver); @@ -3858,7 +3900,7 @@ public void batchUpdateUserLinks( public void deleteUserLink( com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteUserLinkMethod(), getCallOptions()), request, responseObserver); @@ -3874,7 +3916,7 @@ public void deleteUserLink( public void batchDeleteUserLinks( com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getBatchDeleteUserLinksMethod(), getCallOptions()), request, responseObserver); @@ -3891,7 +3933,7 @@ public void getWebDataStream( com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetWebDataStreamMethod(), getCallOptions()), request, responseObserver); @@ -3907,7 +3949,7 @@ public void getWebDataStream( public void deleteWebDataStream( com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteWebDataStreamMethod(), getCallOptions()), request, responseObserver); @@ -3924,7 +3966,7 @@ public void updateWebDataStream( com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateWebDataStreamMethod(), getCallOptions()), request, responseObserver); @@ -3941,7 +3983,7 @@ public void createWebDataStream( com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateWebDataStreamMethod(), getCallOptions()), request, responseObserver); @@ -3960,7 +4002,7 @@ public void listWebDataStreams( com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListWebDataStreamsMethod(), getCallOptions()), request, responseObserver); @@ -3977,7 +4019,7 @@ public void getIosAppDataStream( com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetIosAppDataStreamMethod(), getCallOptions()), request, responseObserver); @@ -3993,7 +4035,7 @@ public void getIosAppDataStream( public void deleteIosAppDataStream( com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteIosAppDataStreamMethod(), getCallOptions()), request, responseObserver); @@ -4010,7 +4052,7 @@ public void updateIosAppDataStream( com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateIosAppDataStreamMethod(), getCallOptions()), request, responseObserver); @@ -4033,7 +4075,7 @@ public void createIosAppDataStream( com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateIosAppDataStreamMethod(), getCallOptions()), request, responseObserver); @@ -4053,7 +4095,7 @@ public void listIosAppDataStreams( io.grpc.stub.StreamObserver< com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListIosAppDataStreamsMethod(), getCallOptions()), request, responseObserver); @@ -4070,7 +4112,7 @@ public void getAndroidAppDataStream( com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetAndroidAppDataStreamMethod(), getCallOptions()), request, responseObserver); @@ -4086,7 +4128,7 @@ public void getAndroidAppDataStream( public void deleteAndroidAppDataStream( com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteAndroidAppDataStreamMethod(), getCallOptions()), request, responseObserver); @@ -4103,7 +4145,7 @@ public void updateAndroidAppDataStream( com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateAndroidAppDataStreamMethod(), getCallOptions()), request, responseObserver); @@ -4126,7 +4168,7 @@ public void createAndroidAppDataStream( com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateAndroidAppDataStreamMethod(), getCallOptions()), request, responseObserver); @@ -4146,7 +4188,7 @@ public void listAndroidAppDataStreams( io.grpc.stub.StreamObserver< com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListAndroidAppDataStreamsMethod(), getCallOptions()), request, responseObserver); @@ -4165,7 +4207,7 @@ public void getEnhancedMeasurementSettings( com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetEnhancedMeasurementSettingsMethod(), getCallOptions()), request, responseObserver); @@ -4184,7 +4226,7 @@ public void updateEnhancedMeasurementSettings( com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions()), request, responseObserver); @@ -4202,7 +4244,7 @@ public void createFirebaseLink( com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateFirebaseLinkMethod(), getCallOptions()), request, responseObserver); @@ -4219,7 +4261,7 @@ public void updateFirebaseLink( com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateFirebaseLinkMethod(), getCallOptions()), request, responseObserver); @@ -4235,7 +4277,7 @@ public void updateFirebaseLink( public void deleteFirebaseLink( com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteFirebaseLinkMethod(), getCallOptions()), request, responseObserver); @@ -4253,7 +4295,7 @@ public void listFirebaseLinks( com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListFirebaseLinksMethod(), getCallOptions()), request, responseObserver); @@ -4271,7 +4313,7 @@ public void getGlobalSiteTag( com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetGlobalSiteTagMethod(), getCallOptions()), request, responseObserver); @@ -4288,7 +4330,7 @@ public void createGoogleAdsLink( com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateGoogleAdsLinkMethod(), getCallOptions()), request, responseObserver); @@ -4305,7 +4347,7 @@ public void updateGoogleAdsLink( com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateGoogleAdsLinkMethod(), getCallOptions()), request, responseObserver); @@ -4321,7 +4363,7 @@ public void updateGoogleAdsLink( public void deleteGoogleAdsLink( com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeleteGoogleAdsLinkMethod(), getCallOptions()), request, responseObserver); @@ -4338,7 +4380,7 @@ public void listGoogleAdsLinks( com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getListGoogleAdsLinksMethod(), getCallOptions()), request, responseObserver); @@ -4356,7 +4398,7 @@ public void getDataSharingSettings( com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request, io.grpc.stub.StreamObserver responseObserver) { - asyncUnaryCall( + io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetDataSharingSettingsMethod(), getCallOptions()), request, responseObserver); @@ -4392,7 +4434,8 @@ protected AnalyticsAdminServiceBlockingStub build( */ public com.google.analytics.admin.v1alpha.Account getAccount( com.google.analytics.admin.v1alpha.GetAccountRequest request) { - return blockingUnaryCall(getChannel(), getGetAccountMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAccountMethod(), getCallOptions(), request); } /** @@ -4407,7 +4450,8 @@ public com.google.analytics.admin.v1alpha.Account getAccount( */ public com.google.analytics.admin.v1alpha.ListAccountsResponse listAccounts( com.google.analytics.admin.v1alpha.ListAccountsRequest request) { - return blockingUnaryCall(getChannel(), getListAccountsMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAccountsMethod(), getCallOptions(), request); } /** @@ -4426,7 +4470,8 @@ public com.google.analytics.admin.v1alpha.ListAccountsResponse listAccounts( */ public com.google.protobuf.Empty deleteAccount( com.google.analytics.admin.v1alpha.DeleteAccountRequest request) { - return blockingUnaryCall(getChannel(), getDeleteAccountMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAccountMethod(), getCallOptions(), request); } /** @@ -4438,7 +4483,8 @@ public com.google.protobuf.Empty deleteAccount( */ public com.google.analytics.admin.v1alpha.Account updateAccount( com.google.analytics.admin.v1alpha.UpdateAccountRequest request) { - return blockingUnaryCall(getChannel(), getUpdateAccountMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAccountMethod(), getCallOptions(), request); } /** @@ -4450,7 +4496,7 @@ public com.google.analytics.admin.v1alpha.Account updateAccount( */ public com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse provisionAccountTicket( com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getProvisionAccountTicketMethod(), getCallOptions(), request); } @@ -4463,7 +4509,7 @@ public com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse provisi */ public com.google.analytics.admin.v1alpha.ListAccountSummariesResponse listAccountSummaries( com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListAccountSummariesMethod(), getCallOptions(), request); } @@ -4476,7 +4522,8 @@ public com.google.analytics.admin.v1alpha.ListAccountSummariesResponse listAccou */ public com.google.analytics.admin.v1alpha.Property getProperty( com.google.analytics.admin.v1alpha.GetPropertyRequest request) { - return blockingUnaryCall(getChannel(), getGetPropertyMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPropertyMethod(), getCallOptions(), request); } /** @@ -4492,7 +4539,8 @@ public com.google.analytics.admin.v1alpha.Property getProperty( */ public com.google.analytics.admin.v1alpha.ListPropertiesResponse listProperties( com.google.analytics.admin.v1alpha.ListPropertiesRequest request) { - return blockingUnaryCall(getChannel(), getListPropertiesMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPropertiesMethod(), getCallOptions(), request); } /** @@ -4504,7 +4552,8 @@ public com.google.analytics.admin.v1alpha.ListPropertiesResponse listProperties( */ public com.google.analytics.admin.v1alpha.Property createProperty( com.google.analytics.admin.v1alpha.CreatePropertyRequest request) { - return blockingUnaryCall(getChannel(), getCreatePropertyMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePropertyMethod(), getCallOptions(), request); } /** @@ -4523,7 +4572,8 @@ public com.google.analytics.admin.v1alpha.Property createProperty( */ public com.google.protobuf.Empty deleteProperty( com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { - return blockingUnaryCall(getChannel(), getDeletePropertyMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePropertyMethod(), getCallOptions(), request); } /** @@ -4535,7 +4585,8 @@ public com.google.protobuf.Empty deleteProperty( */ public com.google.analytics.admin.v1alpha.Property updateProperty( com.google.analytics.admin.v1alpha.UpdatePropertyRequest request) { - return blockingUnaryCall(getChannel(), getUpdatePropertyMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePropertyMethod(), getCallOptions(), request); } /** @@ -4547,7 +4598,8 @@ public com.google.analytics.admin.v1alpha.Property updateProperty( */ public com.google.analytics.admin.v1alpha.UserLink getUserLink( com.google.analytics.admin.v1alpha.GetUserLinkRequest request) { - return blockingUnaryCall(getChannel(), getGetUserLinkMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetUserLinkMethod(), getCallOptions(), request); } /** @@ -4559,7 +4611,7 @@ public com.google.analytics.admin.v1alpha.UserLink getUserLink( */ public com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse batchGetUserLinks( com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchGetUserLinksMethod(), getCallOptions(), request); } @@ -4572,7 +4624,8 @@ public com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse batchGetUser */ public com.google.analytics.admin.v1alpha.ListUserLinksResponse listUserLinks( com.google.analytics.admin.v1alpha.ListUserLinksRequest request) { - return blockingUnaryCall(getChannel(), getListUserLinksMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUserLinksMethod(), getCallOptions(), request); } /** @@ -4591,7 +4644,8 @@ public com.google.analytics.admin.v1alpha.ListUserLinksResponse listUserLinks( */ public com.google.analytics.admin.v1alpha.AuditUserLinksResponse auditUserLinks( com.google.analytics.admin.v1alpha.AuditUserLinksRequest request) { - return blockingUnaryCall(getChannel(), getAuditUserLinksMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAuditUserLinksMethod(), getCallOptions(), request); } /** @@ -4606,7 +4660,8 @@ public com.google.analytics.admin.v1alpha.AuditUserLinksResponse auditUserLinks( */ public com.google.analytics.admin.v1alpha.UserLink createUserLink( com.google.analytics.admin.v1alpha.CreateUserLinkRequest request) { - return blockingUnaryCall(getChannel(), getCreateUserLinkMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateUserLinkMethod(), getCallOptions(), request); } /** @@ -4620,7 +4675,7 @@ public com.google.analytics.admin.v1alpha.UserLink createUserLink( */ public com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse batchCreateUserLinks( com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchCreateUserLinksMethod(), getCallOptions(), request); } @@ -4633,7 +4688,8 @@ public com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse batchCrea */ public com.google.analytics.admin.v1alpha.UserLink updateUserLink( com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request) { - return blockingUnaryCall(getChannel(), getUpdateUserLinkMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateUserLinkMethod(), getCallOptions(), request); } /** @@ -4645,7 +4701,7 @@ public com.google.analytics.admin.v1alpha.UserLink updateUserLink( */ public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse batchUpdateUserLinks( com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchUpdateUserLinksMethod(), getCallOptions(), request); } @@ -4658,7 +4714,8 @@ public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse batchUpda */ public com.google.protobuf.Empty deleteUserLink( com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request) { - return blockingUnaryCall(getChannel(), getDeleteUserLinkMethod(), getCallOptions(), request); + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteUserLinkMethod(), getCallOptions(), request); } /** @@ -4670,7 +4727,7 @@ public com.google.protobuf.Empty deleteUserLink( */ public com.google.protobuf.Empty batchDeleteUserLinks( com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getBatchDeleteUserLinksMethod(), getCallOptions(), request); } @@ -4683,7 +4740,7 @@ public com.google.protobuf.Empty batchDeleteUserLinks( */ public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream( com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetWebDataStreamMethod(), getCallOptions(), request); } @@ -4696,7 +4753,7 @@ public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream( */ public com.google.protobuf.Empty deleteWebDataStream( com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteWebDataStreamMethod(), getCallOptions(), request); } @@ -4709,7 +4766,7 @@ public com.google.protobuf.Empty deleteWebDataStream( */ public com.google.analytics.admin.v1alpha.WebDataStream updateWebDataStream( com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateWebDataStreamMethod(), getCallOptions(), request); } @@ -4722,7 +4779,7 @@ public com.google.analytics.admin.v1alpha.WebDataStream updateWebDataStream( */ public com.google.analytics.admin.v1alpha.WebDataStream createWebDataStream( com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateWebDataStreamMethod(), getCallOptions(), request); } @@ -4737,7 +4794,7 @@ public com.google.analytics.admin.v1alpha.WebDataStream createWebDataStream( */ public com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse listWebDataStreams( com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListWebDataStreamsMethod(), getCallOptions(), request); } @@ -4750,7 +4807,7 @@ public com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse listWebData */ public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream( com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetIosAppDataStreamMethod(), getCallOptions(), request); } @@ -4763,7 +4820,7 @@ public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream( */ public com.google.protobuf.Empty deleteIosAppDataStream( com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteIosAppDataStreamMethod(), getCallOptions(), request); } @@ -4776,7 +4833,7 @@ public com.google.protobuf.Empty deleteIosAppDataStream( */ public com.google.analytics.admin.v1alpha.IosAppDataStream updateIosAppDataStream( com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateIosAppDataStreamMethod(), getCallOptions(), request); } @@ -4795,7 +4852,7 @@ public com.google.analytics.admin.v1alpha.IosAppDataStream updateIosAppDataStrea */ public com.google.analytics.admin.v1alpha.IosAppDataStream createIosAppDataStream( com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateIosAppDataStreamMethod(), getCallOptions(), request); } @@ -4810,7 +4867,7 @@ public com.google.analytics.admin.v1alpha.IosAppDataStream createIosAppDataStrea */ public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse listIosAppDataStreams( com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListIosAppDataStreamsMethod(), getCallOptions(), request); } @@ -4823,7 +4880,7 @@ public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse listIosA */ public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream( com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetAndroidAppDataStreamMethod(), getCallOptions(), request); } @@ -4836,7 +4893,7 @@ public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppData */ public com.google.protobuf.Empty deleteAndroidAppDataStream( com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteAndroidAppDataStreamMethod(), getCallOptions(), request); } @@ -4849,7 +4906,7 @@ public com.google.protobuf.Empty deleteAndroidAppDataStream( */ public com.google.analytics.admin.v1alpha.AndroidAppDataStream updateAndroidAppDataStream( com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateAndroidAppDataStreamMethod(), getCallOptions(), request); } @@ -4868,7 +4925,7 @@ public com.google.analytics.admin.v1alpha.AndroidAppDataStream updateAndroidAppD */ public com.google.analytics.admin.v1alpha.AndroidAppDataStream createAndroidAppDataStream( com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateAndroidAppDataStreamMethod(), getCallOptions(), request); } @@ -4884,7 +4941,7 @@ public com.google.analytics.admin.v1alpha.AndroidAppDataStream createAndroidAppD public com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse listAndroidAppDataStreams( com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListAndroidAppDataStreamsMethod(), getCallOptions(), request); } @@ -4900,7 +4957,7 @@ public com.google.analytics.admin.v1alpha.AndroidAppDataStream createAndroidAppD public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings getEnhancedMeasurementSettings( com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetEnhancedMeasurementSettingsMethod(), getCallOptions(), request); } @@ -4916,7 +4973,7 @@ public com.google.analytics.admin.v1alpha.AndroidAppDataStream createAndroidAppD public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings updateEnhancedMeasurementSettings( com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions(), request); } @@ -4930,7 +4987,7 @@ public com.google.analytics.admin.v1alpha.AndroidAppDataStream createAndroidAppD */ public com.google.analytics.admin.v1alpha.FirebaseLink createFirebaseLink( com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateFirebaseLinkMethod(), getCallOptions(), request); } @@ -4943,7 +5000,7 @@ public com.google.analytics.admin.v1alpha.FirebaseLink createFirebaseLink( */ public com.google.analytics.admin.v1alpha.FirebaseLink updateFirebaseLink( com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateFirebaseLinkMethod(), getCallOptions(), request); } @@ -4956,7 +5013,7 @@ public com.google.analytics.admin.v1alpha.FirebaseLink updateFirebaseLink( */ public com.google.protobuf.Empty deleteFirebaseLink( com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteFirebaseLinkMethod(), getCallOptions(), request); } @@ -4970,7 +5027,7 @@ public com.google.protobuf.Empty deleteFirebaseLink( */ public com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse listFirebaseLinks( com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListFirebaseLinksMethod(), getCallOptions(), request); } @@ -4984,7 +5041,7 @@ public com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse listFirebase */ public com.google.analytics.admin.v1alpha.GlobalSiteTag getGlobalSiteTag( com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetGlobalSiteTagMethod(), getCallOptions(), request); } @@ -4997,7 +5054,7 @@ public com.google.analytics.admin.v1alpha.GlobalSiteTag getGlobalSiteTag( */ public com.google.analytics.admin.v1alpha.GoogleAdsLink createGoogleAdsLink( com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateGoogleAdsLinkMethod(), getCallOptions(), request); } @@ -5010,7 +5067,7 @@ public com.google.analytics.admin.v1alpha.GoogleAdsLink createGoogleAdsLink( */ public com.google.analytics.admin.v1alpha.GoogleAdsLink updateGoogleAdsLink( com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateGoogleAdsLinkMethod(), getCallOptions(), request); } @@ -5023,7 +5080,7 @@ public com.google.analytics.admin.v1alpha.GoogleAdsLink updateGoogleAdsLink( */ public com.google.protobuf.Empty deleteGoogleAdsLink( com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeleteGoogleAdsLinkMethod(), getCallOptions(), request); } @@ -5036,7 +5093,7 @@ public com.google.protobuf.Empty deleteGoogleAdsLink( */ public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse listGoogleAdsLinks( com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getListGoogleAdsLinksMethod(), getCallOptions(), request); } @@ -5050,7 +5107,7 @@ public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse listGoogleA */ public com.google.analytics.admin.v1alpha.DataSharingSettings getDataSharingSettings( com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request) { - return blockingUnaryCall( + return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetDataSharingSettingsMethod(), getCallOptions(), request); } } @@ -5085,7 +5142,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.Account> getAccount(com.google.analytics.admin.v1alpha.GetAccountRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetAccountMethod(), getCallOptions()), request); } @@ -5102,7 +5159,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.ListAccountsResponse> listAccounts(com.google.analytics.admin.v1alpha.ListAccountsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListAccountsMethod(), getCallOptions()), request); } @@ -5122,7 +5179,7 @@ protected AnalyticsAdminServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteAccount(com.google.analytics.admin.v1alpha.DeleteAccountRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteAccountMethod(), getCallOptions()), request); } @@ -5136,7 +5193,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.Account> updateAccount(com.google.analytics.admin.v1alpha.UpdateAccountRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateAccountMethod(), getCallOptions()), request); } @@ -5151,7 +5208,7 @@ protected AnalyticsAdminServiceFutureStub build( com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse> provisionAccountTicket( com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getProvisionAccountTicketMethod(), getCallOptions()), request); } @@ -5166,7 +5223,7 @@ protected AnalyticsAdminServiceFutureStub build( com.google.analytics.admin.v1alpha.ListAccountSummariesResponse> listAccountSummaries( com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListAccountSummariesMethod(), getCallOptions()), request); } @@ -5180,7 +5237,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.Property> getProperty(com.google.analytics.admin.v1alpha.GetPropertyRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetPropertyMethod(), getCallOptions()), request); } @@ -5198,7 +5255,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.ListPropertiesResponse> listProperties(com.google.analytics.admin.v1alpha.ListPropertiesRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListPropertiesMethod(), getCallOptions()), request); } @@ -5212,7 +5269,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.Property> createProperty(com.google.analytics.admin.v1alpha.CreatePropertyRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreatePropertyMethod(), getCallOptions()), request); } @@ -5232,7 +5289,7 @@ protected AnalyticsAdminServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteProperty(com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeletePropertyMethod(), getCallOptions()), request); } @@ -5246,7 +5303,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.Property> updateProperty(com.google.analytics.admin.v1alpha.UpdatePropertyRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdatePropertyMethod(), getCallOptions()), request); } @@ -5260,7 +5317,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.UserLink> getUserLink(com.google.analytics.admin.v1alpha.GetUserLinkRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetUserLinkMethod(), getCallOptions()), request); } @@ -5274,7 +5331,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse> batchGetUserLinks(com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchGetUserLinksMethod(), getCallOptions()), request); } @@ -5288,7 +5345,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.ListUserLinksResponse> listUserLinks(com.google.analytics.admin.v1alpha.ListUserLinksRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListUserLinksMethod(), getCallOptions()), request); } @@ -5309,7 +5366,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.AuditUserLinksResponse> auditUserLinks(com.google.analytics.admin.v1alpha.AuditUserLinksRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getAuditUserLinksMethod(), getCallOptions()), request); } @@ -5326,7 +5383,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.UserLink> createUserLink(com.google.analytics.admin.v1alpha.CreateUserLinkRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateUserLinkMethod(), getCallOptions()), request); } @@ -5343,7 +5400,7 @@ protected AnalyticsAdminServiceFutureStub build( com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse> batchCreateUserLinks( com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchCreateUserLinksMethod(), getCallOptions()), request); } @@ -5357,7 +5414,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.UserLink> updateUserLink(com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateUserLinkMethod(), getCallOptions()), request); } @@ -5372,7 +5429,7 @@ protected AnalyticsAdminServiceFutureStub build( com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse> batchUpdateUserLinks( com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchUpdateUserLinksMethod(), getCallOptions()), request); } @@ -5385,7 +5442,7 @@ protected AnalyticsAdminServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteUserLink(com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteUserLinkMethod(), getCallOptions()), request); } @@ -5399,7 +5456,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture batchDeleteUserLinks( com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getBatchDeleteUserLinksMethod(), getCallOptions()), request); } @@ -5413,7 +5470,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.WebDataStream> getWebDataStream(com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetWebDataStreamMethod(), getCallOptions()), request); } @@ -5426,7 +5483,7 @@ protected AnalyticsAdminServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteWebDataStream(com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteWebDataStreamMethod(), getCallOptions()), request); } @@ -5440,7 +5497,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.WebDataStream> updateWebDataStream(com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateWebDataStreamMethod(), getCallOptions()), request); } @@ -5454,7 +5511,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.WebDataStream> createWebDataStream(com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateWebDataStreamMethod(), getCallOptions()), request); } @@ -5470,7 +5527,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse> listWebDataStreams(com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListWebDataStreamsMethod(), getCallOptions()), request); } @@ -5484,7 +5541,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.IosAppDataStream> getIosAppDataStream(com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetIosAppDataStreamMethod(), getCallOptions()), request); } @@ -5498,7 +5555,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture deleteIosAppDataStream( com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteIosAppDataStreamMethod(), getCallOptions()), request); } @@ -5513,7 +5570,7 @@ protected AnalyticsAdminServiceFutureStub build( com.google.analytics.admin.v1alpha.IosAppDataStream> updateIosAppDataStream( com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateIosAppDataStreamMethod(), getCallOptions()), request); } @@ -5534,7 +5591,7 @@ protected AnalyticsAdminServiceFutureStub build( com.google.analytics.admin.v1alpha.IosAppDataStream> createIosAppDataStream( com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateIosAppDataStreamMethod(), getCallOptions()), request); } @@ -5551,7 +5608,7 @@ protected AnalyticsAdminServiceFutureStub build( com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> listIosAppDataStreams( com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListIosAppDataStreamsMethod(), getCallOptions()), request); } @@ -5566,7 +5623,7 @@ protected AnalyticsAdminServiceFutureStub build( com.google.analytics.admin.v1alpha.AndroidAppDataStream> getAndroidAppDataStream( com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetAndroidAppDataStreamMethod(), getCallOptions()), request); } @@ -5580,7 +5637,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture deleteAndroidAppDataStream( com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteAndroidAppDataStreamMethod(), getCallOptions()), request); } @@ -5595,7 +5652,7 @@ protected AnalyticsAdminServiceFutureStub build( com.google.analytics.admin.v1alpha.AndroidAppDataStream> updateAndroidAppDataStream( com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateAndroidAppDataStreamMethod(), getCallOptions()), request); } @@ -5616,7 +5673,7 @@ protected AnalyticsAdminServiceFutureStub build( com.google.analytics.admin.v1alpha.AndroidAppDataStream> createAndroidAppDataStream( com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateAndroidAppDataStreamMethod(), getCallOptions()), request); } @@ -5633,7 +5690,7 @@ protected AnalyticsAdminServiceFutureStub build( com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> listAndroidAppDataStreams( com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListAndroidAppDataStreamsMethod(), getCallOptions()), request); } @@ -5650,7 +5707,7 @@ protected AnalyticsAdminServiceFutureStub build( com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> getEnhancedMeasurementSettings( com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetEnhancedMeasurementSettingsMethod(), getCallOptions()), request); } @@ -5668,7 +5725,7 @@ protected AnalyticsAdminServiceFutureStub build( com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> updateEnhancedMeasurementSettings( com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions()), request); } @@ -5684,7 +5741,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.FirebaseLink> createFirebaseLink(com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateFirebaseLinkMethod(), getCallOptions()), request); } @@ -5698,7 +5755,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.FirebaseLink> updateFirebaseLink(com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateFirebaseLinkMethod(), getCallOptions()), request); } @@ -5711,7 +5768,7 @@ protected AnalyticsAdminServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteFirebaseLink(com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteFirebaseLinkMethod(), getCallOptions()), request); } @@ -5726,7 +5783,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse> listFirebaseLinks(com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListFirebaseLinksMethod(), getCallOptions()), request); } @@ -5741,7 +5798,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.GlobalSiteTag> getGlobalSiteTag(com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetGlobalSiteTagMethod(), getCallOptions()), request); } @@ -5755,7 +5812,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.GoogleAdsLink> createGoogleAdsLink(com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateGoogleAdsLinkMethod(), getCallOptions()), request); } @@ -5769,7 +5826,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.GoogleAdsLink> updateGoogleAdsLink(com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateGoogleAdsLinkMethod(), getCallOptions()), request); } @@ -5782,7 +5839,7 @@ protected AnalyticsAdminServiceFutureStub build( */ public com.google.common.util.concurrent.ListenableFuture deleteGoogleAdsLink(com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeleteGoogleAdsLinkMethod(), getCallOptions()), request); } @@ -5796,7 +5853,7 @@ protected AnalyticsAdminServiceFutureStub build( public com.google.common.util.concurrent.ListenableFuture< com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse> listGoogleAdsLinks(com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getListGoogleAdsLinksMethod(), getCallOptions()), request); } @@ -5812,7 +5869,7 @@ protected AnalyticsAdminServiceFutureStub build( com.google.analytics.admin.v1alpha.DataSharingSettings> getDataSharingSettings( com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request) { - return futureUnaryCall( + return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetDataSharingSettingsMethod(), getCallOptions()), request); } } diff --git a/synth.metadata b/synth.metadata index da05fa1a..f3bd233e 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-analytics-admin.git", - "sha": "f6e1f2f7f1a8e9b540d821e684862b7cc12f0144" + "sha": "b0428f37d98e7d34458331d66e2c757904638787" } }, { "git": { "name": "googleapis-gen", "remote": "https://github.com/googleapis/googleapis-gen.git", - "sha": "1ad043d44370c3639640b1f1f549296c005448f5", - "internalRef": "360805639" + "sha": "ba5ec70708cd72caa1692a95ce57891e3ade61dd", + "internalRef": "361377784" } }, { From a4a07812466a52b890cbaceaef525dc470664b98 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 9 Mar 2021 00:06:48 +0100 Subject: [PATCH 08/42] chore(deps): update dependency com.google.analytics:google-analytics-admin to v0.3.2 (#173) [![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.3.0` -> `0.3.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-admin/0.3.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-admin/0.3.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-admin/0.3.2/compatibility-slim/0.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.analytics:google-analytics-admin/0.3.2/confidence-slim/0.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-analytics-admin ### [`v0.3.2`](https://togithub.com/googleapis/java-analytics-admin/blob/master/CHANGELOG.md#​032-httpswwwgithubcomgoogleapisjava-analytics-admincomparev031v032-2021-02-25) [Compare Source](https://togithub.com/googleapis/java-analytics-admin/compare/v0.3.1...v0.3.2) ### [`v0.3.1`](https://togithub.com/googleapis/java-analytics-admin/blob/master/CHANGELOG.md#​031-httpswwwgithubcomgoogleapisjava-analytics-admincomparev030v031-2021-02-22) [Compare Source](https://togithub.com/googleapis/java-analytics-admin/compare/v0.3.0...v0.3.1)
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-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 098f4496..2c4a3e9e 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.3.0 + 0.3.2 From 1a2d614c80c0c5849f7aa71f3cae20165c3ed4aa Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 9 Mar 2021 21:42:37 +0100 Subject: [PATCH 09/42] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.1 (#186) [![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) | `0.20.0` -> `0.20.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.1/compatibility-slim/0.20.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.20.1/confidence-slim/0.20.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v0.20.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0201-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0200v0201-2021-03-09) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.20.0...v0.20.1)
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-admin). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 233325d7..6ddf8b26 100644 --- a/pom.xml +++ b/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.20.0 + 0.20.1 pom import From b158e756e9c7ea17ed295a0b1f0670cf47c7ad52 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 10 Mar 2021 16:12:10 -0800 Subject: [PATCH 10/42] build(java): update autorelease title check in response to the new multi release branch changes (#187) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/8cc0a777-d7bc-4b36-bf33-b2f08ac29afb/targets - [ ] To automatically regenerate this PR, check this box. Source-Link: https://github.com/googleapis/synthtool/commit/0b064d767537e0675fc053e53fca473c5c701fb8 --- .github/workflows/auto-release.yaml | 4 ++-- synth.metadata | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/auto-release.yaml b/.github/workflows/auto-release.yaml index 7c8816a7..9b4fd4d8 100644 --- a/.github/workflows/auto-release.yaml +++ b/.github/workflows/auto-release.yaml @@ -16,8 +16,8 @@ jobs: return; } - // only approve PRs like "chore(master): release " - if ( !context.payload.pull_request.title.startsWith("chore(master): release") ) { + // only approve PRs like "chore: release " + if ( !context.payload.pull_request.title.startsWith("chore: release") ) { return; } diff --git a/synth.metadata b/synth.metadata index f3bd233e..907471df 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-analytics-admin.git", - "sha": "b0428f37d98e7d34458331d66e2c757904638787" + "sha": "1a2d614c80c0c5849f7aa71f3cae20165c3ed4aa" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "d0bdade9a962042dc0f770cf631086f3db59b5b0" + "sha": "0b064d767537e0675fc053e53fca473c5c701fb8" } } ], From 270154409b54975aa42896518995ef437f51512b Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 15 Mar 2021 18:58:10 -0700 Subject: [PATCH 11/42] chore: update java microgenerator to 1.0.2 Adds request initialization to sample code (#188) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/1df42610-37fd-412e-8468-4b42ffaa7119/targets - [ ] To automatically regenerate this PR, check this box. PiperOrigin-RevId: 362856902 Source-Link: https://github.com/googleapis/googleapis/commit/1305ca41d554eb0725237561e34129373bb8cbc1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ebd77e76effb65c4fba8c64f31c15062c250a4c2 --- .../v1alpha/AnalyticsAdminServiceClient.java | 61 ++++++ .../MockAnalyticsAdminServiceImpl.java | 192 +++++++++--------- synth.metadata | 6 +- 3 files changed, 160 insertions(+), 99 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 0a35a77f..d7208055 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 @@ -323,6 +323,12 @@ public final ListAccountsPagedResponse listAccounts(ListAccountsRequest request) *
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
+   *   ListAccountsRequest request =
+   *       ListAccountsRequest.newBuilder()
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setShowDeleted(true)
+   *           .build();
    *   while (true) {
    *     ListAccountsResponse response =
    *         analyticsAdminServiceClient.listAccountsCallable().call(request);
@@ -667,6 +673,11 @@ public final ListAccountSummariesPagedResponse listAccountSummaries(
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
+   *   ListAccountSummariesRequest request =
+   *       ListAccountSummariesRequest.newBuilder()
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
    *   while (true) {
    *     ListAccountSummariesResponse response =
    *         analyticsAdminServiceClient.listAccountSummariesCallable().call(request);
@@ -859,6 +870,13 @@ public final ListPropertiesPagedResponse listProperties(ListPropertiesRequest re
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
+   *   ListPropertiesRequest request =
+   *       ListPropertiesRequest.newBuilder()
+   *           .setFilter("filter-1274492040")
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .setShowDeleted(true)
+   *           .build();
    *   while (true) {
    *     ListPropertiesResponse response =
    *         analyticsAdminServiceClient.listPropertiesCallable().call(request);
@@ -1445,6 +1463,12 @@ public final ListUserLinksPagedResponse listUserLinks(ListUserLinksRequest reque
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
+   *   ListUserLinksRequest request =
+   *       ListUserLinksRequest.newBuilder()
+   *           .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
    *   while (true) {
    *     ListUserLinksResponse response =
    *         analyticsAdminServiceClient.listUserLinksCallable().call(request);
@@ -1550,6 +1574,12 @@ public final AuditUserLinksPagedResponse auditUserLinks(AuditUserLinksRequest re
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
+   *   AuditUserLinksRequest request =
+   *       AuditUserLinksRequest.newBuilder()
+   *           .setParent(UserLinkName.ofAccountUserLinkName("[ACCOUNT]", "[USER_LINK]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
    *   while (true) {
    *     AuditUserLinksResponse response =
    *         analyticsAdminServiceClient.auditUserLinksCallable().call(request);
@@ -2579,6 +2609,12 @@ public final ListWebDataStreamsPagedResponse listWebDataStreams(
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
+   *   ListWebDataStreamsRequest request =
+   *       ListWebDataStreamsRequest.newBuilder()
+   *           .setParent(WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
    *   while (true) {
    *     ListWebDataStreamsResponse response =
    *         analyticsAdminServiceClient.listWebDataStreamsCallable().call(request);
@@ -3162,6 +3198,12 @@ public final ListIosAppDataStreamsPagedResponse listIosAppDataStreams(
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
+   *   ListIosAppDataStreamsRequest request =
+   *       ListIosAppDataStreamsRequest.newBuilder()
+   *           .setParent(IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
    *   while (true) {
    *     ListIosAppDataStreamsResponse response =
    *         analyticsAdminServiceClient.listIosAppDataStreamsCallable().call(request);
@@ -3766,6 +3808,13 @@ public final ListAndroidAppDataStreamsPagedResponse listAndroidAppDataStreams(
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
+   *   ListAndroidAppDataStreamsRequest request =
+   *       ListAndroidAppDataStreamsRequest.newBuilder()
+   *           .setParent(
+   *               AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
    *   while (true) {
    *     ListAndroidAppDataStreamsResponse response =
    *         analyticsAdminServiceClient.listAndroidAppDataStreamsCallable().call(request);
@@ -4408,6 +4457,12 @@ public final ListFirebaseLinksPagedResponse listFirebaseLinks(ListFirebaseLinksR
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
+   *   ListFirebaseLinksRequest request =
+   *       ListFirebaseLinksRequest.newBuilder()
+   *           .setParent(FirebaseLinkName.of("[PROPERTY]", "[FIREBASE_LINK]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
    *   while (true) {
    *     ListFirebaseLinksResponse response =
    *         analyticsAdminServiceClient.listFirebaseLinksCallable().call(request);
@@ -4938,6 +4993,12 @@ public final ListGoogleAdsLinksPagedResponse listGoogleAdsLinks(
    * 
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
+   *   ListGoogleAdsLinksRequest request =
+   *       ListGoogleAdsLinksRequest.newBuilder()
+   *           .setParent(GoogleAdsLinkName.of("[PROPERTY]", "[GOOGLE_ADS_LINK]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
    *   while (true) {
    *     ListGoogleAdsLinksResponse response =
    *         analyticsAdminServiceClient.listGoogleAdsLinksCallable().call(request);
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 f77f22ff..27a37982 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
@@ -61,7 +61,7 @@ public void reset() {
 
   @Override
   public void getAccount(GetAccountRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Account) {
       requests.add(request);
       responseObserver.onNext(((Account) response));
@@ -73,7 +73,7 @@ public void getAccount(GetAccountRequest request, StreamObserver respon
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method GetAccount, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Account.class.getName(),
                   Exception.class.getName())));
     }
@@ -82,7 +82,7 @@ public void getAccount(GetAccountRequest request, StreamObserver respon
   @Override
   public void listAccounts(
       ListAccountsRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof ListAccountsResponse) {
       requests.add(request);
       responseObserver.onNext(((ListAccountsResponse) response));
@@ -94,7 +94,7 @@ public void listAccounts(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method ListAccounts, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   ListAccountsResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -102,7 +102,7 @@ public void listAccounts(
 
   @Override
   public void deleteAccount(DeleteAccountRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Empty) {
       requests.add(request);
       responseObserver.onNext(((Empty) response));
@@ -114,7 +114,7 @@ public void deleteAccount(DeleteAccountRequest request, StreamObserver re
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method DeleteAccount, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Empty.class.getName(),
                   Exception.class.getName())));
     }
@@ -123,7 +123,7 @@ public void deleteAccount(DeleteAccountRequest request, StreamObserver re
   @Override
   public void updateAccount(
       UpdateAccountRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Account) {
       requests.add(request);
       responseObserver.onNext(((Account) response));
@@ -135,7 +135,7 @@ public void updateAccount(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method UpdateAccount, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Account.class.getName(),
                   Exception.class.getName())));
     }
@@ -145,7 +145,7 @@ public void updateAccount(
   public void provisionAccountTicket(
       ProvisionAccountTicketRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof ProvisionAccountTicketResponse) {
       requests.add(request);
       responseObserver.onNext(((ProvisionAccountTicketResponse) response));
@@ -157,7 +157,7 @@ public void provisionAccountTicket(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method ProvisionAccountTicket, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   ProvisionAccountTicketResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -167,7 +167,7 @@ public void provisionAccountTicket(
   public void listAccountSummaries(
       ListAccountSummariesRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof ListAccountSummariesResponse) {
       requests.add(request);
       responseObserver.onNext(((ListAccountSummariesResponse) response));
@@ -179,7 +179,7 @@ public void listAccountSummaries(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method ListAccountSummaries, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   ListAccountSummariesResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -187,7 +187,7 @@ public void listAccountSummaries(
 
   @Override
   public void getProperty(GetPropertyRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Property) {
       requests.add(request);
       responseObserver.onNext(((Property) response));
@@ -199,7 +199,7 @@ public void getProperty(GetPropertyRequest request, StreamObserver res
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method GetProperty, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Property.class.getName(),
                   Exception.class.getName())));
     }
@@ -208,7 +208,7 @@ public void getProperty(GetPropertyRequest request, StreamObserver res
   @Override
   public void listProperties(
       ListPropertiesRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof ListPropertiesResponse) {
       requests.add(request);
       responseObserver.onNext(((ListPropertiesResponse) response));
@@ -220,7 +220,7 @@ public void listProperties(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method ListProperties, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   ListPropertiesResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -229,7 +229,7 @@ public void listProperties(
   @Override
   public void createProperty(
       CreatePropertyRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Property) {
       requests.add(request);
       responseObserver.onNext(((Property) response));
@@ -241,7 +241,7 @@ public void createProperty(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method CreateProperty, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Property.class.getName(),
                   Exception.class.getName())));
     }
@@ -250,7 +250,7 @@ public void createProperty(
   @Override
   public void deleteProperty(
       DeletePropertyRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Empty) {
       requests.add(request);
       responseObserver.onNext(((Empty) response));
@@ -262,7 +262,7 @@ public void deleteProperty(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method DeleteProperty, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Empty.class.getName(),
                   Exception.class.getName())));
     }
@@ -271,7 +271,7 @@ public void deleteProperty(
   @Override
   public void updateProperty(
       UpdatePropertyRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Property) {
       requests.add(request);
       responseObserver.onNext(((Property) response));
@@ -283,7 +283,7 @@ public void updateProperty(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method UpdateProperty, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Property.class.getName(),
                   Exception.class.getName())));
     }
@@ -291,7 +291,7 @@ public void updateProperty(
 
   @Override
   public void getUserLink(GetUserLinkRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof UserLink) {
       requests.add(request);
       responseObserver.onNext(((UserLink) response));
@@ -303,7 +303,7 @@ public void getUserLink(GetUserLinkRequest request, StreamObserver res
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method GetUserLink, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   UserLink.class.getName(),
                   Exception.class.getName())));
     }
@@ -313,7 +313,7 @@ public void getUserLink(GetUserLinkRequest request, StreamObserver res
   public void batchGetUserLinks(
       BatchGetUserLinksRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof BatchGetUserLinksResponse) {
       requests.add(request);
       responseObserver.onNext(((BatchGetUserLinksResponse) response));
@@ -325,7 +325,7 @@ public void batchGetUserLinks(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method BatchGetUserLinks, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   BatchGetUserLinksResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -334,7 +334,7 @@ public void batchGetUserLinks(
   @Override
   public void listUserLinks(
       ListUserLinksRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof ListUserLinksResponse) {
       requests.add(request);
       responseObserver.onNext(((ListUserLinksResponse) response));
@@ -346,7 +346,7 @@ public void listUserLinks(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method ListUserLinks, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   ListUserLinksResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -355,7 +355,7 @@ public void listUserLinks(
   @Override
   public void auditUserLinks(
       AuditUserLinksRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof AuditUserLinksResponse) {
       requests.add(request);
       responseObserver.onNext(((AuditUserLinksResponse) response));
@@ -367,7 +367,7 @@ public void auditUserLinks(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method AuditUserLinks, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   AuditUserLinksResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -376,7 +376,7 @@ public void auditUserLinks(
   @Override
   public void createUserLink(
       CreateUserLinkRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof UserLink) {
       requests.add(request);
       responseObserver.onNext(((UserLink) response));
@@ -388,7 +388,7 @@ public void createUserLink(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method CreateUserLink, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   UserLink.class.getName(),
                   Exception.class.getName())));
     }
@@ -398,7 +398,7 @@ public void createUserLink(
   public void batchCreateUserLinks(
       BatchCreateUserLinksRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof BatchCreateUserLinksResponse) {
       requests.add(request);
       responseObserver.onNext(((BatchCreateUserLinksResponse) response));
@@ -410,7 +410,7 @@ public void batchCreateUserLinks(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method BatchCreateUserLinks, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   BatchCreateUserLinksResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -419,7 +419,7 @@ public void batchCreateUserLinks(
   @Override
   public void updateUserLink(
       UpdateUserLinkRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof UserLink) {
       requests.add(request);
       responseObserver.onNext(((UserLink) response));
@@ -431,7 +431,7 @@ public void updateUserLink(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method UpdateUserLink, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   UserLink.class.getName(),
                   Exception.class.getName())));
     }
@@ -441,7 +441,7 @@ public void updateUserLink(
   public void batchUpdateUserLinks(
       BatchUpdateUserLinksRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof BatchUpdateUserLinksResponse) {
       requests.add(request);
       responseObserver.onNext(((BatchUpdateUserLinksResponse) response));
@@ -453,7 +453,7 @@ public void batchUpdateUserLinks(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method BatchUpdateUserLinks, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   BatchUpdateUserLinksResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -462,7 +462,7 @@ public void batchUpdateUserLinks(
   @Override
   public void deleteUserLink(
       DeleteUserLinkRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Empty) {
       requests.add(request);
       responseObserver.onNext(((Empty) response));
@@ -474,7 +474,7 @@ public void deleteUserLink(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method DeleteUserLink, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Empty.class.getName(),
                   Exception.class.getName())));
     }
@@ -483,7 +483,7 @@ public void deleteUserLink(
   @Override
   public void batchDeleteUserLinks(
       BatchDeleteUserLinksRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Empty) {
       requests.add(request);
       responseObserver.onNext(((Empty) response));
@@ -495,7 +495,7 @@ public void batchDeleteUserLinks(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method BatchDeleteUserLinks, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Empty.class.getName(),
                   Exception.class.getName())));
     }
@@ -504,7 +504,7 @@ public void batchDeleteUserLinks(
   @Override
   public void getWebDataStream(
       GetWebDataStreamRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof WebDataStream) {
       requests.add(request);
       responseObserver.onNext(((WebDataStream) response));
@@ -516,7 +516,7 @@ public void getWebDataStream(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method GetWebDataStream, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   WebDataStream.class.getName(),
                   Exception.class.getName())));
     }
@@ -525,7 +525,7 @@ public void getWebDataStream(
   @Override
   public void deleteWebDataStream(
       DeleteWebDataStreamRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Empty) {
       requests.add(request);
       responseObserver.onNext(((Empty) response));
@@ -537,7 +537,7 @@ public void deleteWebDataStream(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method DeleteWebDataStream, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Empty.class.getName(),
                   Exception.class.getName())));
     }
@@ -546,7 +546,7 @@ public void deleteWebDataStream(
   @Override
   public void updateWebDataStream(
       UpdateWebDataStreamRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof WebDataStream) {
       requests.add(request);
       responseObserver.onNext(((WebDataStream) response));
@@ -558,7 +558,7 @@ public void updateWebDataStream(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method UpdateWebDataStream, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   WebDataStream.class.getName(),
                   Exception.class.getName())));
     }
@@ -567,7 +567,7 @@ public void updateWebDataStream(
   @Override
   public void createWebDataStream(
       CreateWebDataStreamRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof WebDataStream) {
       requests.add(request);
       responseObserver.onNext(((WebDataStream) response));
@@ -579,7 +579,7 @@ public void createWebDataStream(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method CreateWebDataStream, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   WebDataStream.class.getName(),
                   Exception.class.getName())));
     }
@@ -589,7 +589,7 @@ public void createWebDataStream(
   public void listWebDataStreams(
       ListWebDataStreamsRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof ListWebDataStreamsResponse) {
       requests.add(request);
       responseObserver.onNext(((ListWebDataStreamsResponse) response));
@@ -601,7 +601,7 @@ public void listWebDataStreams(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method ListWebDataStreams, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   ListWebDataStreamsResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -610,7 +610,7 @@ public void listWebDataStreams(
   @Override
   public void getIosAppDataStream(
       GetIosAppDataStreamRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof IosAppDataStream) {
       requests.add(request);
       responseObserver.onNext(((IosAppDataStream) response));
@@ -622,7 +622,7 @@ public void getIosAppDataStream(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method GetIosAppDataStream, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   IosAppDataStream.class.getName(),
                   Exception.class.getName())));
     }
@@ -631,7 +631,7 @@ public void getIosAppDataStream(
   @Override
   public void deleteIosAppDataStream(
       DeleteIosAppDataStreamRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Empty) {
       requests.add(request);
       responseObserver.onNext(((Empty) response));
@@ -643,7 +643,7 @@ public void deleteIosAppDataStream(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method DeleteIosAppDataStream, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Empty.class.getName(),
                   Exception.class.getName())));
     }
@@ -652,7 +652,7 @@ public void deleteIosAppDataStream(
   @Override
   public void updateIosAppDataStream(
       UpdateIosAppDataStreamRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof IosAppDataStream) {
       requests.add(request);
       responseObserver.onNext(((IosAppDataStream) response));
@@ -664,7 +664,7 @@ public void updateIosAppDataStream(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method UpdateIosAppDataStream, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   IosAppDataStream.class.getName(),
                   Exception.class.getName())));
     }
@@ -673,7 +673,7 @@ public void updateIosAppDataStream(
   @Override
   public void createIosAppDataStream(
       CreateIosAppDataStreamRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof IosAppDataStream) {
       requests.add(request);
       responseObserver.onNext(((IosAppDataStream) response));
@@ -685,7 +685,7 @@ public void createIosAppDataStream(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method CreateIosAppDataStream, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   IosAppDataStream.class.getName(),
                   Exception.class.getName())));
     }
@@ -695,7 +695,7 @@ public void createIosAppDataStream(
   public void listIosAppDataStreams(
       ListIosAppDataStreamsRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof ListIosAppDataStreamsResponse) {
       requests.add(request);
       responseObserver.onNext(((ListIosAppDataStreamsResponse) response));
@@ -707,7 +707,7 @@ public void listIosAppDataStreams(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method ListIosAppDataStreams, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   ListIosAppDataStreamsResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -717,7 +717,7 @@ public void listIosAppDataStreams(
   public void getAndroidAppDataStream(
       GetAndroidAppDataStreamRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof AndroidAppDataStream) {
       requests.add(request);
       responseObserver.onNext(((AndroidAppDataStream) response));
@@ -729,7 +729,7 @@ public void getAndroidAppDataStream(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method GetAndroidAppDataStream, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   AndroidAppDataStream.class.getName(),
                   Exception.class.getName())));
     }
@@ -738,7 +738,7 @@ public void getAndroidAppDataStream(
   @Override
   public void deleteAndroidAppDataStream(
       DeleteAndroidAppDataStreamRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Empty) {
       requests.add(request);
       responseObserver.onNext(((Empty) response));
@@ -750,7 +750,7 @@ public void deleteAndroidAppDataStream(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method DeleteAndroidAppDataStream, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Empty.class.getName(),
                   Exception.class.getName())));
     }
@@ -760,7 +760,7 @@ public void deleteAndroidAppDataStream(
   public void updateAndroidAppDataStream(
       UpdateAndroidAppDataStreamRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof AndroidAppDataStream) {
       requests.add(request);
       responseObserver.onNext(((AndroidAppDataStream) response));
@@ -772,7 +772,7 @@ public void updateAndroidAppDataStream(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method UpdateAndroidAppDataStream, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   AndroidAppDataStream.class.getName(),
                   Exception.class.getName())));
     }
@@ -782,7 +782,7 @@ public void updateAndroidAppDataStream(
   public void createAndroidAppDataStream(
       CreateAndroidAppDataStreamRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof AndroidAppDataStream) {
       requests.add(request);
       responseObserver.onNext(((AndroidAppDataStream) response));
@@ -794,7 +794,7 @@ public void createAndroidAppDataStream(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method CreateAndroidAppDataStream, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   AndroidAppDataStream.class.getName(),
                   Exception.class.getName())));
     }
@@ -804,7 +804,7 @@ public void createAndroidAppDataStream(
   public void listAndroidAppDataStreams(
       ListAndroidAppDataStreamsRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof ListAndroidAppDataStreamsResponse) {
       requests.add(request);
       responseObserver.onNext(((ListAndroidAppDataStreamsResponse) response));
@@ -816,7 +816,7 @@ public void listAndroidAppDataStreams(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method ListAndroidAppDataStreams, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   ListAndroidAppDataStreamsResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -826,7 +826,7 @@ public void listAndroidAppDataStreams(
   public void getEnhancedMeasurementSettings(
       GetEnhancedMeasurementSettingsRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof EnhancedMeasurementSettings) {
       requests.add(request);
       responseObserver.onNext(((EnhancedMeasurementSettings) response));
@@ -838,7 +838,7 @@ public void getEnhancedMeasurementSettings(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method GetEnhancedMeasurementSettings, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   EnhancedMeasurementSettings.class.getName(),
                   Exception.class.getName())));
     }
@@ -848,7 +848,7 @@ public void getEnhancedMeasurementSettings(
   public void updateEnhancedMeasurementSettings(
       UpdateEnhancedMeasurementSettingsRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof EnhancedMeasurementSettings) {
       requests.add(request);
       responseObserver.onNext(((EnhancedMeasurementSettings) response));
@@ -860,7 +860,7 @@ public void updateEnhancedMeasurementSettings(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method UpdateEnhancedMeasurementSettings, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   EnhancedMeasurementSettings.class.getName(),
                   Exception.class.getName())));
     }
@@ -869,7 +869,7 @@ public void updateEnhancedMeasurementSettings(
   @Override
   public void createFirebaseLink(
       CreateFirebaseLinkRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof FirebaseLink) {
       requests.add(request);
       responseObserver.onNext(((FirebaseLink) response));
@@ -881,7 +881,7 @@ public void createFirebaseLink(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method CreateFirebaseLink, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   FirebaseLink.class.getName(),
                   Exception.class.getName())));
     }
@@ -890,7 +890,7 @@ public void createFirebaseLink(
   @Override
   public void updateFirebaseLink(
       UpdateFirebaseLinkRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof FirebaseLink) {
       requests.add(request);
       responseObserver.onNext(((FirebaseLink) response));
@@ -902,7 +902,7 @@ public void updateFirebaseLink(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method UpdateFirebaseLink, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   FirebaseLink.class.getName(),
                   Exception.class.getName())));
     }
@@ -911,7 +911,7 @@ public void updateFirebaseLink(
   @Override
   public void deleteFirebaseLink(
       DeleteFirebaseLinkRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Empty) {
       requests.add(request);
       responseObserver.onNext(((Empty) response));
@@ -923,7 +923,7 @@ public void deleteFirebaseLink(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method DeleteFirebaseLink, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Empty.class.getName(),
                   Exception.class.getName())));
     }
@@ -933,7 +933,7 @@ public void deleteFirebaseLink(
   public void listFirebaseLinks(
       ListFirebaseLinksRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof ListFirebaseLinksResponse) {
       requests.add(request);
       responseObserver.onNext(((ListFirebaseLinksResponse) response));
@@ -945,7 +945,7 @@ public void listFirebaseLinks(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method ListFirebaseLinks, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   ListFirebaseLinksResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -954,7 +954,7 @@ public void listFirebaseLinks(
   @Override
   public void getGlobalSiteTag(
       GetGlobalSiteTagRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof GlobalSiteTag) {
       requests.add(request);
       responseObserver.onNext(((GlobalSiteTag) response));
@@ -966,7 +966,7 @@ public void getGlobalSiteTag(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method GetGlobalSiteTag, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   GlobalSiteTag.class.getName(),
                   Exception.class.getName())));
     }
@@ -975,7 +975,7 @@ public void getGlobalSiteTag(
   @Override
   public void createGoogleAdsLink(
       CreateGoogleAdsLinkRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof GoogleAdsLink) {
       requests.add(request);
       responseObserver.onNext(((GoogleAdsLink) response));
@@ -987,7 +987,7 @@ public void createGoogleAdsLink(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method CreateGoogleAdsLink, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   GoogleAdsLink.class.getName(),
                   Exception.class.getName())));
     }
@@ -996,7 +996,7 @@ public void createGoogleAdsLink(
   @Override
   public void updateGoogleAdsLink(
       UpdateGoogleAdsLinkRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof GoogleAdsLink) {
       requests.add(request);
       responseObserver.onNext(((GoogleAdsLink) response));
@@ -1008,7 +1008,7 @@ public void updateGoogleAdsLink(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method UpdateGoogleAdsLink, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   GoogleAdsLink.class.getName(),
                   Exception.class.getName())));
     }
@@ -1017,7 +1017,7 @@ public void updateGoogleAdsLink(
   @Override
   public void deleteGoogleAdsLink(
       DeleteGoogleAdsLinkRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof Empty) {
       requests.add(request);
       responseObserver.onNext(((Empty) response));
@@ -1029,7 +1029,7 @@ public void deleteGoogleAdsLink(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method DeleteGoogleAdsLink, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   Empty.class.getName(),
                   Exception.class.getName())));
     }
@@ -1039,7 +1039,7 @@ public void deleteGoogleAdsLink(
   public void listGoogleAdsLinks(
       ListGoogleAdsLinksRequest request,
       StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof ListGoogleAdsLinksResponse) {
       requests.add(request);
       responseObserver.onNext(((ListGoogleAdsLinksResponse) response));
@@ -1051,7 +1051,7 @@ public void listGoogleAdsLinks(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method ListGoogleAdsLinks, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   ListGoogleAdsLinksResponse.class.getName(),
                   Exception.class.getName())));
     }
@@ -1060,7 +1060,7 @@ public void listGoogleAdsLinks(
   @Override
   public void getDataSharingSettings(
       GetDataSharingSettingsRequest request, StreamObserver responseObserver) {
-    Object response = responses.remove();
+    Object response = responses.poll();
     if (response instanceof DataSharingSettings) {
       requests.add(request);
       responseObserver.onNext(((DataSharingSettings) response));
@@ -1072,7 +1072,7 @@ public void getDataSharingSettings(
           new IllegalArgumentException(
               String.format(
                   "Unrecognized response type %s for method GetDataSharingSettings, expected %s or %s",
-                  response.getClass().getName(),
+                  response == null ? "null" : response.getClass().getName(),
                   DataSharingSettings.class.getName(),
                   Exception.class.getName())));
     }
diff --git a/synth.metadata b/synth.metadata
index 907471df..18bfb190 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,15 +4,15 @@
       "git": {
         "name": ".",
         "remote": "https://github.com/googleapis/java-analytics-admin.git",
-        "sha": "1a2d614c80c0c5849f7aa71f3cae20165c3ed4aa"
+        "sha": "b158e756e9c7ea17ed295a0b1f0670cf47c7ad52"
       }
     },
     {
       "git": {
         "name": "googleapis-gen",
         "remote": "https://github.com/googleapis/googleapis-gen.git",
-        "sha": "ba5ec70708cd72caa1692a95ce57891e3ade61dd",
-        "internalRef": "361377784"
+        "sha": "ebd77e76effb65c4fba8c64f31c15062c250a4c2",
+        "internalRef": "362856902"
       }
     },
     {

From 91dd36b96994e8c7bf3fa367821fcad0cfe2812c Mon Sep 17 00:00:00 2001
From: Jeff Ching 
Date: Mon, 22 Mar 2021 12:52:02 -0700
Subject: [PATCH 12/42] chore: add analytics-dpe as codeowner (#189)

---
 .github/CODEOWNERS              | 4 +++-
 .github/sync-repo-settings.yaml | 4 +++-
 .repo-metadata.json             | 3 ++-
 3 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 30fdb7b9..4f568975 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -4,7 +4,9 @@
 # For syntax help see:
 # https://help.github.com/en/github/creating-cloning-and-archiving-repositories/about-code-owners#codeowners-syntax
 
-*                       @googleapis/yoshi-java
+# The @googleapis/analytics-dpe is the default owner for changes in this repo
+*                       @googleapis/yoshi-java @googleapis/analytics-dpe
+**/*.java               @googleapis/analytics-dpe
 
 # The java-samples-reviewers team is the default owner for samples changes
 samples/**/*.java       @googleapis/java-samples-reviewers
diff --git a/.github/sync-repo-settings.yaml b/.github/sync-repo-settings.yaml
index 6bddd18e..537f386a 100644
--- a/.github/sync-repo-settings.yaml
+++ b/.github/sync-repo-settings.yaml
@@ -46,4 +46,6 @@ permissionRules:
 - team: yoshi-java-admins
   permission: admin
 - team: yoshi-java
-  permission: push
\ No newline at end of file
+  permission: push
+- team: analytics-dpe
+  permission: push
diff --git a/.repo-metadata.json b/.repo-metadata.json
index 7b4b049a..f1b7163e 100644
--- a/.repo-metadata.json
+++ b/.repo-metadata.json
@@ -11,5 +11,6 @@
   "repo_short": "java-analytics-admin",
   "distribution_name": "com.google.analytics:google-analytics-admin",
   "api_id": "analyticsadmin.googleapis.com",
-  "requires_billing": true
+  "requires_billing": true,
+  "codeowner_team": "@googleapis/analytics-dpe"
 }
\ No newline at end of file

From b3a0709b753feb7e678172fc747e959a95750e35 Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot 
Date: Wed, 24 Mar 2021 16:12:09 -0700
Subject: [PATCH 13/42] chore(java): detect sample-secrets in build.sh (#190)

This PR was generated using Autosynth. :rainbow:

Synth log will be available here:
https://source.cloud.google.com/results/invocations/ecc43a3b-beb3-411c-b070-bcdc4f365616/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

Source-Link: https://github.com/googleapis/synthtool/commit/bb854b6c048619e3be4e8b8ce8ed10aa74ea78ef
---
 .kokoro/build.sh | 5 +++++
 synth.metadata   | 4 ++--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/.kokoro/build.sh b/.kokoro/build.sh
index d17ea2c4..96727e12 100755
--- a/.kokoro/build.sh
+++ b/.kokoro/build.sh
@@ -79,6 +79,11 @@ samples)
 
     if [[ -f ${SAMPLES_DIR}/pom.xml ]]
     then
+        for FILE in ${KOKORO_GFILE_DIR}/secret_manager/*-samples-secrets; do
+          [[ -f "$FILE" ]] || continue
+          source "$FILE"
+        done
+
         pushd ${SAMPLES_DIR}
         mvn -B \
           -Penable-samples \
diff --git a/synth.metadata b/synth.metadata
index 18bfb190..024a0650 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,7 +4,7 @@
       "git": {
         "name": ".",
         "remote": "https://github.com/googleapis/java-analytics-admin.git",
-        "sha": "b158e756e9c7ea17ed295a0b1f0670cf47c7ad52"
+        "sha": "91dd36b96994e8c7bf3fa367821fcad0cfe2812c"
       }
     },
     {
@@ -19,7 +19,7 @@
       "git": {
         "name": "synthtool",
         "remote": "https://github.com/googleapis/synthtool.git",
-        "sha": "0b064d767537e0675fc053e53fca473c5c701fb8"
+        "sha": "bb854b6c048619e3be4e8b8ce8ed10aa74ea78ef"
       }
     }
   ],

From 0a9c239496de5e2335fc6c61ed0b3b6d36dd135e Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot 
Date: Mon, 29 Mar 2021 15:42:04 -0700
Subject: [PATCH 14/42] chore: remove staging bucket v2 (#191)

This PR was generated using Autosynth. :rainbow:

Synth log will be available here:
https://source.cloud.google.com/results/invocations/0c91a41a-ef95-4c91-9929-f7697c776f6e/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

Source-Link: https://github.com/googleapis/synthtool/commit/572ef8f70edd9041f5bcfa71511aed6aecfc2098
---
 .kokoro/release/publish_javadoc.sh | 5 -----
 synth.metadata                     | 4 ++--
 2 files changed, 2 insertions(+), 7 deletions(-)

diff --git a/.kokoro/release/publish_javadoc.sh b/.kokoro/release/publish_javadoc.sh
index 1d1cc36b..2f21b274 100755
--- a/.kokoro/release/publish_javadoc.sh
+++ b/.kokoro/release/publish_javadoc.sh
@@ -24,11 +24,6 @@ if [[ -z "${STAGING_BUCKET}" ]]; then
   exit 1
 fi
 
-if [[ -z "${STAGING_BUCKET_V2}" ]]; then
-  echo "Need to set STAGING_BUCKET_V2 environment variable"
-  exit 1
-fi
-
 # work from the git root directory
 pushd $(dirname "$0")/../../
 
diff --git a/synth.metadata b/synth.metadata
index 024a0650..0e421d4e 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,7 +4,7 @@
       "git": {
         "name": ".",
         "remote": "https://github.com/googleapis/java-analytics-admin.git",
-        "sha": "91dd36b96994e8c7bf3fa367821fcad0cfe2812c"
+        "sha": "b3a0709b753feb7e678172fc747e959a95750e35"
       }
     },
     {
@@ -19,7 +19,7 @@
       "git": {
         "name": "synthtool",
         "remote": "https://github.com/googleapis/synthtool.git",
-        "sha": "bb854b6c048619e3be4e8b8ce8ed10aa74ea78ef"
+        "sha": "572ef8f70edd9041f5bcfa71511aed6aecfc2098"
       }
     }
   ],

From d98586582c50f8a229a89eaf70de089cddf1ef5e Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot 
Date: Mon, 12 Apr 2021 07:22:11 -0700
Subject: [PATCH 15/42] build(java): skip javadoc tests during dependencies
 test (#192)

This PR was generated using Autosynth. :rainbow:

Synth log will be available here:
https://source.cloud.google.com/results/invocations/e2a34b1c-bf5a-40fb-90d2-d348c259d27f/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

Source-Link: https://github.com/googleapis/synthtool/commit/5b0e1592dd7d70b485e157ea4b3eb1704ecbd015
---
 .kokoro/dependencies.sh | 1 +
 synth.metadata          | 4 ++--
 2 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh
index 0fb8c843..59d2aafc 100755
--- a/.kokoro/dependencies.sh
+++ b/.kokoro/dependencies.sh
@@ -33,6 +33,7 @@ export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m"
 retry_with_backoff 3 10 \
   mvn install -B -V -ntp \
     -DskipTests=true \
+    -Dmaven.javadoc.skip=true \
     -Dclirr.skip=true
 
 mvn -B dependency:analyze -DfailOnWarning=true
diff --git a/synth.metadata b/synth.metadata
index 0e421d4e..699589ad 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,7 +4,7 @@
       "git": {
         "name": ".",
         "remote": "https://github.com/googleapis/java-analytics-admin.git",
-        "sha": "b3a0709b753feb7e678172fc747e959a95750e35"
+        "sha": "0a9c239496de5e2335fc6c61ed0b3b6d36dd135e"
       }
     },
     {
@@ -19,7 +19,7 @@
       "git": {
         "name": "synthtool",
         "remote": "https://github.com/googleapis/synthtool.git",
-        "sha": "572ef8f70edd9041f5bcfa71511aed6aecfc2098"
+        "sha": "5b0e1592dd7d70b485e157ea4b3eb1704ecbd015"
       }
     }
   ],

From 3001dfc339cfa7f23497481f95e0314bdf8d7189 Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot 
Date: Tue, 13 Apr 2021 08:40:16 -0700
Subject: [PATCH 16/42] fix: typo (#196)

This PR was generated using Autosynth. :rainbow:

Synth log will be available here:
https://source.cloud.google.com/results/invocations/097e7d2a-82b9-4f2f-b16b-50ff458a2040/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

Source-Link: https://github.com/googleapis/synthtool/commit/082e1ca0863b13ada8594fe91845380765da5b70
---
 .kokoro/build.sh | 2 +-
 synth.metadata   | 5 +++--
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/.kokoro/build.sh b/.kokoro/build.sh
index 96727e12..4d93f976 100755
--- a/.kokoro/build.sh
+++ b/.kokoro/build.sh
@@ -37,7 +37,7 @@ retry_with_backoff 3 10 \
     -Dgcloud.download.skip=true \
     -T 1C
 
-# if GOOGLE_APPLICATION_CREDIENTIALS is specified as a relative path prepend Kokoro root directory onto it
+# if GOOGLE_APPLICATION_CREDENTIALS is specified as a relative path, prepend Kokoro root directory onto it
 if [[ ! -z "${GOOGLE_APPLICATION_CREDENTIALS}" && "${GOOGLE_APPLICATION_CREDENTIALS}" != /* ]]; then
     export GOOGLE_APPLICATION_CREDENTIALS=$(realpath ${KOKORO_GFILE_DIR}/${GOOGLE_APPLICATION_CREDENTIALS})
 fi
diff --git a/synth.metadata b/synth.metadata
index 699589ad..2a7537ac 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,7 +4,7 @@
       "git": {
         "name": ".",
         "remote": "https://github.com/googleapis/java-analytics-admin.git",
-        "sha": "0a9c239496de5e2335fc6c61ed0b3b6d36dd135e"
+        "sha": "d98586582c50f8a229a89eaf70de089cddf1ef5e"
       }
     },
     {
@@ -19,7 +19,7 @@
       "git": {
         "name": "synthtool",
         "remote": "https://github.com/googleapis/synthtool.git",
-        "sha": "5b0e1592dd7d70b485e157ea4b3eb1704ecbd015"
+        "sha": "082e1ca0863b13ada8594fe91845380765da5b70"
       }
     }
   ],
@@ -34,6 +34,7 @@
     ".github/readme/synth.py",
     ".github/release-please.yml",
     ".github/snippet-bot.yml",
+    ".github/sync-repo-settings.yaml",
     ".github/trusted-contribution.yml",
     ".github/workflows/approve-readme.yaml",
     ".github/workflows/auto-release.yaml",

From 09b65531fa75089b0dd5afbc10486085d49fa949 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate 
Date: Wed, 14 Apr 2021 02:44:07 +0200
Subject: [PATCH 17/42] chore(deps): update dependency
 com.google.cloud.samples:shared-configuration to v1.0.22 (#193)

---
 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 2c4a3e9e..be8384c8 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.21
+    1.0.22
   
 
   
diff --git a/samples/pom.xml b/samples/pom.xml
index f6f4dc80..9fb43474 100644
--- a/samples/pom.xml
+++ b/samples/pom.xml
@@ -18,7 +18,7 @@
   
     com.google.cloud.samples
     shared-configuration
-    1.0.21
+    1.0.22
   
 
   
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 46c69bee..e1fc4b38 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -14,7 +14,7 @@
   
     com.google.cloud.samples
     shared-configuration
-    1.0.21
+    1.0.22
   
 
   
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 694d62bc..5d95e068 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -14,7 +14,7 @@
   
     com.google.cloud.samples
     shared-configuration
-    1.0.21
+    1.0.22
   
 
   

From b429a0ba4fea5f974e24f3d8e06a03addcbedc0e Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate 
Date: Wed, 14 Apr 2021 02:50:05 +0200
Subject: [PATCH 18/42] deps: update dependency
 com.google.cloud:google-cloud-shared-dependencies to v0.21.0 (#194)

---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 6ddf8b26..0a4f9956 100644
--- a/pom.xml
+++ b/pom.xml
@@ -86,7 +86,7 @@
       
         com.google.cloud
         google-cloud-shared-dependencies
-        0.20.1
+        0.21.0
         pom
         import
       

From 30b1195db5389a7fb940b4decf13baf68fcd1005 Mon Sep 17 00:00:00 2001
From: Yoshi Automation Bot 
Date: Thu, 15 Apr 2021 08:34:21 -0700
Subject: [PATCH 19/42] fix: release scripts from issuing overlapping phases
 (#197)

This PR was generated using Autosynth. :rainbow:

Synth log will be available here:
https://source.cloud.google.com/results/invocations/5b247123-4b3d-4c61-99a5-679e963822dd/targets

- [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.)

Source-Link: https://github.com/googleapis/synthtool/commit/8285c2b4cdbc3771d031ad91e1c4ec9e55fff45d
---
 .kokoro/release/snapshot.sh | 2 +-
 .kokoro/release/stage.sh    | 2 +-
 synth.metadata              | 4 ++--
 3 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/.kokoro/release/snapshot.sh b/.kokoro/release/snapshot.sh
index 098168a7..1f55b770 100755
--- a/.kokoro/release/snapshot.sh
+++ b/.kokoro/release/snapshot.sh
@@ -25,7 +25,7 @@ grep SNAPSHOT versions.txt
 setup_environment_secrets
 create_settings_xml_file "settings.xml"
 
-mvn clean install deploy -B \
+mvn clean deploy -B \
   --settings ${MAVEN_SETTINGS_FILE} \
   -DperformRelease=true \
   -Dgpg.executable=gpg \
diff --git a/.kokoro/release/stage.sh b/.kokoro/release/stage.sh
index 16126d2e..8a103384 100755
--- a/.kokoro/release/stage.sh
+++ b/.kokoro/release/stage.sh
@@ -29,7 +29,7 @@ create_settings_xml_file "settings.xml"
 
 # attempt to stage 3 times with exponential backoff (starting with 10 seconds)
 retry_with_backoff 3 10 \
-  mvn clean install deploy -B \
+  mvn clean deploy -B \
     --settings ${MAVEN_SETTINGS_FILE} \
     -DskipTests=true \
     -DperformRelease=true \
diff --git a/synth.metadata b/synth.metadata
index 2a7537ac..ab7221c7 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,7 +4,7 @@
       "git": {
         "name": ".",
         "remote": "https://github.com/googleapis/java-analytics-admin.git",
-        "sha": "d98586582c50f8a229a89eaf70de089cddf1ef5e"
+        "sha": "b429a0ba4fea5f974e24f3d8e06a03addcbedc0e"
       }
     },
     {
@@ -19,7 +19,7 @@
       "git": {
         "name": "synthtool",
         "remote": "https://github.com/googleapis/synthtool.git",
-        "sha": "082e1ca0863b13ada8594fe91845380765da5b70"
+        "sha": "8285c2b4cdbc3771d031ad91e1c4ec9e55fff45d"
       }
     }
   ],

From f0042eb96c3fa8a0c224d0f64c3ca5f1f548125d Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate 
Date: Mon, 26 Apr 2021 18:48:04 +0200
Subject: [PATCH 20/42] build(deps): update dependency
 com.google.cloud:google-cloud-shared-config to v0.11.2 (#174)

[![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) | `0.10.0` -> `0.11.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.2/compatibility-slim/0.10.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.11.2/confidence-slim/0.10.0)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

googleapis/java-shared-config ### [`v0.11.2`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​0112-httpswwwgithubcomgoogleapisjava-shared-configcomparev0111v0112-2021-04-22) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.11.1...v0.11.2) ### [`v0.11.1`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​0111-httpswwwgithubcomgoogleapisjava-shared-configcomparev0110v0111-2021-04-14) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.11.0...v0.11.1) ### [`v0.11.0`](https://togithub.com/googleapis/java-shared-config/blob/master/CHANGELOG.md#​0110-httpswwwgithubcomgoogleapisjava-shared-configcomparev0100v0110-2021-02-25) [Compare Source](https://togithub.com/googleapis/java-shared-config/compare/v0.10.0...v0.11.0) ##### Features - migrate releases to the new Google Sonatype endpoint to address Sonatype errors. ([#​230](https://www.github.com/googleapis/java-shared-config/issues/230)) ([ff6a95f](https://www.github.com/googleapis/java-shared-config/commit/ff6a95f7b0d24a1c37c38ba8ac6c6624ee97cc15)) ##### Dependencies - update dependency com.puppycrawl.tools:checkstyle to v8.40 ([#​221](https://www.github.com/googleapis/java-shared-config/issues/221)) ([d9b2d4a](https://www.github.com/googleapis/java-shared-config/commit/d9b2d4aab9a9bba1c2df6fcb52ac96ee8b001ad6)) - update dependency org.apache.maven.plugins:maven-checkstyle-plugin to v3.1.2 ([#​219](https://www.github.com/googleapis/java-shared-config/issues/219)) ([f7c3f79](https://www.github.com/googleapis/java-shared-config/commit/f7c3f798ef8ad1bc59ae673c84fbdd9f93ee2413))
--- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-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 df53df10..a71ce1f0 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 - 0.10.0 + 0.11.2 Google Analytics Admin BOM diff --git a/pom.xml b/pom.xml index 0a4f9956..3b4588d1 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.10.0 + 0.11.2 From 640a1c2398dd49d8acaa3826ff857baf715ffd43 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 26 Apr 2021 19:02:08 +0200 Subject: [PATCH 21/42] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 (#198) [![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) | `0.21.0` -> `0.21.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.1/compatibility-slim/0.21.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/0.21.1/confidence-slim/0.21.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v0.21.1`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​0211-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0210v0211-2021-04-19) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.21.0...v0.21.1)
--- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-admin). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 3b4588d1..8622881e 100644 --- a/pom.xml +++ b/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.21.0 + 0.21.1 pom import From c1489212a633e8ec6e9fa8838c3f3549ab14b4a4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 26 Apr 2021 19:20:11 +0200 Subject: [PATCH 22/42] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v1 (#201) [![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) | `0.21.1` -> `1.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.0.0/compatibility-slim/0.21.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.0.0/confidence-slim/0.21.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v1.0.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​100-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare0211v100-2021-04-23) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v0.21.1...v1.0.0) ##### Features - promote to 1.0.0 ([#​341](https://www.github.com/googleapis/java-shared-dependencies/issues/341)) ([eddce7b](https://www.github.com/googleapis/java-shared-dependencies/commit/eddce7bda196d757c0bb93a05574cc742e3d7ff6)) ##### Dependencies - update dependency com.google.api:api-common to v1.10.3 ([#​340](https://www.github.com/googleapis/java-shared-dependencies/issues/340)) ([6a7fc33](https://www.github.com/googleapis/java-shared-dependencies/commit/6a7fc33548c199d5f310b3ee5024907882d22726)) - update dependency com.google.auth:google-auth-library-bom to v0.25.4 ([#​334](https://www.github.com/googleapis/java-shared-dependencies/issues/334)) ([e5c747d](https://www.github.com/googleapis/java-shared-dependencies/commit/e5c747d245194effc258ae706e7764153010cd53)) - update dependency com.google.auth:google-auth-library-bom to v0.25.5 ([#​338](https://www.github.com/googleapis/java-shared-dependencies/issues/338)) ([ffa1df5](https://www.github.com/googleapis/java-shared-dependencies/commit/ffa1df5497b5365f520b665a202b8caf6521fc9d)) - update dependency org.threeten:threetenbp to v1.5.1 ([#​335](https://www.github.com/googleapis/java-shared-dependencies/issues/335)) ([c8c6df4](https://www.github.com/googleapis/java-shared-dependencies/commit/c8c6df48e7f80944544939e502f4f08543af2631)) - update google.core.version to v1.94.8 ([#​342](https://www.github.com/googleapis/java-shared-dependencies/issues/342)) ([d946dd2](https://www.github.com/googleapis/java-shared-dependencies/commit/d946dd2299aac32f969a2226a1391e1e73f00e62)) ##### [0.21.1](https://www.github.com/googleapis/java-shared-dependencies/compare/0.21.0...v0.21.1) (2021-04-19) ##### Bug Fixes - release scripts from issuing overlapping phases ([#​332](https://www.github.com/googleapis/java-shared-dependencies/issues/332)) ([e289825](https://www.github.com/googleapis/java-shared-dependencies/commit/e289825a3bc45b4796db7ce4347f8d9d9251a410)) ##### Dependencies - update dependency com.fasterxml.jackson:jackson-bom to v2.12.3 ([#​329](https://www.github.com/googleapis/java-shared-dependencies/issues/329)) ([a77b4fc](https://www.github.com/googleapis/java-shared-dependencies/commit/a77b4fcc2ea5caf366c76a4698bac6d4c9abc92e)) - update dependency com.google.api-client:google-api-client-bom to v1.31.4 ([#​326](https://www.github.com/googleapis/java-shared-dependencies/issues/326)) ([409d24f](https://www.github.com/googleapis/java-shared-dependencies/commit/409d24f8a0cac30e41ca45eb2711aecb335d70dd)) - update dependency com.google.auth:google-auth-library-bom to v0.25.3 ([#​328](https://www.github.com/googleapis/java-shared-dependencies/issues/328)) ([88cfc08](https://www.github.com/googleapis/java-shared-dependencies/commit/88cfc08952881200e23ed95cfa2eebad85ec7ab3)) - update google.core.version to v1.94.7 ([#​324](https://www.github.com/googleapis/java-shared-dependencies/issues/324)) ([0412c88](https://www.github.com/googleapis/java-shared-dependencies/commit/0412c88468940c1182bc0761bfe269a6688fe7b7)) - update iam.version to v1.0.12 ([#​327](https://www.github.com/googleapis/java-shared-dependencies/issues/327)) ([548d5f5](https://www.github.com/googleapis/java-shared-dependencies/commit/548d5f53c4f264f1cbb9ca72fdfe4608ab16b480))
--- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-admin). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 8622881e..08decc32 100644 --- a/pom.xml +++ b/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-shared-dependencies - 0.21.1 + 1.0.0 pom import From 439f8060cbaacca56dad0cb8356b6d2efcf4c147 Mon Sep 17 00:00:00 2001 From: "google-cloud-policy-bot[bot]" <80869356+google-cloud-policy-bot[bot]@users.noreply.github.com> Date: Tue, 27 Apr 2021 18:24:33 +0000 Subject: [PATCH 23/42] chore: add SECURITY.md (#202) add a security policy --- SECURITY.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 SECURITY.md diff --git a/SECURITY.md b/SECURITY.md new file mode 100644 index 00000000..8b58ae9c --- /dev/null +++ b/SECURITY.md @@ -0,0 +1,7 @@ +# Security Policy + +To report a security issue, please use [g.co/vulnz](https://g.co/vulnz). + +The Google Security Team will respond within 5 working days of your report on g.co/vulnz. + +We use g.co/vulnz for our intake, and do coordination and disclosure here using GitHub Security Advisory to privately discuss and fix the issue. From 69f0635c78d21ab963156360262b57e725e1f75a Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 4 May 2021 09:08:30 -0700 Subject: [PATCH 24/42] build(java): switch to release-please for release tagging (#205) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/5b6af4d2-11a3-474c-be28-837f9b7363bf/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) --- .github/release-please.yml | 3 ++- synth.metadata | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/release-please.yml b/.github/release-please.yml index dce2c845..8ca7f9ca 100644 --- a/.github/release-please.yml +++ b/.github/release-please.yml @@ -1,2 +1,3 @@ +bumpMinorPreMajor: true +handleGHRelease: true releaseType: java-yoshi -bumpMinorPreMajor: true \ No newline at end of file diff --git a/synth.metadata b/synth.metadata index ab7221c7..3aac98f1 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-analytics-admin.git", - "sha": "b429a0ba4fea5f974e24f3d8e06a03addcbedc0e" + "sha": "439f8060cbaacca56dad0cb8356b6d2efcf4c147" } }, { From 8b28aa0ff7d8cf753d17a7f6bfa547d289a67c1f Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Tue, 4 May 2021 12:40:31 -0400 Subject: [PATCH 25/42] chore: add enumeration data type to .repo-metadata.json (#206) Adds a standard enumeration of library types in .repo-metadata.json --- .repo-metadata.json | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/.repo-metadata.json b/.repo-metadata.json index f1b7163e..f965ccf0 100644 --- a/.repo-metadata.json +++ b/.repo-metadata.json @@ -1,16 +1,17 @@ { - "name": "analytics-admin", - "name_pretty": "Analytics Admin", - "product_documentation": "https://developers.google.com/analytics", - "api_description": "allows you to manage Google Analytics accounts and properties.", - "client_documentation": "https://googleapis.dev/java/google-analytics-admin/latest/index.html", - "release_level": "alpha", - "transport": "grpc", - "language": "java", - "repo": "googleapis/java-analytics-admin", - "repo_short": "java-analytics-admin", - "distribution_name": "com.google.analytics:google-analytics-admin", - "api_id": "analyticsadmin.googleapis.com", - "requires_billing": true, - "codeowner_team": "@googleapis/analytics-dpe" -} \ No newline at end of file + "name": "analytics-admin", + "name_pretty": "Analytics Admin", + "product_documentation": "https://developers.google.com/analytics", + "api_description": "allows you to manage Google Analytics accounts and properties.", + "client_documentation": "https://googleapis.dev/java/google-analytics-admin/latest/index.html", + "release_level": "alpha", + "transport": "grpc", + "language": "java", + "repo": "googleapis/java-analytics-admin", + "repo_short": "java-analytics-admin", + "distribution_name": "com.google.analytics:google-analytics-admin", + "api_id": "analyticsadmin.googleapis.com", + "requires_billing": true, + "codeowner_team": "@googleapis/analytics-dpe", + "library_type": "GAPIC_AUTO" +} From be9269bad1385a74b9beb2ae8ebc3654dc4bc480 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 6 May 2021 16:06:06 -0700 Subject: [PATCH 26/42] chore: adding cloud-rad java xrefs (#207) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/0cc59cf8-7a9f-4a86-a52e-a4a3158a6529/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/046994f491c02806aea60118e214a9edd67f5ab7 --- .kokoro/release/publish_javadoc11.sh | 7 +++++++ synth.metadata | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index 938e2629..ff803c2c 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -49,6 +49,13 @@ pushd target/docfx-yml python3 -m docuploader create-metadata \ --name ${NAME} \ --version ${VERSION} \ + --xrefs devsite://java/gax \ + --xrefs devsite://java/google-cloud-core \ + --xrefs devsite://java/api-common \ + --xrefs devsite://java/proto-google-common-protos \ + --xrefs devsite://java/google-api-client \ + --xrefs devsite://java/google-http-client \ + --xrefs devsite://java/protobuf \ --language java # upload yml to production bucket diff --git a/synth.metadata b/synth.metadata index 3aac98f1..69d46a5e 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-analytics-admin.git", - "sha": "439f8060cbaacca56dad0cb8356b6d2efcf4c147" + "sha": "8b28aa0ff7d8cf753d17a7f6bfa547d289a67c1f" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "8285c2b4cdbc3771d031ad91e1c4ec9e55fff45d" + "sha": "046994f491c02806aea60118e214a9edd67f5ab7" } } ], From 4801dd7212132eb184f2d851549ab99e671150dd Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 11 May 2021 03:24:36 +0200 Subject: [PATCH 27/42] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 (#210) 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) | `1.0.0` -> `1.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.1.0/compatibility-slim/1.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.1.0/confidence-slim/1.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v1.1.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​110-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare100v110-2021-05-10) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v1.0.0...v1.1.0) ##### Dependencies - update dependency com.google.protobuf:protobuf-bom to v3.16.0 ([#​348](https://www.github.com/googleapis/java-shared-dependencies/issues/348)) ([0aacfde](https://www.github.com/googleapis/java-shared-dependencies/commit/0aacfdeec70e30803734db8287c47e4fad5481ef)) - update gax.version to v1.64.0 ([#​345](https://www.github.com/googleapis/java-shared-dependencies/issues/345)) ([478bd35](https://www.github.com/googleapis/java-shared-dependencies/commit/478bd35296293e81c7e70157f50bfbebdc1bb54d)) - update iam.version to v1.0.13 ([#​343](https://www.github.com/googleapis/java-shared-dependencies/issues/343)) ([3637923](https://www.github.com/googleapis/java-shared-dependencies/commit/363792392b71deff5cc5731104b631122fba5e61))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-admin). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 08decc32..16233b87 100644 --- a/pom.xml +++ b/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-shared-dependencies - 1.0.0 + 1.1.0 pom import From 18e8f50ab46495afeb3194299194cbf2e6dae5b2 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 13 May 2021 16:40:18 -0700 Subject: [PATCH 28/42] build(java): remove codecov action (#211) This PR was generated using Autosynth. :rainbow: Synth log will be available here: https://source.cloud.google.com/results/invocations/0df71788-c971-4d5a-b8a0-6eb8a4cf0e5a/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) Source-Link: https://github.com/googleapis/synthtool/commit/4f4b1b9b8d8b52f1e9e4a76165896debce5ab7f1 --- .github/workflows/ci.yaml | 6 +----- synth.metadata | 4 ++-- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index def8b3a2..0195b32f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -19,10 +19,6 @@ jobs: - run: .kokoro/build.sh env: JOB_TYPE: test - - name: coverage - uses: codecov/codecov-action@v1 - with: - name: actions ${{matrix.java}} windows: runs-on: windows-latest steps: @@ -80,4 +76,4 @@ jobs: - run: java -version - run: .kokoro/build.sh env: - JOB_TYPE: clirr \ No newline at end of file + JOB_TYPE: clirr diff --git a/synth.metadata b/synth.metadata index 69d46a5e..510218d4 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-analytics-admin.git", - "sha": "8b28aa0ff7d8cf753d17a7f6bfa547d289a67c1f" + "sha": "4801dd7212132eb184f2d851549ab99e671150dd" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "046994f491c02806aea60118e214a9edd67f5ab7" + "sha": "4f4b1b9b8d8b52f1e9e4a76165896debce5ab7f1" } } ], From 5175561841917383aaf72efa000512f75843c951 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 14 May 2021 03:54:21 +0200 Subject: [PATCH 29/42] build(deps): update dependency org.apache.maven.plugins:maven-project-info-reports-plugin to v3.1.2 (#209) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | org.apache.maven.plugins:maven-project-info-reports-plugin | `3.1.1` -> `3.1.2` | [![age](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.1.2/compatibility-slim/3.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/org.apache.maven.plugins:maven-project-info-reports-plugin/3.1.2/confidence-slim/3.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-admin). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 16233b87..ee5fb9ea 100644 --- a/pom.xml +++ b/pom.xml @@ -129,7 +129,7 @@ org.apache.maven.plugins maven-project-info-reports-plugin - 3.1.1 + 3.1.2 From c8b4d76f3d3eff834637a135c7ccff7863073b33 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 19 May 2021 17:06:38 +0200 Subject: [PATCH 30/42] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 (#214) 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) | `1.1.0` -> `1.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.2.0/compatibility-slim/1.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.2.0/confidence-slim/1.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v1.2.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​120-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare110v120-2021-05-18) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v1.1.0...v1.2.0) ##### Dependencies - update dependency com.google.api-client:google-api-client-bom to v1.31.5 ([#​353](https://www.github.com/googleapis/java-shared-dependencies/issues/353)) ([8d72ab0](https://www.github.com/googleapis/java-shared-dependencies/commit/8d72ab003e08c864aedc17fc190ba26f393bf0c7)) - update dependency com.google.errorprone:error_prone_annotations to v2.7.1 ([#​360](https://www.github.com/googleapis/java-shared-dependencies/issues/360)) ([8f952d0](https://www.github.com/googleapis/java-shared-dependencies/commit/8f952d05745358fc426a1a2dcb688da5d5010239)) - update dependency com.google.protobuf:protobuf-bom to v3.17.0 ([#​355](https://www.github.com/googleapis/java-shared-dependencies/issues/355)) ([09858fb](https://www.github.com/googleapis/java-shared-dependencies/commit/09858fb4f1b78a77e828501597d20df4db0ebfcf)) - update dependency io.grpc:grpc-bom to v1.37.1 ([#​359](https://www.github.com/googleapis/java-shared-dependencies/issues/359)) ([bc9869e](https://www.github.com/googleapis/java-shared-dependencies/commit/bc9869e914314f951afd69f2acae95c414398f43)) - update google.common-protos.version to v2.2.1 ([#​358](https://www.github.com/googleapis/java-shared-dependencies/issues/358)) ([a3ed764](https://www.github.com/googleapis/java-shared-dependencies/commit/a3ed764a0e5143ee323d4b69c9747b8265d349e2)) - update iam.version to v1.0.14 ([#​352](https://www.github.com/googleapis/java-shared-dependencies/issues/352)) ([bea9a01](https://www.github.com/googleapis/java-shared-dependencies/commit/bea9a01788ac1332a4bc7e06574ef5701700fe90))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-admin). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index ee5fb9ea..21cc0fbd 100644 --- a/pom.xml +++ b/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-shared-dependencies - 1.1.0 + 1.2.0 pom import From e5b9a7b42228b3a38125e6051c60536ce1a619af Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 19 May 2021 23:06:11 +0200 Subject: [PATCH 31/42] build(deps): update dependency com.google.cloud:google-cloud-shared-config to v0.12.0 (#215) 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) | `0.11.2` -> `0.12.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.12.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.12.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.12.0/compatibility-slim/0.11.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-config/0.12.0/confidence-slim/0.11.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-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 a71ce1f0..c537b170 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 - 0.11.2 + 0.12.0 Google Analytics Admin BOM diff --git a/pom.xml b/pom.xml index 21cc0fbd..27022baa 100644 --- a/pom.xml +++ b/pom.xml @@ -14,7 +14,7 @@ com.google.cloud google-cloud-shared-config - 0.11.2 + 0.12.0 From 73e2021700cf99324389bea45c23c421ac91e915 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 20 May 2021 18:18:04 -0400 Subject: [PATCH 32/42] chore: migrate to owlbot (#213) --- .github/.OwlBot.lock.yaml | 3 ++ .github/.OwlBot.yaml | 29 ++++++++++++ .kokoro/release/publish_javadoc11.sh | 2 + google-analytics-admin-bom/pom.xml | 13 +++-- google-analytics-admin/pom.xml | 4 +- synth.py => owlbot.py | 24 ++++------ pom.xml | 4 +- .../analyticsadmin/QuickstartSample.java | 47 +++++++++---------- .../analyticsadmin/QuickstartSampleTest.java | 6 +-- versions.txt | 2 +- 10 files changed, 79 insertions(+), 55 deletions(-) create mode 100644 .github/.OwlBot.lock.yaml create mode 100644 .github/.OwlBot.yaml rename synth.py => owlbot.py (53%) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml new file mode 100644 index 00000000..eeb480bd --- /dev/null +++ b/.github/.OwlBot.lock.yaml @@ -0,0 +1,3 @@ +docker: + digest: sha256:e09db16aef633f4cae68b6eb2771b40ea01464f8db08badcd1c5197b9c623457 + image: gcr.io/repo-automation-bots/owlbot-java:latest diff --git a/.github/.OwlBot.yaml b/.github/.OwlBot.yaml new file mode 100644 index 00000000..a7796ae5 --- /dev/null +++ b/.github/.OwlBot.yaml @@ -0,0 +1,29 @@ +# Copyright 2021 Google LLC +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +docker: + image: "gcr.io/repo-automation-bots/owlbot-java:latest" + +deep-remove-regex: +- "/grpc-google-.*/src" +- "/proto-google-.*/src" +- "/google-.*/src" + +deep-copy-regex: +- source: "/google/analytics/admin/(v.*)/.*-java/proto-google-.*/src" + dest: "/owl-bot-staging/$1/proto-google-analytics-admin-$1/src" +- source: "/google/analytics/admin/(v.*)/.*-java/grpc-google-.*/src" + dest: "/owl-bot-staging/$1/grpc-google-analytics-admin-$1/src" +- source: "/google/analytics/admin/(v.*)/.*-java/gapic-google-.*/src" + dest: "/owl-bot-staging/$1/google-analytics-admin/src" diff --git a/.kokoro/release/publish_javadoc11.sh b/.kokoro/release/publish_javadoc11.sh index ff803c2c..399bc969 100755 --- a/.kokoro/release/publish_javadoc11.sh +++ b/.kokoro/release/publish_javadoc11.sh @@ -42,6 +42,8 @@ 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 +cp CHANGELOG.md target/docfx-yml/history.md pushd target/docfx-yml diff --git a/google-analytics-admin-bom/pom.xml b/google-analytics-admin-bom/pom.xml index c537b170..e4ebaefe 100644 --- a/google-analytics-admin-bom/pom.xml +++ b/google-analytics-admin-bom/pom.xml @@ -1,4 +1,4 @@ - + 4.0.0 com.google.analytics @@ -64,7 +64,6 @@ - com.google.analytics google-analytics-admin @@ -72,13 +71,13 @@ com.google.api.grpc - proto-google-analytics-admin-v1alpha - 0.3.3-SNAPSHOT + grpc-google-analytics-admin-v1alpha + 0.3.3-SNAPSHOT com.google.api.grpc - grpc-google-analytics-admin-v1alpha - 0.3.3-SNAPSHOT + proto-google-analytics-admin-v1alpha + 0.3.3-SNAPSHOT @@ -94,4 +93,4 @@
- \ No newline at end of file + diff --git a/google-analytics-admin/pom.xml b/google-analytics-admin/pom.xml index 3b7d7902..0ceedfb0 100644 --- a/google-analytics-admin/pom.xml +++ b/google-analytics-admin/pom.xml @@ -1,4 +1,4 @@ - + 4.0.0 com.google.analytics @@ -107,4 +107,4 @@ - \ No newline at end of file + diff --git a/synth.py b/owlbot.py similarity index 53% rename from synth.py rename to owlbot.py index 4fef65b8..dca9d867 100644 --- a/synth.py +++ b/owlbot.py @@ -1,10 +1,10 @@ -# Copyright 2020 Google LLC +# Copyright 2021 Google LLC # # Licensed under the Apache License, Version 2.0 (the "License"); # you may not use this file except in compliance with the License. # You may obtain a copy of the License at # -# http://www.apache.org/licenses/LICENSE-2.0 +# https://www.apache.org/licenses/LICENSE-2.0 # # Unless required by applicable law or agreed to in writing, software # distributed under the License is distributed on an "AS IS" BASIS, @@ -12,19 +12,13 @@ # See the License for the specific language governing permissions and # limitations under the License. -"""This script is used to synthesize generated parts of this library.""" +import synthtool as s +from synthtool.languages import java -import synthtool.languages.java as java -service = 'analytics-admin' -versions = ['v1alpha'] +for library in s.get_staging_dirs(): + # put any special-case replacements here + s.move(library) -for version in versions: - java.pregenerated_library( - service=service, - version=version, - path=f'google/analytics/admin/{version}', - cloud_api=False, - ) - -java.common_templates() \ No newline at end of file +s.remove_staging_dirs() +java.common_templates() diff --git a/pom.xml b/pom.xml index 27022baa..de635094 100644 --- a/pom.xml +++ b/pom.xml @@ -119,8 +119,8 @@ google-analytics-admin - proto-google-analytics-admin-v1alpha grpc-google-analytics-admin-v1alpha + proto-google-analytics-admin-v1alpha google-analytics-admin-bom @@ -193,4 +193,4 @@ - \ No newline at end of file + diff --git a/samples/snippets/src/main/java/com/example/analyticsadmin/QuickstartSample.java b/samples/snippets/src/main/java/com/example/analyticsadmin/QuickstartSample.java index 348383c2..5c1fee7b 100644 --- a/samples/snippets/src/main/java/com/example/analyticsadmin/QuickstartSample.java +++ b/samples/snippets/src/main/java/com/example/analyticsadmin/QuickstartSample.java @@ -17,35 +17,35 @@ package com.example.analytics; /* This application demonstrates the usage of the Analytics Admin API using - service account credentials. For more information on service accounts, see - https://cloud.google.com/iam/docs/understanding-service-accounts +service account credentials. For more information on service accounts, see +https://cloud.google.com/iam/docs/understanding-service-accounts - The following document provides instructions on setting service account - credentials for your application: - https://cloud.google.com/docs/authentication/production +The following document provides instructions on setting service account +credentials for your application: +https://cloud.google.com/docs/authentication/production - In a nutshell, you need to: +In a nutshell, you need to: - 1. Create a service account and download the key JSON file. - https://cloud.google.com/docs/authentication/production#creating_a_service_account +1. Create a service account and download the key JSON file. +https://cloud.google.com/docs/authentication/production#creating_a_service_account - 2. Provide service account credentials using one of the following options: - - set the GOOGLE_APPLICATION_CREDENTIALS environment variable, the API - client will use the value of this variable to find the service account key - JSON file. +2. Provide service account credentials using one of the following options: +- set the GOOGLE_APPLICATION_CREDENTIALS environment variable, the API +client will use the value of this variable to find the service account key +JSON file. - https://cloud.google.com/docs/authentication/production#setting_the_environment_variable +https://cloud.google.com/docs/authentication/production#setting_the_environment_variable - OR +OR - - manually pass the path to the service account key JSON file to the API client - by specifying the keyFilename parameter in the constructor. - https://cloud.google.com/docs/authentication/production#passing_the_path_to_the_service_account_key_in_code +- manually pass the path to the service account key JSON file to the API client +by specifying the keyFilename parameter in the constructor. +https://cloud.google.com/docs/authentication/production#passing_the_path_to_the_service_account_key_in_code - To run this sample using Maven: - cd java-analytics-admin/samples/snippets - mvn exec:java -Dexec.mainClass="com.example.analytics.QuickstartSample" - */ +To run this sample using Maven: + cd java-analytics-admin/samples/snippets + mvn exec:java -Dexec.mainClass="com.example.analytics.QuickstartSample" +*/ // [START analytics_admin_quickstart] @@ -61,7 +61,6 @@ public static void main(String... args) throws Exception { listAccounts(); } - // This is an example snippet that calls the Google Analytics Admin API and lists all Google // Analytics accounts available to the authenticated user. static void listAccounts() throws Exception { @@ -71,8 +70,8 @@ static void listAccounts() throws Exception { try (AnalyticsAdminServiceClient analyticsAdmin = AnalyticsAdminServiceClient.create()) { // Calls listAccounts() method of the Google Analytics Admin API and prints // the response for each account. - ListAccountsPagedResponse response = analyticsAdmin - .listAccounts(ListAccountsRequest.newBuilder().build()); + ListAccountsPagedResponse response = + analyticsAdmin.listAccounts(ListAccountsRequest.newBuilder().build()); for (ListAccountsPage page : response.iteratePages()) { for (Account account : page.iterateAll()) { System.out.printf("Account name: %s%n", account.getName()); diff --git a/samples/snippets/src/test/java/com/example/analyticsadmin/QuickstartSampleTest.java b/samples/snippets/src/test/java/com/example/analyticsadmin/QuickstartSampleTest.java index 7bc63b03..2455f485 100644 --- a/samples/snippets/src/test/java/com/example/analyticsadmin/QuickstartSampleTest.java +++ b/samples/snippets/src/test/java/com/example/analyticsadmin/QuickstartSampleTest.java @@ -26,9 +26,7 @@ import org.junit.runner.RunWith; import org.junit.runners.JUnit4; -/** - * Tests for quickstart sample. - */ +/** Tests for quickstart sample. */ @RunWith(JUnit4.class) @SuppressWarnings("checkstyle:abbreviationaswordinname") public class QuickstartSampleTest { @@ -57,4 +55,4 @@ public void testQuickstart() throws Exception { String got = bout.toString(); assertThat(got).contains("Account name:"); } -} \ No newline at end of file +} diff --git a/versions.txt b/versions.txt index b3e3e1c5..3e3d3344 100644 --- a/versions.txt +++ b/versions.txt @@ -2,5 +2,5 @@ # module:released-version:current-version google-analytics-admin:0.3.2:0.3.3-SNAPSHOT +grpc-google-analytics-admin-v1alpha:0.3.2:0.3.3-SNAPSHOT proto-google-analytics-admin-v1alpha:0.3.2:0.3.3-SNAPSHOT -grpc-google-analytics-admin-v1alpha:0.3.2:0.3.3-SNAPSHOT \ No newline at end of file From bdb0e24705cbe0c70bcd311f6b9435f891fcf7bc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 25 May 2021 00:23:46 +0200 Subject: [PATCH 33/42] build(deps): update dependency org.apache.maven.plugins:maven-javadoc-plugin to v3.3.0 (#217) --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index de635094..220f865c 100644 --- a/pom.xml +++ b/pom.xml @@ -156,7 +156,7 @@ org.apache.maven.plugins maven-javadoc-plugin - 3.2.0 + 3.3.0 html From 73f5039fd56d4f5f632ede0e0e17126698ff0002 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Mon, 24 May 2021 15:26:12 -0700 Subject: [PATCH 34/42] chore: add changelog to cloud-rad (#212) Source-Author: Emily Ball Source-Date: Mon May 17 09:54:56 2021 -0700 Source-Repo: googleapis/synthtool Source-Sha: c86c7a60985644eab557949363a38301d40d78d2 Source-Link: https://github.com/googleapis/synthtool/commit/c86c7a60985644eab557949363a38301d40d78d2 --- synth.metadata | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/synth.metadata b/synth.metadata index 510218d4..6d514883 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-analytics-admin.git", - "sha": "4801dd7212132eb184f2d851549ab99e671150dd" + "sha": "5175561841917383aaf72efa000512f75843c951" } }, { @@ -19,7 +19,7 @@ "git": { "name": "synthtool", "remote": "https://github.com/googleapis/synthtool.git", - "sha": "4f4b1b9b8d8b52f1e9e4a76165896debce5ab7f1" + "sha": "c86c7a60985644eab557949363a38301d40d78d2" } } ], From 8ff95c3af27395768476f24b06386984bec9efab Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 26 May 2021 22:56:31 +0200 Subject: [PATCH 35/42] test(deps): update dependency com.google.truth:truth to v1.1.3 (#218) 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.truth:truth | `1.1.2` -> `1.1.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/compatibility-slim/1.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/confidence-slim/1.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-admin). --- samples/install-without-bom/pom.xml | 2 +- samples/snapshot/pom.xml | 2 +- samples/snippets/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml index be8384c8..553b8d9e 100644 --- a/samples/install-without-bom/pom.xml +++ b/samples/install-without-bom/pom.xml @@ -42,7 +42,7 @@ com.google.truth truth - 1.1.2 + 1.1.3 test diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index e1fc4b38..3f151963 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -41,7 +41,7 @@ com.google.truth truth - 1.1.2 + 1.1.3 test diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index 5d95e068..f7946974 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -39,7 +39,7 @@ com.google.truth truth - 1.1.2 + 1.1.3 test From 7eac98af3142e539d8061234a4096a9d77adf1cc Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Thu, 27 May 2021 12:48:02 -0400 Subject: [PATCH 36/42] build: switch all clients to use the google endpoint on sonatype (#219) --- pom.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 220f865c..8a17e6ac 100644 --- a/pom.xml +++ b/pom.xml @@ -44,11 +44,11 @@ sonatype-nexus-snapshots - https://oss.sonatype.org/content/repositories/snapshots + https://google.oss.sonatype.org/content/repositories/snapshots sonatype-nexus-staging - https://oss.sonatype.org/service/local/staging/deploy/maven2/ + https://google.oss.sonatype.org/service/local/staging/deploy/maven2/ From ca467ec5bbcaf3dccf4c791426ec612c903392e2 Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 1 Jun 2021 01:57:32 -0700 Subject: [PATCH 37/42] fix!: remove `CreateIosAppDataStream`, `CreateAndroidAppDataStream` methods from the API (#203) * fix!: remove `CreateIosAppDataStream`, `CreateAndroidAppDataStream` methods from the API feat: add `SearchChangeHistoryEvents` method to the API fix!: update `DeleteProperty` method to return the deleted property data as `Property` type instead of returning an empty response feat: add `ActorType`, `ActionType`, `ChangeHistoryResourceType`, `ChangeHistoryEvent`, `ChangeHistoryChange` types used by `SearchChangeHistoryEvents` method fix!: update `time_zone` field of `Property` type to be required feat: add `delete_time`, `expire_time` output only fields to `Property` type fix!: remove `deleted` field from `Property` type PiperOrigin-RevId: 370749341 Source-Link: https://github.com/googleapis/googleapis/commit/2375bb4a8f2c885883c4e13d93c359c40700259b Source-Author: Bazel Bot Source-Date: Tue Apr 27 21:38:05 2021 +0000 Source-Repo: googleapis/googleapis-gen Source-Sha: ee560452477d92572edb133386e7129532db8ba6 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ee560452477d92572edb133386e7129532db8ba6 * chore: add clirr-ignored-differences Co-authored-by: Neenu1995 Co-authored-by: Emily Ball --- .../clirr-ignored-differences.xml | 34 +- .../v1alpha/AnalyticsAdminServiceClient.java | 519 +- .../AnalyticsAdminServiceSettings.java | 49 +- .../admin/v1alpha/gapic_metadata.json | 9 +- .../stub/AnalyticsAdminServiceStub.java | 29 +- .../AnalyticsAdminServiceStubSettings.java | 185 +- .../stub/GrpcAnalyticsAdminServiceStub.java | 153 +- .../AnalyticsAdminServiceClientTest.java | 315 +- .../MockAnalyticsAdminServiceImpl.java | 73 +- .../clirr-ignored-differences.xml | 21 + .../v1alpha/AnalyticsAdminServiceGrpc.java | 503 +- .../clirr-ignored-differences.xml | 30 +- .../analytics/admin/v1alpha/ActionType.java | 198 + .../analytics/admin/v1alpha/ActorType.java | 199 + .../admin/v1alpha/AnalyticsAdminProto.java | 814 +-- .../admin/v1alpha/ChangeHistoryChange.java | 4445 +++++++++++++++++ .../v1alpha/ChangeHistoryChangeOrBuilder.java | 167 + .../admin/v1alpha/ChangeHistoryEvent.java | 1883 +++++++ .../v1alpha/ChangeHistoryEventOrBuilder.java | 210 + .../v1alpha/ChangeHistoryResourceType.java | 289 ++ .../CreateAndroidAppDataStreamRequest.java | 980 ---- ...eAndroidAppDataStreamRequestOrBuilder.java | 98 - .../CreateIosAppDataStreamRequest.java | 972 ---- ...reateIosAppDataStreamRequestOrBuilder.java | 97 - .../analytics/admin/v1alpha/Property.java | 644 ++- .../admin/v1alpha/PropertyOrBuilder.java | 89 +- .../admin/v1alpha/ResourcesProto.java | 310 +- .../SearchChangeHistoryEventsRequest.java | 2933 +++++++++++ ...chChangeHistoryEventsRequestOrBuilder.java | 422 ++ .../SearchChangeHistoryEventsResponse.java | 1194 +++++ ...hChangeHistoryEventsResponseOrBuilder.java | 111 + .../admin/v1alpha/analytics_admin.proto | 134 +- .../analytics/admin/v1alpha/resources.proto | 145 +- synth.metadata | 21 +- 34 files changed, 14356 insertions(+), 3919 deletions(-) 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/ActionType.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActorType.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChangeOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEventOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequestOrBuilder.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequest.java delete mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponse.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponseOrBuilder.java diff --git a/google-analytics-admin/clirr-ignored-differences.xml b/google-analytics-admin/clirr-ignored-differences.xml index d95251a5..7572b3e7 100644 --- a/google-analytics-admin/clirr-ignored-differences.xml +++ b/google-analytics-admin/clirr-ignored-differences.xml @@ -1,35 +1,21 @@ - + - 7006 - com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient - com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse listFirebaseLinks(*) - com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient$ListFirebaseLinksPagedResponse - - - 7006 - com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings - com.google.api.gax.rpc.UnaryCallSettings listFirebaseLinksSettings() - com.google.api.gax.rpc.PagedCallSettings + 7002 + com/google/analytics/admin/v1alpha/*AnalyticsAdminService* + * create*(*) - 7006 - com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings$Builder - com.google.api.gax.rpc.UnaryCallSettings$Builder listFirebaseLinksSettings() - com.google.api.gax.rpc.PagedCallSettings$Builder - - - 7006 - com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings - com.google.api.gax.rpc.UnaryCallSettings listFirebaseLinksSettings() - com.google.api.gax.rpc.PagedCallSettings + 7002 + com/google/analytics/admin/v1alpha/stub/*AnalyticsAdminService* + * create*(*) 7006 - com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings$Builder - com.google.api.gax.rpc.UnaryCallSettings$Builder listFirebaseLinksSettings() - com.google.api.gax.rpc.PagedCallSettings$Builder + com/google/analytics/admin/v1alpha/AnalyticsAdminService* + * deleteProperty(*) + com.google.analytics.admin.v1alpha.Property 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 d7208055..95c10d12 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 @@ -985,7 +985,7 @@ public final UnaryCallable createPropertyCallab * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { * PropertyName name = PropertyName.of("[PROPERTY]"); - * analyticsAdminServiceClient.deleteProperty(name); + * Property response = analyticsAdminServiceClient.deleteProperty(name); * } * }
* @@ -993,10 +993,10 @@ public final UnaryCallable createPropertyCallab * Example: "properties/1000" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteProperty(PropertyName name) { + public final Property deleteProperty(PropertyName name) { DeletePropertyRequest request = DeletePropertyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); - deleteProperty(request); + return deleteProperty(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. @@ -1018,7 +1018,7 @@ public final void deleteProperty(PropertyName name) { * try (AnalyticsAdminServiceClient analyticsAdminServiceClient = * AnalyticsAdminServiceClient.create()) { * String name = PropertyName.of("[PROPERTY]").toString(); - * analyticsAdminServiceClient.deleteProperty(name); + * Property response = analyticsAdminServiceClient.deleteProperty(name); * } * }
* @@ -1026,9 +1026,9 @@ public final void deleteProperty(PropertyName name) { * Example: "properties/1000" * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final void deleteProperty(String name) { + public final Property deleteProperty(String name) { DeletePropertyRequest request = DeletePropertyRequest.newBuilder().setName(name).build(); - deleteProperty(request); + return deleteProperty(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. @@ -1053,15 +1053,15 @@ public final void deleteProperty(String name) { * DeletePropertyRequest.newBuilder() * .setName(PropertyName.of("[PROPERTY]").toString()) * .build(); - * analyticsAdminServiceClient.deleteProperty(request); + * Property response = analyticsAdminServiceClient.deleteProperty(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 deleteProperty(DeletePropertyRequest request) { - deletePropertyCallable().call(request); + public final Property deleteProperty(DeletePropertyRequest request) { + return deletePropertyCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. @@ -1086,14 +1086,14 @@ public final void deleteProperty(DeletePropertyRequest request) { * DeletePropertyRequest.newBuilder() * .setName(PropertyName.of("[PROPERTY]").toString()) * .build(); - * ApiFuture future = + * ApiFuture future = * analyticsAdminServiceClient.deletePropertyCallable().futureCall(request); * // Do something. - * future.get(); + * Property response = future.get(); * } * }
*/ - public final UnaryCallable deletePropertyCallable() { + public final UnaryCallable deletePropertyCallable() { return stub.deletePropertyCallable(); } @@ -2922,143 +2922,6 @@ public final IosAppDataStream updateIosAppDataStream(UpdateIosAppDataStreamReque return stub.updateIosAppDataStreamCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an iOS app stream with the specified location and attributes. - * - *

Note that an iOS app stream must be linked to a Firebase app to receive traffic. - * - *

To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build();
-   *   IosAppDataStream response =
-   *       analyticsAdminServiceClient.createIosAppDataStream(parent, iosAppDataStream);
-   * }
-   * }
- * - * @param parent Required. The parent resource where this ios app data stream will be created. - * Format: properties/123 - * @param iosAppDataStream Required. The iOS app data stream to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final IosAppDataStream createIosAppDataStream( - PropertyName parent, IosAppDataStream iosAppDataStream) { - CreateIosAppDataStreamRequest request = - CreateIosAppDataStreamRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setIosAppDataStream(iosAppDataStream) - .build(); - return createIosAppDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an iOS app stream with the specified location and attributes. - * - *

Note that an iOS app stream must be linked to a Firebase app to receive traffic. - * - *

To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent = IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString();
-   *   IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build();
-   *   IosAppDataStream response =
-   *       analyticsAdminServiceClient.createIosAppDataStream(parent, iosAppDataStream);
-   * }
-   * }
- * - * @param parent Required. The parent resource where this ios app data stream will be created. - * Format: properties/123 - * @param iosAppDataStream Required. The iOS app data stream to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final IosAppDataStream createIosAppDataStream( - String parent, IosAppDataStream iosAppDataStream) { - CreateIosAppDataStreamRequest request = - CreateIosAppDataStreamRequest.newBuilder() - .setParent(parent) - .setIosAppDataStream(iosAppDataStream) - .build(); - return createIosAppDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an iOS app stream with the specified location and attributes. - * - *

Note that an iOS app stream must be linked to a Firebase app to receive traffic. - * - *

To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateIosAppDataStreamRequest request =
-   *       CreateIosAppDataStreamRequest.newBuilder()
-   *           .setIosAppDataStream(IosAppDataStream.newBuilder().build())
-   *           .setParent(IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString())
-   *           .build();
-   *   IosAppDataStream response = analyticsAdminServiceClient.createIosAppDataStream(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 IosAppDataStream createIosAppDataStream(CreateIosAppDataStreamRequest request) { - return createIosAppDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an iOS app stream with the specified location and attributes. - * - *

Note that an iOS app stream must be linked to a Firebase app to receive traffic. - * - *

To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateIosAppDataStreamRequest request =
-   *       CreateIosAppDataStreamRequest.newBuilder()
-   *           .setIosAppDataStream(IosAppDataStream.newBuilder().build())
-   *           .setParent(IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createIosAppDataStreamCallable().futureCall(request);
-   *   // Do something.
-   *   IosAppDataStream response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - createIosAppDataStreamCallable() { - return stub.createIosAppDataStreamCallable(); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns child iOS app data streams under the specified parent property. @@ -3522,148 +3385,6 @@ public final AndroidAppDataStream updateAndroidAppDataStream( return stub.updateAndroidAppDataStreamCallable(); } - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an Android app stream with the specified location and attributes. - * - *

Note that an Android app stream must be linked to a Firebase app to receive traffic. - * - *

To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   PropertyName parent = PropertyName.of("[PROPERTY]");
-   *   AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build();
-   *   AndroidAppDataStream response =
-   *       analyticsAdminServiceClient.createAndroidAppDataStream(parent, androidAppDataStream);
-   * }
-   * }
- * - * @param parent Required. The parent resource where this android app data stream will be created. - * Format: properties/123 - * @param androidAppDataStream Required. The android app stream to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AndroidAppDataStream createAndroidAppDataStream( - PropertyName parent, AndroidAppDataStream androidAppDataStream) { - CreateAndroidAppDataStreamRequest request = - CreateAndroidAppDataStreamRequest.newBuilder() - .setParent(parent == null ? null : parent.toString()) - .setAndroidAppDataStream(androidAppDataStream) - .build(); - return createAndroidAppDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an Android app stream with the specified location and attributes. - * - *

Note that an Android app stream must be linked to a Firebase app to receive traffic. - * - *

To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   String parent =
-   *       AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString();
-   *   AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build();
-   *   AndroidAppDataStream response =
-   *       analyticsAdminServiceClient.createAndroidAppDataStream(parent, androidAppDataStream);
-   * }
-   * }
- * - * @param parent Required. The parent resource where this android app data stream will be created. - * Format: properties/123 - * @param androidAppDataStream Required. The android app stream to create. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final AndroidAppDataStream createAndroidAppDataStream( - String parent, AndroidAppDataStream androidAppDataStream) { - CreateAndroidAppDataStreamRequest request = - CreateAndroidAppDataStreamRequest.newBuilder() - .setParent(parent) - .setAndroidAppDataStream(androidAppDataStream) - .build(); - return createAndroidAppDataStream(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an Android app stream with the specified location and attributes. - * - *

Note that an Android app stream must be linked to a Firebase app to receive traffic. - * - *

To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateAndroidAppDataStreamRequest request =
-   *       CreateAndroidAppDataStreamRequest.newBuilder()
-   *           .setAndroidAppDataStream(AndroidAppDataStream.newBuilder().build())
-   *           .setParent(
-   *               AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString())
-   *           .build();
-   *   AndroidAppDataStream response =
-   *       analyticsAdminServiceClient.createAndroidAppDataStream(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 AndroidAppDataStream createAndroidAppDataStream( - CreateAndroidAppDataStreamRequest request) { - return createAndroidAppDataStreamCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates an Android app stream with the specified location and attributes. - * - *

Note that an Android app stream must be linked to a Firebase app to receive traffic. - * - *

To create a working app stream, make sure your property is linked to a Firebase project. - * Then, use the Firebase API to create a Firebase app, which will also create an appropriate data - * stream in Analytics (may take up to 24 hours). - * - *

Sample code: - * - *

{@code
-   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
-   *     AnalyticsAdminServiceClient.create()) {
-   *   CreateAndroidAppDataStreamRequest request =
-   *       CreateAndroidAppDataStreamRequest.newBuilder()
-   *           .setAndroidAppDataStream(AndroidAppDataStream.newBuilder().build())
-   *           .setParent(
-   *               AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString())
-   *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.createAndroidAppDataStreamCallable().futureCall(request);
-   *   // Do something.
-   *   AndroidAppDataStream response = future.get();
-   * }
-   * }
- */ - public final UnaryCallable - createAndroidAppDataStreamCallable() { - return stub.createAndroidAppDataStreamCallable(); - } - // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Returns child android app streams under the specified parent property. @@ -5119,6 +4840,120 @@ public final DataSharingSettings getDataSharingSettings(GetDataSharingSettingsRe return stub.getDataSharingSettingsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches through all changes to an account or its children given the specified set of filters. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   SearchChangeHistoryEventsRequest request =
+   *       SearchChangeHistoryEventsRequest.newBuilder()
+   *           .setAccount(AccountName.of("[ACCOUNT]").toString())
+   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
+   *           .addAllResourceType(new ArrayList())
+   *           .addAllAction(new ArrayList())
+   *           .addAllActorEmail(new ArrayList())
+   *           .setEarliestChangeTime(Timestamp.newBuilder().build())
+   *           .setLatestChangeTime(Timestamp.newBuilder().build())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (ChangeHistoryEvent element :
+   *       analyticsAdminServiceClient.searchChangeHistoryEvents(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 SearchChangeHistoryEventsPagedResponse searchChangeHistoryEvents( + SearchChangeHistoryEventsRequest request) { + return searchChangeHistoryEventsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches through all changes to an account or its children given the specified set of filters. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   SearchChangeHistoryEventsRequest request =
+   *       SearchChangeHistoryEventsRequest.newBuilder()
+   *           .setAccount(AccountName.of("[ACCOUNT]").toString())
+   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
+   *           .addAllResourceType(new ArrayList())
+   *           .addAllAction(new ArrayList())
+   *           .addAllActorEmail(new ArrayList())
+   *           .setEarliestChangeTime(Timestamp.newBuilder().build())
+   *           .setLatestChangeTime(Timestamp.newBuilder().build())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.searchChangeHistoryEventsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ChangeHistoryEvent element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsPagedCallable() { + return stub.searchChangeHistoryEventsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches through all changes to an account or its children given the specified set of filters. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   SearchChangeHistoryEventsRequest request =
+   *       SearchChangeHistoryEventsRequest.newBuilder()
+   *           .setAccount(AccountName.of("[ACCOUNT]").toString())
+   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
+   *           .addAllResourceType(new ArrayList())
+   *           .addAllAction(new ArrayList())
+   *           .addAllActorEmail(new ArrayList())
+   *           .setEarliestChangeTime(Timestamp.newBuilder().build())
+   *           .setLatestChangeTime(Timestamp.newBuilder().build())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     SearchChangeHistoryEventsResponse response =
+   *         analyticsAdminServiceClient.searchChangeHistoryEventsCallable().call(request);
+   *     for (ChangeHistoryEvent element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + searchChangeHistoryEventsCallable() { + return stub.searchChangeHistoryEventsCallable(); + } + @Override public final void close() { stub.close(); @@ -6006,4 +5841,106 @@ protected ListGoogleAdsLinksFixedSizeCollection createCollection( return new ListGoogleAdsLinksFixedSizeCollection(pages, collectionSize); } } + + public static class SearchChangeHistoryEventsPagedResponse + extends AbstractPagedListResponse< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + ChangeHistoryEvent, + SearchChangeHistoryEventsPage, + SearchChangeHistoryEventsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + ChangeHistoryEvent> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchChangeHistoryEventsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public SearchChangeHistoryEventsPagedResponse apply( + SearchChangeHistoryEventsPage input) { + return new SearchChangeHistoryEventsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private SearchChangeHistoryEventsPagedResponse(SearchChangeHistoryEventsPage page) { + super(page, SearchChangeHistoryEventsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchChangeHistoryEventsPage + extends AbstractPage< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + ChangeHistoryEvent, + SearchChangeHistoryEventsPage> { + + private SearchChangeHistoryEventsPage( + PageContext< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + ChangeHistoryEvent> + context, + SearchChangeHistoryEventsResponse response) { + super(context, response); + } + + private static SearchChangeHistoryEventsPage createEmptyPage() { + return new SearchChangeHistoryEventsPage(null, null); + } + + @Override + protected SearchChangeHistoryEventsPage createPage( + PageContext< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + ChangeHistoryEvent> + context, + SearchChangeHistoryEventsResponse response) { + return new SearchChangeHistoryEventsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + ChangeHistoryEvent> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchChangeHistoryEventsFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + ChangeHistoryEvent, + SearchChangeHistoryEventsPage, + SearchChangeHistoryEventsFixedSizeCollection> { + + private SearchChangeHistoryEventsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchChangeHistoryEventsFixedSizeCollection createEmptyCollection() { + return new SearchChangeHistoryEventsFixedSizeCollection(null, 0); + } + + @Override + protected SearchChangeHistoryEventsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchChangeHistoryEventsFixedSizeCollection(pages, collectionSize); + } + } } 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 76363c43..338d76cb 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 @@ -26,6 +26,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.stub.AnalyticsAdminServiceStubSettings; import com.google.api.core.ApiFunction; @@ -136,7 +137,7 @@ public UnaryCallSettings createPropertySettings } /** Returns the object with the settings used for calls to deleteProperty. */ - public UnaryCallSettings deletePropertySettings() { + public UnaryCallSettings deletePropertySettings() { return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deletePropertySettings(); } @@ -247,12 +248,6 @@ public UnaryCallSettings deleteIosAppDataS return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateIosAppDataStreamSettings(); } - /** Returns the object with the settings used for calls to createIosAppDataStream. */ - public UnaryCallSettings - createIosAppDataStreamSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createIosAppDataStreamSettings(); - } - /** Returns the object with the settings used for calls to listIosAppDataStreams. */ public PagedCallSettings< ListIosAppDataStreamsRequest, @@ -283,13 +278,6 @@ public UnaryCallSettings deleteIosAppDataS .updateAndroidAppDataStreamSettings(); } - /** Returns the object with the settings used for calls to createAndroidAppDataStream. */ - public UnaryCallSettings - createAndroidAppDataStreamSettings() { - return ((AnalyticsAdminServiceStubSettings) getStubSettings()) - .createAndroidAppDataStreamSettings(); - } - /** Returns the object with the settings used for calls to listAndroidAppDataStreams. */ public PagedCallSettings< ListAndroidAppDataStreamsRequest, @@ -371,6 +359,16 @@ public UnaryCallSettings deleteGoogleAdsLinkS return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getDataSharingSettingsSettings(); } + /** Returns the object with the settings used for calls to searchChangeHistoryEvents. */ + public PagedCallSettings< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .searchChangeHistoryEventsSettings(); + } + public static final AnalyticsAdminServiceSettings create(AnalyticsAdminServiceStubSettings stub) throws IOException { return new AnalyticsAdminServiceSettings.Builder(stub.toBuilder()).build(); @@ -525,7 +523,7 @@ public UnaryCallSettings.Builder createProperty } /** Returns the builder for the settings used for calls to deleteProperty. */ - public UnaryCallSettings.Builder deletePropertySettings() { + public UnaryCallSettings.Builder deletePropertySettings() { return getStubSettingsBuilder().deletePropertySettings(); } @@ -641,12 +639,6 @@ public UnaryCallSettings.Builder deleteUserLinkSet return getStubSettingsBuilder().updateIosAppDataStreamSettings(); } - /** Returns the builder for the settings used for calls to createIosAppDataStream. */ - public UnaryCallSettings.Builder - createIosAppDataStreamSettings() { - return getStubSettingsBuilder().createIosAppDataStreamSettings(); - } - /** Returns the builder for the settings used for calls to listIosAppDataStreams. */ public PagedCallSettings.Builder< ListIosAppDataStreamsRequest, @@ -674,12 +666,6 @@ public UnaryCallSettings.Builder deleteUserLinkSet return getStubSettingsBuilder().updateAndroidAppDataStreamSettings(); } - /** Returns the builder for the settings used for calls to createAndroidAppDataStream. */ - public UnaryCallSettings.Builder - createAndroidAppDataStreamSettings() { - return getStubSettingsBuilder().createAndroidAppDataStreamSettings(); - } - /** Returns the builder for the settings used for calls to listAndroidAppDataStreams. */ public PagedCallSettings.Builder< ListAndroidAppDataStreamsRequest, @@ -765,6 +751,15 @@ public UnaryCallSettings.Builder deleteUserLinkSet return getStubSettingsBuilder().getDataSharingSettingsSettings(); } + /** Returns the builder for the settings used for calls to searchChangeHistoryEvents. */ + public PagedCallSettings.Builder< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsSettings() { + return getStubSettingsBuilder().searchChangeHistoryEventsSettings(); + } + @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 3f067ac4..88ed5eb4 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 @@ -25,18 +25,12 @@ "BatchUpdateUserLinks": { "methods": ["batchUpdateUserLinks", "batchUpdateUserLinksCallable"] }, - "CreateAndroidAppDataStream": { - "methods": ["createAndroidAppDataStream", "createAndroidAppDataStream", "createAndroidAppDataStream", "createAndroidAppDataStreamCallable"] - }, "CreateFirebaseLink": { "methods": ["createFirebaseLink", "createFirebaseLink", "createFirebaseLink", "createFirebaseLinkCallable"] }, "CreateGoogleAdsLink": { "methods": ["createGoogleAdsLink", "createGoogleAdsLink", "createGoogleAdsLink", "createGoogleAdsLinkCallable"] }, - "CreateIosAppDataStream": { - "methods": ["createIosAppDataStream", "createIosAppDataStream", "createIosAppDataStream", "createIosAppDataStreamCallable"] - }, "CreateProperty": { "methods": ["createProperty", "createProperty", "createPropertyCallable"] }, @@ -127,6 +121,9 @@ "ProvisionAccountTicket": { "methods": ["provisionAccountTicket", "provisionAccountTicketCallable"] }, + "SearchChangeHistoryEvents": { + "methods": ["searchChangeHistoryEvents", "searchChangeHistoryEventsPagedCallable", "searchChangeHistoryEventsCallable"] + }, "UpdateAccount": { "methods": ["updateAccount", "updateAccount", "updateAccountCallable"] }, 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 56884cc3..6cbc9925 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 @@ -26,6 +26,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.Account; import com.google.analytics.admin.v1alpha.AndroidAppDataStream; @@ -38,10 +39,8 @@ 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.CreateAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; -import com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest; import com.google.analytics.admin.v1alpha.CreatePropertyRequest; import com.google.analytics.admin.v1alpha.CreateUserLinkRequest; import com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest; @@ -89,6 +88,8 @@ import com.google.analytics.admin.v1alpha.Property; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; +import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; +import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; import com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; @@ -168,7 +169,7 @@ public UnaryCallable createPropertyCallable() { throw new UnsupportedOperationException("Not implemented: createPropertyCallable()"); } - public UnaryCallable deletePropertyCallable() { + public UnaryCallable deletePropertyCallable() { throw new UnsupportedOperationException("Not implemented: deletePropertyCallable()"); } @@ -268,11 +269,6 @@ public UnaryCallable deleteIosAppDataStrea throw new UnsupportedOperationException("Not implemented: updateIosAppDataStreamCallable()"); } - public UnaryCallable - createIosAppDataStreamCallable() { - throw new UnsupportedOperationException("Not implemented: createIosAppDataStreamCallable()"); - } - public UnaryCallable listIosAppDataStreamsPagedCallable() { throw new UnsupportedOperationException( @@ -301,12 +297,6 @@ public UnaryCallable deleteIosAppDataStrea "Not implemented: updateAndroidAppDataStreamCallable()"); } - public UnaryCallable - createAndroidAppDataStreamCallable() { - throw new UnsupportedOperationException( - "Not implemented: createAndroidAppDataStreamCallable()"); - } - public UnaryCallable listAndroidAppDataStreamsPagedCallable() { throw new UnsupportedOperationException( @@ -383,6 +373,17 @@ public UnaryCallable deleteGoogleAdsLinkCalla throw new UnsupportedOperationException("Not implemented: getDataSharingSettingsCallable()"); } + public UnaryCallable + searchChangeHistoryEventsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: searchChangeHistoryEventsPagedCallable()"); + } + + public UnaryCallable + searchChangeHistoryEventsCallable() { + throw new UnsupportedOperationException("Not implemented: searchChangeHistoryEventsCallable()"); + } + @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 16fa8920..9b332f58 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 @@ -26,6 +26,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.Account; import com.google.analytics.admin.v1alpha.AccountSummary; @@ -40,10 +41,9 @@ 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.CreateAndroidAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.ChangeHistoryEvent; import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; -import com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest; import com.google.analytics.admin.v1alpha.CreatePropertyRequest; import com.google.analytics.admin.v1alpha.CreateUserLinkRequest; import com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest; @@ -91,6 +91,8 @@ import com.google.analytics.admin.v1alpha.Property; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; +import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; +import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; import com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; @@ -199,7 +201,7 @@ public class AnalyticsAdminServiceStubSettings ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse> listPropertiesSettings; private final UnaryCallSettings createPropertySettings; - private final UnaryCallSettings deletePropertySettings; + private final UnaryCallSettings deletePropertySettings; private final UnaryCallSettings updatePropertySettings; private final UnaryCallSettings getUserLinkSettings; private final UnaryCallSettings @@ -233,8 +235,6 @@ public class AnalyticsAdminServiceStubSettings deleteIosAppDataStreamSettings; private final UnaryCallSettings updateIosAppDataStreamSettings; - private final UnaryCallSettings - createIosAppDataStreamSettings; private final PagedCallSettings< ListIosAppDataStreamsRequest, ListIosAppDataStreamsResponse, @@ -246,8 +246,6 @@ public class AnalyticsAdminServiceStubSettings deleteAndroidAppDataStreamSettings; private final UnaryCallSettings updateAndroidAppDataStreamSettings; - private final UnaryCallSettings - createAndroidAppDataStreamSettings; private final PagedCallSettings< ListAndroidAppDataStreamsRequest, ListAndroidAppDataStreamsResponse, @@ -278,6 +276,11 @@ public class AnalyticsAdminServiceStubSettings listGoogleAdsLinksSettings; private final UnaryCallSettings getDataSharingSettingsSettings; + private final PagedCallSettings< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsSettings; private static final PagedListDescriptor LIST_ACCOUNTS_PAGE_STR_DESC = @@ -674,6 +677,53 @@ public Iterable extractResources(ListGoogleAdsLinksResponse paylo } }; + private static final PagedListDescriptor< + SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse, ChangeHistoryEvent> + SEARCH_CHANGE_HISTORY_EVENTS_PAGE_STR_DESC = + new PagedListDescriptor< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + ChangeHistoryEvent>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchChangeHistoryEventsRequest injectToken( + SearchChangeHistoryEventsRequest payload, String token) { + return SearchChangeHistoryEventsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public SearchChangeHistoryEventsRequest injectPageSize( + SearchChangeHistoryEventsRequest payload, int pageSize) { + return SearchChangeHistoryEventsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(SearchChangeHistoryEventsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchChangeHistoryEventsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + SearchChangeHistoryEventsResponse payload) { + return payload.getChangeHistoryEventsList() == null + ? ImmutableList.of() + : payload.getChangeHistoryEventsList(); + } + }; + private static final PagedListResponseFactory< ListAccountsRequest, ListAccountsResponse, ListAccountsPagedResponse> LIST_ACCOUNTS_PAGE_STR_FACT = @@ -882,6 +932,34 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + SearchChangeHistoryEventsPagedResponse> + SEARCH_CHANGE_HISTORY_EVENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + SearchChangeHistoryEventsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + SearchChangeHistoryEventsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + ChangeHistoryEvent> + pageContext = + PageContext.create( + callable, SEARCH_CHANGE_HISTORY_EVENTS_PAGE_STR_DESC, request, context); + return SearchChangeHistoryEventsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to getAccount. */ public UnaryCallSettings getAccountSettings() { return getAccountSettings; @@ -936,7 +1014,7 @@ public UnaryCallSettings createPropertySettings } /** Returns the object with the settings used for calls to deleteProperty. */ - public UnaryCallSettings deletePropertySettings() { + public UnaryCallSettings deletePropertySettings() { return deletePropertySettings; } @@ -1047,12 +1125,6 @@ public UnaryCallSettings deleteIosAppDataS return updateIosAppDataStreamSettings; } - /** Returns the object with the settings used for calls to createIosAppDataStream. */ - public UnaryCallSettings - createIosAppDataStreamSettings() { - return createIosAppDataStreamSettings; - } - /** Returns the object with the settings used for calls to listIosAppDataStreams. */ public PagedCallSettings< ListIosAppDataStreamsRequest, @@ -1080,12 +1152,6 @@ public UnaryCallSettings deleteIosAppDataS return updateAndroidAppDataStreamSettings; } - /** Returns the object with the settings used for calls to createAndroidAppDataStream. */ - public UnaryCallSettings - createAndroidAppDataStreamSettings() { - return createAndroidAppDataStreamSettings; - } - /** Returns the object with the settings used for calls to listAndroidAppDataStreams. */ public PagedCallSettings< ListAndroidAppDataStreamsRequest, @@ -1164,6 +1230,15 @@ public UnaryCallSettings deleteGoogleAdsLinkS return getDataSharingSettingsSettings; } + /** Returns the object with the settings used for calls to searchChangeHistoryEvents. */ + public PagedCallSettings< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsSettings() { + return searchChangeHistoryEventsSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public AnalyticsAdminServiceStub createStub() throws IOException { if (getTransportChannelProvider() @@ -1262,15 +1337,12 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx getIosAppDataStreamSettings = settingsBuilder.getIosAppDataStreamSettings().build(); deleteIosAppDataStreamSettings = settingsBuilder.deleteIosAppDataStreamSettings().build(); updateIosAppDataStreamSettings = settingsBuilder.updateIosAppDataStreamSettings().build(); - createIosAppDataStreamSettings = settingsBuilder.createIosAppDataStreamSettings().build(); listIosAppDataStreamsSettings = settingsBuilder.listIosAppDataStreamsSettings().build(); getAndroidAppDataStreamSettings = settingsBuilder.getAndroidAppDataStreamSettings().build(); deleteAndroidAppDataStreamSettings = settingsBuilder.deleteAndroidAppDataStreamSettings().build(); updateAndroidAppDataStreamSettings = settingsBuilder.updateAndroidAppDataStreamSettings().build(); - createAndroidAppDataStreamSettings = - settingsBuilder.createAndroidAppDataStreamSettings().build(); listAndroidAppDataStreamsSettings = settingsBuilder.listAndroidAppDataStreamsSettings().build(); getEnhancedMeasurementSettingsSettings = settingsBuilder.getEnhancedMeasurementSettingsSettings().build(); @@ -1286,6 +1358,7 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx deleteGoogleAdsLinkSettings = settingsBuilder.deleteGoogleAdsLinkSettings().build(); listGoogleAdsLinksSettings = settingsBuilder.listGoogleAdsLinksSettings().build(); getDataSharingSettingsSettings = settingsBuilder.getDataSharingSettingsSettings().build(); + searchChangeHistoryEventsSettings = settingsBuilder.searchChangeHistoryEventsSettings().build(); } /** Builder for AnalyticsAdminServiceStubSettings. */ @@ -1311,7 +1384,7 @@ public static class Builder ListPropertiesRequest, ListPropertiesResponse, ListPropertiesPagedResponse> listPropertiesSettings; private final UnaryCallSettings.Builder createPropertySettings; - private final UnaryCallSettings.Builder deletePropertySettings; + private final UnaryCallSettings.Builder deletePropertySettings; private final UnaryCallSettings.Builder updatePropertySettings; private final UnaryCallSettings.Builder getUserLinkSettings; private final UnaryCallSettings.Builder @@ -1350,8 +1423,6 @@ public static class Builder deleteIosAppDataStreamSettings; private final UnaryCallSettings.Builder updateIosAppDataStreamSettings; - private final UnaryCallSettings.Builder - createIosAppDataStreamSettings; private final PagedCallSettings.Builder< ListIosAppDataStreamsRequest, ListIosAppDataStreamsResponse, @@ -1363,8 +1434,6 @@ public static class Builder deleteAndroidAppDataStreamSettings; private final UnaryCallSettings.Builder updateAndroidAppDataStreamSettings; - private final UnaryCallSettings.Builder - createAndroidAppDataStreamSettings; private final PagedCallSettings.Builder< ListAndroidAppDataStreamsRequest, ListAndroidAppDataStreamsResponse, @@ -1398,6 +1467,11 @@ public static class Builder listGoogleAdsLinksSettings; private final UnaryCallSettings.Builder getDataSharingSettingsSettings; + private final PagedCallSettings.Builder< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -1479,13 +1553,11 @@ protected Builder(ClientContext clientContext) { getIosAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteIosAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateIosAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createIosAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listIosAppDataStreamsSettings = PagedCallSettings.newBuilder(LIST_IOS_APP_DATA_STREAMS_PAGE_STR_FACT); getAndroidAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteAndroidAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateAndroidAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createAndroidAppDataStreamSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listAndroidAppDataStreamsSettings = PagedCallSettings.newBuilder(LIST_ANDROID_APP_DATA_STREAMS_PAGE_STR_FACT); getEnhancedMeasurementSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1501,6 +1573,8 @@ protected Builder(ClientContext clientContext) { listGoogleAdsLinksSettings = PagedCallSettings.newBuilder(LIST_GOOGLE_ADS_LINKS_PAGE_STR_FACT); getDataSharingSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + searchChangeHistoryEventsSettings = + PagedCallSettings.newBuilder(SEARCH_CHANGE_HISTORY_EVENTS_PAGE_STR_FACT); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -1533,12 +1607,10 @@ protected Builder(ClientContext clientContext) { getIosAppDataStreamSettings, deleteIosAppDataStreamSettings, updateIosAppDataStreamSettings, - createIosAppDataStreamSettings, listIosAppDataStreamsSettings, getAndroidAppDataStreamSettings, deleteAndroidAppDataStreamSettings, updateAndroidAppDataStreamSettings, - createAndroidAppDataStreamSettings, listAndroidAppDataStreamsSettings, getEnhancedMeasurementSettingsSettings, updateEnhancedMeasurementSettingsSettings, @@ -1551,7 +1623,8 @@ protected Builder(ClientContext clientContext) { updateGoogleAdsLinkSettings, deleteGoogleAdsLinkSettings, listGoogleAdsLinksSettings, - getDataSharingSettingsSettings); + getDataSharingSettingsSettings, + searchChangeHistoryEventsSettings); initDefaults(this); } @@ -1587,12 +1660,10 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { getIosAppDataStreamSettings = settings.getIosAppDataStreamSettings.toBuilder(); deleteIosAppDataStreamSettings = settings.deleteIosAppDataStreamSettings.toBuilder(); updateIosAppDataStreamSettings = settings.updateIosAppDataStreamSettings.toBuilder(); - createIosAppDataStreamSettings = settings.createIosAppDataStreamSettings.toBuilder(); listIosAppDataStreamsSettings = settings.listIosAppDataStreamsSettings.toBuilder(); getAndroidAppDataStreamSettings = settings.getAndroidAppDataStreamSettings.toBuilder(); deleteAndroidAppDataStreamSettings = settings.deleteAndroidAppDataStreamSettings.toBuilder(); updateAndroidAppDataStreamSettings = settings.updateAndroidAppDataStreamSettings.toBuilder(); - createAndroidAppDataStreamSettings = settings.createAndroidAppDataStreamSettings.toBuilder(); listAndroidAppDataStreamsSettings = settings.listAndroidAppDataStreamsSettings.toBuilder(); getEnhancedMeasurementSettingsSettings = settings.getEnhancedMeasurementSettingsSettings.toBuilder(); @@ -1608,6 +1679,7 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { deleteGoogleAdsLinkSettings = settings.deleteGoogleAdsLinkSettings.toBuilder(); listGoogleAdsLinksSettings = settings.listGoogleAdsLinksSettings.toBuilder(); getDataSharingSettingsSettings = settings.getDataSharingSettingsSettings.toBuilder(); + searchChangeHistoryEventsSettings = settings.searchChangeHistoryEventsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -1640,12 +1712,10 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { getIosAppDataStreamSettings, deleteIosAppDataStreamSettings, updateIosAppDataStreamSettings, - createIosAppDataStreamSettings, listIosAppDataStreamsSettings, getAndroidAppDataStreamSettings, deleteAndroidAppDataStreamSettings, updateAndroidAppDataStreamSettings, - createAndroidAppDataStreamSettings, listAndroidAppDataStreamsSettings, getEnhancedMeasurementSettingsSettings, updateEnhancedMeasurementSettingsSettings, @@ -1658,7 +1728,8 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { updateGoogleAdsLinkSettings, deleteGoogleAdsLinkSettings, listGoogleAdsLinksSettings, - getDataSharingSettingsSettings); + getDataSharingSettingsSettings, + searchChangeHistoryEventsSettings); } private static Builder createDefault() { @@ -1818,11 +1889,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 - .createIosAppDataStreamSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - builder .listIosAppDataStreamsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -1843,11 +1909,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 - .createAndroidAppDataStreamSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - builder .listAndroidAppDataStreamsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) @@ -1913,6 +1974,11 @@ 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 + .searchChangeHistoryEventsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + return builder; } @@ -1987,7 +2053,7 @@ public UnaryCallSettings.Builder createProperty } /** Returns the builder for the settings used for calls to deleteProperty. */ - public UnaryCallSettings.Builder deletePropertySettings() { + public UnaryCallSettings.Builder deletePropertySettings() { return deletePropertySettings; } @@ -2103,12 +2169,6 @@ public UnaryCallSettings.Builder deleteUserLinkSet return updateIosAppDataStreamSettings; } - /** Returns the builder for the settings used for calls to createIosAppDataStream. */ - public UnaryCallSettings.Builder - createIosAppDataStreamSettings() { - return createIosAppDataStreamSettings; - } - /** Returns the builder for the settings used for calls to listIosAppDataStreams. */ public PagedCallSettings.Builder< ListIosAppDataStreamsRequest, @@ -2136,12 +2196,6 @@ public UnaryCallSettings.Builder deleteUserLinkSet return updateAndroidAppDataStreamSettings; } - /** Returns the builder for the settings used for calls to createAndroidAppDataStream. */ - public UnaryCallSettings.Builder - createAndroidAppDataStreamSettings() { - return createAndroidAppDataStreamSettings; - } - /** Returns the builder for the settings used for calls to listAndroidAppDataStreams. */ public PagedCallSettings.Builder< ListAndroidAppDataStreamsRequest, @@ -2227,6 +2281,15 @@ public UnaryCallSettings.Builder deleteUserLinkSet return getDataSharingSettingsSettings; } + /** Returns the builder for the settings used for calls to searchChangeHistoryEvents. */ + public PagedCallSettings.Builder< + SearchChangeHistoryEventsRequest, + SearchChangeHistoryEventsResponse, + SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsSettings() { + return searchChangeHistoryEventsSettings; + } + @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 a70347a9..e45350d0 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 @@ -26,6 +26,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.analytics.admin.v1alpha.Account; import com.google.analytics.admin.v1alpha.AndroidAppDataStream; @@ -38,10 +39,8 @@ 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.CreateAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; -import com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest; import com.google.analytics.admin.v1alpha.CreatePropertyRequest; import com.google.analytics.admin.v1alpha.CreateUserLinkRequest; import com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest; @@ -89,6 +88,8 @@ import com.google.analytics.admin.v1alpha.Property; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; +import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest; +import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; import com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest; import com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest; @@ -222,15 +223,15 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(Property.getDefaultInstance())) .build(); - private static final MethodDescriptor + private static final MethodDescriptor deletePropertyMethodDescriptor = - MethodDescriptor.newBuilder() + MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) .setFullMethodName( "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteProperty") .setRequestMarshaller( ProtoUtils.marshaller(DeletePropertyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Property.getDefaultInstance())) .build(); private static final MethodDescriptor @@ -445,17 +446,6 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { .setResponseMarshaller(ProtoUtils.marshaller(IosAppDataStream.getDefaultInstance())) .build(); - private static final MethodDescriptor - createIosAppDataStreamMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateIosAppDataStream") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateIosAppDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(IosAppDataStream.getDefaultInstance())) - .build(); - private static final MethodDescriptor listIosAppDataStreamsMethodDescriptor = MethodDescriptor.newBuilder() @@ -503,18 +493,6 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { ProtoUtils.marshaller(AndroidAppDataStream.getDefaultInstance())) .build(); - private static final MethodDescriptor - createAndroidAppDataStreamMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateAndroidAppDataStream") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateAndroidAppDataStreamRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(AndroidAppDataStream.getDefaultInstance())) - .build(); - private static final MethodDescriptor< ListAndroidAppDataStreamsRequest, ListAndroidAppDataStreamsResponse> listAndroidAppDataStreamsMethodDescriptor = @@ -671,6 +649,20 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { ProtoUtils.marshaller(DataSharingSettings.getDefaultInstance())) .build(); + private static final MethodDescriptor< + SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse> + searchChangeHistoryEventsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/SearchChangeHistoryEvents") + .setRequestMarshaller( + ProtoUtils.marshaller(SearchChangeHistoryEventsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchChangeHistoryEventsResponse.getDefaultInstance())) + .build(); + private final UnaryCallable getAccountCallable; private final UnaryCallable listAccountsCallable; private final UnaryCallable @@ -688,7 +680,7 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { private final UnaryCallable listPropertiesPagedCallable; private final UnaryCallable createPropertyCallable; - private final UnaryCallable deletePropertyCallable; + private final UnaryCallable deletePropertyCallable; private final UnaryCallable updatePropertyCallable; private final UnaryCallable getUserLinkCallable; private final UnaryCallable @@ -722,8 +714,6 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { private final UnaryCallable deleteIosAppDataStreamCallable; private final UnaryCallable updateIosAppDataStreamCallable; - private final UnaryCallable - createIosAppDataStreamCallable; private final UnaryCallable listIosAppDataStreamsCallable; private final UnaryCallable @@ -734,8 +724,6 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { deleteAndroidAppDataStreamCallable; private final UnaryCallable updateAndroidAppDataStreamCallable; - private final UnaryCallable - createAndroidAppDataStreamCallable; private final UnaryCallable listAndroidAppDataStreamsCallable; private final UnaryCallable< @@ -764,6 +752,11 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { listGoogleAdsLinksPagedCallable; private final UnaryCallable getDataSharingSettingsCallable; + private final UnaryCallable + searchChangeHistoryEventsCallable; + private final UnaryCallable< + SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsPagedCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -885,8 +878,8 @@ public Map extract(GetPropertyRequest request) { GrpcCallSettings.newBuilder() .setMethodDescriptor(createPropertyMethodDescriptor) .build(); - GrpcCallSettings deletePropertyTransportSettings = - GrpcCallSettings.newBuilder() + GrpcCallSettings deletePropertyTransportSettings = + GrpcCallSettings.newBuilder() .setMethodDescriptor(deletePropertyMethodDescriptor) .setParamsExtractor( new RequestParamsExtractor() { @@ -1158,20 +1151,6 @@ public Map extract(UpdateIosAppDataStreamRequest request) { } }) .build(); - GrpcCallSettings - createIosAppDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createIosAppDataStreamMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract(CreateIosAppDataStreamRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); GrpcCallSettings listIosAppDataStreamsTransportSettings = GrpcCallSettings @@ -1233,21 +1212,6 @@ public Map extract( } }) .build(); - GrpcCallSettings - createAndroidAppDataStreamTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createAndroidAppDataStreamMethodDescriptor) - .setParamsExtractor( - new RequestParamsExtractor() { - @Override - public Map extract( - CreateAndroidAppDataStreamRequest request) { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - } - }) - .build(); GrpcCallSettings listAndroidAppDataStreamsTransportSettings = GrpcCallSettings @@ -1435,6 +1399,21 @@ public Map extract(GetDataSharingSettingsRequest request) { } }) .build(); + GrpcCallSettings + searchChangeHistoryEventsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(searchChangeHistoryEventsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(SearchChangeHistoryEventsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("account", String.valueOf(request.getAccount())); + return params.build(); + } + }) + .build(); this.getAccountCallable = callableFactory.createUnaryCallable( @@ -1571,11 +1550,6 @@ public Map extract(GetDataSharingSettingsRequest request) { updateIosAppDataStreamTransportSettings, settings.updateIosAppDataStreamSettings(), clientContext); - this.createIosAppDataStreamCallable = - callableFactory.createUnaryCallable( - createIosAppDataStreamTransportSettings, - settings.createIosAppDataStreamSettings(), - clientContext); this.listIosAppDataStreamsCallable = callableFactory.createUnaryCallable( listIosAppDataStreamsTransportSettings, @@ -1601,11 +1575,6 @@ public Map extract(GetDataSharingSettingsRequest request) { updateAndroidAppDataStreamTransportSettings, settings.updateAndroidAppDataStreamSettings(), clientContext); - this.createAndroidAppDataStreamCallable = - callableFactory.createUnaryCallable( - createAndroidAppDataStreamTransportSettings, - settings.createAndroidAppDataStreamSettings(), - clientContext); this.listAndroidAppDataStreamsCallable = callableFactory.createUnaryCallable( listAndroidAppDataStreamsTransportSettings, @@ -1684,6 +1653,16 @@ public Map extract(GetDataSharingSettingsRequest request) { getDataSharingSettingsTransportSettings, settings.getDataSharingSettingsSettings(), clientContext); + this.searchChangeHistoryEventsCallable = + callableFactory.createUnaryCallable( + searchChangeHistoryEventsTransportSettings, + settings.searchChangeHistoryEventsSettings(), + clientContext); + this.searchChangeHistoryEventsPagedCallable = + callableFactory.createPagedCallable( + searchChangeHistoryEventsTransportSettings, + settings.searchChangeHistoryEventsSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -1758,7 +1737,7 @@ public UnaryCallable createPropertyCallable() { } @Override - public UnaryCallable deletePropertyCallable() { + public UnaryCallable deletePropertyCallable() { return deletePropertyCallable; } @@ -1880,12 +1859,6 @@ public UnaryCallable deleteIosAppDataStrea return updateIosAppDataStreamCallable; } - @Override - public UnaryCallable - createIosAppDataStreamCallable() { - return createIosAppDataStreamCallable; - } - @Override public UnaryCallable listIosAppDataStreamsCallable() { @@ -1916,12 +1889,6 @@ public UnaryCallable deleteIosAppDataStrea return updateAndroidAppDataStreamCallable; } - @Override - public UnaryCallable - createAndroidAppDataStreamCallable() { - return createAndroidAppDataStreamCallable; - } - @Override public UnaryCallable listAndroidAppDataStreamsCallable() { @@ -2011,6 +1978,18 @@ public UnaryCallable deleteGoogleAdsLinkCalla return getDataSharingSettingsCallable; } + @Override + public UnaryCallable + searchChangeHistoryEventsCallable() { + return searchChangeHistoryEventsCallable; + } + + @Override + public UnaryCallable + searchChangeHistoryEventsPagedCallable() { + return searchChangeHistoryEventsPagedCallable; + } + @Override public final void close() { shutdown(); 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 16380982..0fb73c80 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 @@ -26,6 +26,7 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.SearchChangeHistoryEventsPagedResponse; import com.google.api.gax.core.NoCredentialsProvider; import com.google.api.gax.grpc.GaxGrpcProperties; @@ -463,7 +464,8 @@ public void getPropertyTest() throws Exception { .setIndustryCategory(IndustryCategory.forNumber(0)) .setTimeZone("timeZone-2077180903") .setCurrencyCode("currencyCode1004773790") - .setDeleted(true) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -509,7 +511,8 @@ public void getPropertyTest2() throws Exception { .setIndustryCategory(IndustryCategory.forNumber(0)) .setTimeZone("timeZone-2077180903") .setCurrencyCode("currencyCode1004773790") - .setDeleted(true) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -614,7 +617,8 @@ public void createPropertyTest() throws Exception { .setIndustryCategory(IndustryCategory.forNumber(0)) .setTimeZone("timeZone-2077180903") .setCurrencyCode("currencyCode1004773790") - .setDeleted(true) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -650,12 +654,25 @@ public void createPropertyExceptionTest() throws Exception { @Test public void deletePropertyTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + Property expectedResponse = + Property.newBuilder() + .setName(PropertyName.of("[PROPERTY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setParent("parent-995424086") + .setDisplayName("displayName1714148973") + .setIndustryCategory(IndustryCategory.forNumber(0)) + .setTimeZone("timeZone-2077180903") + .setCurrencyCode("currencyCode1004773790") + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); PropertyName name = PropertyName.of("[PROPERTY]"); - client.deleteProperty(name); + Property actualResponse = client.deleteProperty(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); @@ -684,12 +701,25 @@ public void deletePropertyExceptionTest() throws Exception { @Test public void deletePropertyTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); + Property expectedResponse = + Property.newBuilder() + .setName(PropertyName.of("[PROPERTY]").toString()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setParent("parent-995424086") + .setDisplayName("displayName1714148973") + .setIndustryCategory(IndustryCategory.forNumber(0)) + .setTimeZone("timeZone-2077180903") + .setCurrencyCode("currencyCode1004773790") + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) + .build(); mockAnalyticsAdminService.addResponse(expectedResponse); String name = "name3373707"; - client.deleteProperty(name); + Property actualResponse = client.deleteProperty(name); + Assert.assertEquals(expectedResponse, actualResponse); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); @@ -728,7 +758,8 @@ public void updatePropertyTest() throws Exception { .setIndustryCategory(IndustryCategory.forNumber(0)) .setTimeZone("timeZone-2077180903") .setCurrencyCode("currencyCode1004773790") - .setDeleted(true) + .setDeleteTime(Timestamp.newBuilder().build()) + .setExpireTime(Timestamp.newBuilder().build()) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); @@ -2046,100 +2077,6 @@ public void updateIosAppDataStreamExceptionTest() throws Exception { } } - @Test - public void createIosAppDataStreamTest() throws Exception { - IosAppDataStream expectedResponse = - IosAppDataStream.newBuilder() - .setName(IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString()) - .setFirebaseAppId("firebaseAppId1895156053") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setBundleId("bundleId-1294655171") - .setDisplayName("displayName1714148973") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build(); - - IosAppDataStream actualResponse = client.createIosAppDataStream(parent, iosAppDataStream); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateIosAppDataStreamRequest actualRequest = - ((CreateIosAppDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(iosAppDataStream, actualRequest.getIosAppDataStream()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createIosAppDataStreamExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build(); - client.createIosAppDataStream(parent, iosAppDataStream); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createIosAppDataStreamTest2() throws Exception { - IosAppDataStream expectedResponse = - IosAppDataStream.newBuilder() - .setName(IosAppDataStreamName.of("[PROPERTY]", "[IOS_APP_DATA_STREAM]").toString()) - .setFirebaseAppId("firebaseAppId1895156053") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setBundleId("bundleId-1294655171") - .setDisplayName("displayName1714148973") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build(); - - IosAppDataStream actualResponse = client.createIosAppDataStream(parent, iosAppDataStream); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateIosAppDataStreamRequest actualRequest = - ((CreateIosAppDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(iosAppDataStream, actualRequest.getIosAppDataStream()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createIosAppDataStreamExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - IosAppDataStream iosAppDataStream = IosAppDataStream.newBuilder().build(); - client.createIosAppDataStream(parent, iosAppDataStream); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - @Test public void listIosAppDataStreamsTest() throws Exception { IosAppDataStream responsesElement = IosAppDataStream.newBuilder().build(); @@ -2443,104 +2380,6 @@ public void updateAndroidAppDataStreamExceptionTest() throws Exception { } } - @Test - public void createAndroidAppDataStreamTest() throws Exception { - AndroidAppDataStream expectedResponse = - AndroidAppDataStream.newBuilder() - .setName( - AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString()) - .setFirebaseAppId("firebaseAppId1895156053") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setPackageName("packageName908759025") - .setDisplayName("displayName1714148973") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - PropertyName parent = PropertyName.of("[PROPERTY]"); - AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build(); - - AndroidAppDataStream actualResponse = - client.createAndroidAppDataStream(parent, androidAppDataStream); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateAndroidAppDataStreamRequest actualRequest = - ((CreateAndroidAppDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(parent.toString(), actualRequest.getParent()); - Assert.assertEquals(androidAppDataStream, actualRequest.getAndroidAppDataStream()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createAndroidAppDataStreamExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - PropertyName parent = PropertyName.of("[PROPERTY]"); - AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build(); - client.createAndroidAppDataStream(parent, androidAppDataStream); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createAndroidAppDataStreamTest2() throws Exception { - AndroidAppDataStream expectedResponse = - AndroidAppDataStream.newBuilder() - .setName( - AndroidAppDataStreamName.of("[PROPERTY]", "[ANDROID_APP_DATA_STREAM]").toString()) - .setFirebaseAppId("firebaseAppId1895156053") - .setCreateTime(Timestamp.newBuilder().build()) - .setUpdateTime(Timestamp.newBuilder().build()) - .setPackageName("packageName908759025") - .setDisplayName("displayName1714148973") - .build(); - mockAnalyticsAdminService.addResponse(expectedResponse); - - String parent = "parent-995424086"; - AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build(); - - AndroidAppDataStream actualResponse = - client.createAndroidAppDataStream(parent, androidAppDataStream); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockAnalyticsAdminService.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateAndroidAppDataStreamRequest actualRequest = - ((CreateAndroidAppDataStreamRequest) actualRequests.get(0)); - - Assert.assertEquals(parent, actualRequest.getParent()); - Assert.assertEquals(androidAppDataStream, actualRequest.getAndroidAppDataStream()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createAndroidAppDataStreamExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockAnalyticsAdminService.addException(exception); - - try { - String parent = "parent-995424086"; - AndroidAppDataStream androidAppDataStream = AndroidAppDataStream.newBuilder().build(); - client.createAndroidAppDataStream(parent, androidAppDataStream); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - @Test public void listAndroidAppDataStreamsTest() throws Exception { AndroidAppDataStream responsesElement = AndroidAppDataStream.newBuilder().build(); @@ -3545,4 +3384,80 @@ public void getDataSharingSettingsExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void searchChangeHistoryEventsTest() throws Exception { + ChangeHistoryEvent responsesElement = ChangeHistoryEvent.newBuilder().build(); + SearchChangeHistoryEventsResponse expectedResponse = + SearchChangeHistoryEventsResponse.newBuilder() + .setNextPageToken("") + .addAllChangeHistoryEvents(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + SearchChangeHistoryEventsRequest request = + SearchChangeHistoryEventsRequest.newBuilder() + .setAccount(AccountName.of("[ACCOUNT]").toString()) + .setProperty(PropertyName.of("[PROPERTY]").toString()) + .addAllResourceType(new ArrayList()) + .addAllAction(new ArrayList()) + .addAllActorEmail(new ArrayList()) + .setEarliestChangeTime(Timestamp.newBuilder().build()) + .setLatestChangeTime(Timestamp.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + SearchChangeHistoryEventsPagedResponse pagedListResponse = + client.searchChangeHistoryEvents(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getChangeHistoryEventsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchChangeHistoryEventsRequest actualRequest = + ((SearchChangeHistoryEventsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getAccount(), actualRequest.getAccount()); + Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); + Assert.assertEquals(request.getResourceTypeList(), actualRequest.getResourceTypeList()); + Assert.assertEquals(request.getActionList(), actualRequest.getActionList()); + Assert.assertEquals(request.getActorEmailList(), actualRequest.getActorEmailList()); + Assert.assertEquals(request.getEarliestChangeTime(), actualRequest.getEarliestChangeTime()); + Assert.assertEquals(request.getLatestChangeTime(), actualRequest.getLatestChangeTime()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchChangeHistoryEventsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + SearchChangeHistoryEventsRequest request = + SearchChangeHistoryEventsRequest.newBuilder() + .setAccount(AccountName.of("[ACCOUNT]").toString()) + .setProperty(PropertyName.of("[PROPERTY]").toString()) + .addAllResourceType(new ArrayList()) + .addAllAction(new ArrayList()) + .addAllActorEmail(new ArrayList()) + .setEarliestChangeTime(Timestamp.newBuilder().build()) + .setLatestChangeTime(Timestamp.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.searchChangeHistoryEvents(request); + 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 27a37982..8784c7e8 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 @@ -249,11 +249,11 @@ public void createProperty( @Override public void deleteProperty( - DeletePropertyRequest request, StreamObserver responseObserver) { + DeletePropertyRequest request, StreamObserver responseObserver) { Object response = responses.poll(); - if (response instanceof Empty) { + if (response instanceof Property) { requests.add(request); - responseObserver.onNext(((Empty) response)); + responseObserver.onNext(((Property) response)); responseObserver.onCompleted(); } else if (response instanceof Exception) { responseObserver.onError(((Exception) response)); @@ -263,7 +263,7 @@ public void deleteProperty( String.format( "Unrecognized response type %s for method DeleteProperty, expected %s or %s", response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), + Property.class.getName(), Exception.class.getName()))); } } @@ -670,27 +670,6 @@ public void updateIosAppDataStream( } } - @Override - public void createIosAppDataStream( - CreateIosAppDataStreamRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof IosAppDataStream) { - requests.add(request); - responseObserver.onNext(((IosAppDataStream) 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 CreateIosAppDataStream, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - IosAppDataStream.class.getName(), - Exception.class.getName()))); - } - } - @Override public void listIosAppDataStreams( ListIosAppDataStreamsRequest request, @@ -778,28 +757,6 @@ public void updateAndroidAppDataStream( } } - @Override - public void createAndroidAppDataStream( - CreateAndroidAppDataStreamRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof AndroidAppDataStream) { - requests.add(request); - responseObserver.onNext(((AndroidAppDataStream) 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 CreateAndroidAppDataStream, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - AndroidAppDataStream.class.getName(), - Exception.class.getName()))); - } - } - @Override public void listAndroidAppDataStreams( ListAndroidAppDataStreamsRequest request, @@ -1077,4 +1034,26 @@ public void getDataSharingSettings( Exception.class.getName()))); } } + + @Override + public void searchChangeHistoryEvents( + SearchChangeHistoryEventsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchChangeHistoryEventsResponse) { + requests.add(request); + responseObserver.onNext(((SearchChangeHistoryEventsResponse) 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 SearchChangeHistoryEvents, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + SearchChangeHistoryEventsResponse.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..05c657f6 --- /dev/null +++ b/grpc-google-analytics-admin-v1alpha/clirr-ignored-differences.xml @@ -0,0 +1,21 @@ + + + + + + 7002 + com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc* + * create*(*) + + + 7002 + com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc* + * get*(*) + + + 7006 + com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc* + * deleteProperty(*) + com.google.analytics.admin.v1alpha.Property + + \ 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 cccda831..e56b578d 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 @@ -460,19 +460,22 @@ private AnalyticsAdminServiceGrpc() {} } private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.DeletePropertyRequest, com.google.protobuf.Empty> + com.google.analytics.admin.v1alpha.DeletePropertyRequest, + com.google.analytics.admin.v1alpha.Property> getDeletePropertyMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeleteProperty", requestType = com.google.analytics.admin.v1alpha.DeletePropertyRequest.class, - responseType = com.google.protobuf.Empty.class, + responseType = com.google.analytics.admin.v1alpha.Property.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.DeletePropertyRequest, com.google.protobuf.Empty> + com.google.analytics.admin.v1alpha.DeletePropertyRequest, + com.google.analytics.admin.v1alpha.Property> getDeletePropertyMethod() { io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.DeletePropertyRequest, com.google.protobuf.Empty> + com.google.analytics.admin.v1alpha.DeletePropertyRequest, + com.google.analytics.admin.v1alpha.Property> getDeletePropertyMethod; if ((getDeletePropertyMethod = AnalyticsAdminServiceGrpc.getDeletePropertyMethod) == null) { synchronized (AnalyticsAdminServiceGrpc.class) { @@ -481,7 +484,7 @@ private AnalyticsAdminServiceGrpc() {} getDeletePropertyMethod = io.grpc.MethodDescriptor . + com.google.analytics.admin.v1alpha.Property> newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteProperty")) @@ -492,7 +495,7 @@ private AnalyticsAdminServiceGrpc() {} .getDefaultInstance())) .setResponseMarshaller( io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) + com.google.analytics.admin.v1alpha.Property.getDefaultInstance())) .setSchemaDescriptor( new AnalyticsAdminServiceMethodDescriptorSupplier("DeleteProperty")) .build(); @@ -1421,59 +1424,6 @@ private AnalyticsAdminServiceGrpc() {} return getUpdateIosAppDataStreamMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest, - com.google.analytics.admin.v1alpha.IosAppDataStream> - getCreateIosAppDataStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateIosAppDataStream", - requestType = com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.class, - responseType = com.google.analytics.admin.v1alpha.IosAppDataStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest, - com.google.analytics.admin.v1alpha.IosAppDataStream> - getCreateIosAppDataStreamMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest, - com.google.analytics.admin.v1alpha.IosAppDataStream> - getCreateIosAppDataStreamMethod; - if ((getCreateIosAppDataStreamMethod = - AnalyticsAdminServiceGrpc.getCreateIosAppDataStreamMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateIosAppDataStreamMethod = - AnalyticsAdminServiceGrpc.getCreateIosAppDataStreamMethod) - == null) { - AnalyticsAdminServiceGrpc.getCreateIosAppDataStreamMethod = - getCreateIosAppDataStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateIosAppDataStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.IosAppDataStream - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier( - "CreateIosAppDataStream")) - .build(); - } - } - } - return getCreateIosAppDataStreamMethod; - } - private static volatile io.grpc.MethodDescriptor< com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest, com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> @@ -1684,59 +1634,6 @@ private AnalyticsAdminServiceGrpc() {} return getUpdateAndroidAppDataStreamMethod; } - private static volatile io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest, - com.google.analytics.admin.v1alpha.AndroidAppDataStream> - getCreateAndroidAppDataStreamMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateAndroidAppDataStream", - requestType = com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.class, - responseType = com.google.analytics.admin.v1alpha.AndroidAppDataStream.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest, - com.google.analytics.admin.v1alpha.AndroidAppDataStream> - getCreateAndroidAppDataStreamMethod() { - io.grpc.MethodDescriptor< - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest, - com.google.analytics.admin.v1alpha.AndroidAppDataStream> - getCreateAndroidAppDataStreamMethod; - if ((getCreateAndroidAppDataStreamMethod = - AnalyticsAdminServiceGrpc.getCreateAndroidAppDataStreamMethod) - == null) { - synchronized (AnalyticsAdminServiceGrpc.class) { - if ((getCreateAndroidAppDataStreamMethod = - AnalyticsAdminServiceGrpc.getCreateAndroidAppDataStreamMethod) - == null) { - AnalyticsAdminServiceGrpc.getCreateAndroidAppDataStreamMethod = - getCreateAndroidAppDataStreamMethod = - io.grpc.MethodDescriptor - . - newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName( - generateFullMethodName(SERVICE_NAME, "CreateAndroidAppDataStream")) - .setSampledToLocalTracing(true) - .setRequestMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest - .getDefaultInstance())) - .setResponseMarshaller( - io.grpc.protobuf.ProtoUtils.marshaller( - com.google.analytics.admin.v1alpha.AndroidAppDataStream - .getDefaultInstance())) - .setSchemaDescriptor( - new AnalyticsAdminServiceMethodDescriptorSupplier( - "CreateAndroidAppDataStream")) - .build(); - } - } - } - return getCreateAndroidAppDataStreamMethod; - } - private static volatile io.grpc.MethodDescriptor< com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest, com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> @@ -2384,6 +2281,59 @@ private AnalyticsAdminServiceGrpc() {} return getGetDataSharingSettingsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + getSearchChangeHistoryEventsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchChangeHistoryEvents", + requestType = com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.class, + responseType = com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + getSearchChangeHistoryEventsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + getSearchChangeHistoryEventsMethod; + if ((getSearchChangeHistoryEventsMethod = + AnalyticsAdminServiceGrpc.getSearchChangeHistoryEventsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getSearchChangeHistoryEventsMethod = + AnalyticsAdminServiceGrpc.getSearchChangeHistoryEventsMethod) + == null) { + AnalyticsAdminServiceGrpc.getSearchChangeHistoryEventsMethod = + getSearchChangeHistoryEventsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SearchChangeHistoryEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "SearchChangeHistoryEvents")) + .build(); + } + } + } + return getSearchChangeHistoryEventsMethod; + } + /** 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 = @@ -2594,7 +2544,7 @@ public void createProperty( */ public void deleteProperty( com.google.analytics.admin.v1alpha.DeletePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getDeletePropertyMethod(), responseObserver); } @@ -2890,27 +2840,6 @@ public void updateIosAppDataStream( getUpdateIosAppDataStreamMethod(), responseObserver); } - /** - * - * - *
-     * Creates an iOS app stream with the specified location and attributes.
-     * Note that an iOS app stream must be linked to a Firebase app to receive
-     * traffic.
-     * To create a working app stream, make sure your property is linked to a
-     * Firebase project. Then, use the Firebase API to create a Firebase app,
-     * which will also create an appropriate data stream in Analytics (may take up
-     * to 24 hours).
-     * 
- */ - public void createIosAppDataStream( - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateIosAppDataStreamMethod(), responseObserver); - } - /** * * @@ -2973,27 +2902,6 @@ public void updateAndroidAppDataStream( getUpdateAndroidAppDataStreamMethod(), responseObserver); } - /** - * - * - *
-     * Creates an Android app stream with the specified location and attributes.
-     * Note that an Android app stream must be linked to a Firebase app to receive
-     * traffic.
-     * To create a working app stream, make sure your property is linked to a
-     * Firebase project. Then, use the Firebase API to create a Firebase app,
-     * which will also create an appropriate data stream in Analytics (may take up
-     * to 24 hours).
-     * 
- */ - public void createAndroidAppDataStream( - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateAndroidAppDataStreamMethod(), responseObserver); - } - /** * * @@ -3198,6 +3106,23 @@ public void getDataSharingSettings( getGetDataSharingSettingsMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getSearchChangeHistoryEventsMethod(), responseObserver); + } + @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) @@ -3264,7 +3189,7 @@ public final io.grpc.ServerServiceDefinition bindService() { io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.DeletePropertyRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_PROPERTY))) + com.google.analytics.admin.v1alpha.Property>(this, METHODID_DELETE_PROPERTY))) .addMethod( getUpdatePropertyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3392,13 +3317,6 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest, com.google.analytics.admin.v1alpha.IosAppDataStream>( this, METHODID_UPDATE_IOS_APP_DATA_STREAM))) - .addMethod( - getCreateIosAppDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest, - com.google.analytics.admin.v1alpha.IosAppDataStream>( - this, METHODID_CREATE_IOS_APP_DATA_STREAM))) .addMethod( getListIosAppDataStreamsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3426,13 +3344,6 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest, com.google.analytics.admin.v1alpha.AndroidAppDataStream>( this, METHODID_UPDATE_ANDROID_APP_DATA_STREAM))) - .addMethod( - getCreateAndroidAppDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest, - com.google.analytics.admin.v1alpha.AndroidAppDataStream>( - this, METHODID_CREATE_ANDROID_APP_DATA_STREAM))) .addMethod( getListAndroidAppDataStreamsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3522,6 +3433,13 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest, com.google.analytics.admin.v1alpha.DataSharingSettings>( this, METHODID_GET_DATA_SHARING_SETTINGS))) + .addMethod( + getSearchChangeHistoryEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse>( + this, METHODID_SEARCH_CHANGE_HISTORY_EVENTS))) .build(); } } @@ -3722,7 +3640,7 @@ public void createProperty( */ public void deleteProperty( com.google.analytics.admin.v1alpha.DeletePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeletePropertyMethod(), getCallOptions()), request, @@ -4058,29 +3976,6 @@ public void updateIosAppDataStream( responseObserver); } - /** - * - * - *
-     * Creates an iOS app stream with the specified location and attributes.
-     * Note that an iOS app stream must be linked to a Firebase app to receive
-     * traffic.
-     * To create a working app stream, make sure your property is linked to a
-     * Firebase project. Then, use the Firebase API to create a Firebase app,
-     * which will also create an appropriate data stream in Analytics (may take up
-     * to 24 hours).
-     * 
- */ - public void createIosAppDataStream( - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateIosAppDataStreamMethod(), getCallOptions()), - request, - responseObserver); - } - /** * * @@ -4151,29 +4046,6 @@ public void updateAndroidAppDataStream( responseObserver); } - /** - * - * - *
-     * Creates an Android app stream with the specified location and attributes.
-     * Note that an Android app stream must be linked to a Firebase app to receive
-     * traffic.
-     * To create a working app stream, make sure your property is linked to a
-     * Firebase project. Then, use the Firebase API to create a Firebase app,
-     * which will also create an appropriate data stream in Analytics (may take up
-     * to 24 hours).
-     * 
- */ - public void createAndroidAppDataStream( - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateAndroidAppDataStreamMethod(), getCallOptions()), - request, - responseObserver); - } - /** * * @@ -4403,6 +4275,25 @@ public void getDataSharingSettings( 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); + } } /** @@ -4570,7 +4461,7 @@ public com.google.analytics.admin.v1alpha.Property createProperty( * Returns an error if the target is not found, or is not an GA4 Property. *
*/ - public com.google.protobuf.Empty deleteProperty( + public com.google.analytics.admin.v1alpha.Property deleteProperty( com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeletePropertyMethod(), getCallOptions(), request); @@ -4837,25 +4728,6 @@ public com.google.analytics.admin.v1alpha.IosAppDataStream updateIosAppDataStrea getChannel(), getUpdateIosAppDataStreamMethod(), getCallOptions(), request); } - /** - * - * - *
-     * Creates an iOS app stream with the specified location and attributes.
-     * Note that an iOS app stream must be linked to a Firebase app to receive
-     * traffic.
-     * To create a working app stream, make sure your property is linked to a
-     * Firebase project. Then, use the Firebase API to create a Firebase app,
-     * which will also create an appropriate data stream in Analytics (may take up
-     * to 24 hours).
-     * 
- */ - public com.google.analytics.admin.v1alpha.IosAppDataStream createIosAppDataStream( - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateIosAppDataStreamMethod(), getCallOptions(), request); - } - /** * * @@ -4910,25 +4782,6 @@ public com.google.analytics.admin.v1alpha.AndroidAppDataStream updateAndroidAppD getChannel(), getUpdateAndroidAppDataStreamMethod(), getCallOptions(), request); } - /** - * - * - *
-     * Creates an Android app stream with the specified location and attributes.
-     * Note that an Android app stream must be linked to a Firebase app to receive
-     * traffic.
-     * To create a working app stream, make sure your property is linked to a
-     * Firebase project. Then, use the Firebase API to create a Firebase app,
-     * which will also create an appropriate data stream in Analytics (may take up
-     * to 24 hours).
-     * 
- */ - public com.google.analytics.admin.v1alpha.AndroidAppDataStream createAndroidAppDataStream( - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateAndroidAppDataStreamMethod(), getCallOptions(), request); - } - /** * * @@ -5110,6 +4963,21 @@ public com.google.analytics.admin.v1alpha.DataSharingSettings getDataSharingSett return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetDataSharingSettingsMethod(), 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); + } } /** @@ -5287,7 +5155,8 @@ protected AnalyticsAdminServiceFutureStub build( * Returns an error if the target is not found, or is not an GA4 Property. *
*/ - public com.google.common.util.concurrent.ListenableFuture + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Property> deleteProperty(com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeletePropertyMethod(), getCallOptions()), request); @@ -5574,27 +5443,6 @@ protected AnalyticsAdminServiceFutureStub build( getChannel().newCall(getUpdateIosAppDataStreamMethod(), getCallOptions()), request); } - /** - * - * - *
-     * Creates an iOS app stream with the specified location and attributes.
-     * Note that an iOS app stream must be linked to a Firebase app to receive
-     * traffic.
-     * To create a working app stream, make sure your property is linked to a
-     * Firebase project. Then, use the Firebase API to create a Firebase app,
-     * which will also create an appropriate data stream in Analytics (may take up
-     * to 24 hours).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.IosAppDataStream> - createIosAppDataStream( - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateIosAppDataStreamMethod(), getCallOptions()), request); - } - /** * * @@ -5656,27 +5504,6 @@ protected AnalyticsAdminServiceFutureStub build( getChannel().newCall(getUpdateAndroidAppDataStreamMethod(), getCallOptions()), request); } - /** - * - * - *
-     * Creates an Android app stream with the specified location and attributes.
-     * Note that an Android app stream must be linked to a Firebase app to receive
-     * traffic.
-     * To create a working app stream, make sure your property is linked to a
-     * Firebase project. Then, use the Firebase API to create a Firebase app,
-     * which will also create an appropriate data stream in Analytics (may take up
-     * to 24 hours).
-     * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.AndroidAppDataStream> - createAndroidAppDataStream( - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateAndroidAppDataStreamMethod(), getCallOptions()), request); - } - /** * * @@ -5872,6 +5699,22 @@ protected AnalyticsAdminServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetDataSharingSettingsMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Searches through all changes to an account or its children given the
+     * specified set of filters.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + searchChangeHistoryEvents( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchChangeHistoryEventsMethod(), getCallOptions()), request); + } } private static final int METHODID_GET_ACCOUNT = 0; @@ -5903,25 +5746,24 @@ protected AnalyticsAdminServiceFutureStub build( private static final int METHODID_GET_IOS_APP_DATA_STREAM = 26; private static final int METHODID_DELETE_IOS_APP_DATA_STREAM = 27; private static final int METHODID_UPDATE_IOS_APP_DATA_STREAM = 28; - private static final int METHODID_CREATE_IOS_APP_DATA_STREAM = 29; - private static final int METHODID_LIST_IOS_APP_DATA_STREAMS = 30; - private static final int METHODID_GET_ANDROID_APP_DATA_STREAM = 31; - private static final int METHODID_DELETE_ANDROID_APP_DATA_STREAM = 32; - private static final int METHODID_UPDATE_ANDROID_APP_DATA_STREAM = 33; - private static final int METHODID_CREATE_ANDROID_APP_DATA_STREAM = 34; - private static final int METHODID_LIST_ANDROID_APP_DATA_STREAMS = 35; - private static final int METHODID_GET_ENHANCED_MEASUREMENT_SETTINGS = 36; - private static final int METHODID_UPDATE_ENHANCED_MEASUREMENT_SETTINGS = 37; - private static final int METHODID_CREATE_FIREBASE_LINK = 38; - private static final int METHODID_UPDATE_FIREBASE_LINK = 39; - private static final int METHODID_DELETE_FIREBASE_LINK = 40; - private static final int METHODID_LIST_FIREBASE_LINKS = 41; - private static final int METHODID_GET_GLOBAL_SITE_TAG = 42; - private static final int METHODID_CREATE_GOOGLE_ADS_LINK = 43; - private static final int METHODID_UPDATE_GOOGLE_ADS_LINK = 44; - private static final int METHODID_DELETE_GOOGLE_ADS_LINK = 45; - private static final int METHODID_LIST_GOOGLE_ADS_LINKS = 46; - private static final int METHODID_GET_DATA_SHARING_SETTINGS = 47; + private static final int METHODID_LIST_IOS_APP_DATA_STREAMS = 29; + private static final int METHODID_GET_ANDROID_APP_DATA_STREAM = 30; + private static final int METHODID_DELETE_ANDROID_APP_DATA_STREAM = 31; + private static final int METHODID_UPDATE_ANDROID_APP_DATA_STREAM = 32; + private static final int METHODID_LIST_ANDROID_APP_DATA_STREAMS = 33; + 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_SEARCH_CHANGE_HISTORY_EVENTS = 46; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -5999,7 +5841,8 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv case METHODID_DELETE_PROPERTY: serviceImpl.deleteProperty( (com.google.analytics.admin.v1alpha.DeletePropertyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); + (io.grpc.stub.StreamObserver) + responseObserver); break; case METHODID_UPDATE_PROPERTY: serviceImpl.updateProperty( @@ -6117,12 +5960,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_CREATE_IOS_APP_DATA_STREAM: - serviceImpl.createIosAppDataStream( - (com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; case METHODID_LIST_IOS_APP_DATA_STREAMS: serviceImpl.listIosAppDataStreams( (com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest) request, @@ -6147,12 +5984,6 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; - case METHODID_CREATE_ANDROID_APP_DATA_STREAM: - serviceImpl.createAndroidAppDataStream( - (com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) request, - (io.grpc.stub.StreamObserver) - responseObserver); - break; case METHODID_LIST_ANDROID_APP_DATA_STREAMS: serviceImpl.listAndroidAppDataStreams( (com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest) request, @@ -6234,6 +6065,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_SEARCH_CHANGE_HISTORY_EVENTS: + serviceImpl.searchChangeHistoryEvents( + (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -6327,12 +6165,10 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getGetIosAppDataStreamMethod()) .addMethod(getDeleteIosAppDataStreamMethod()) .addMethod(getUpdateIosAppDataStreamMethod()) - .addMethod(getCreateIosAppDataStreamMethod()) .addMethod(getListIosAppDataStreamsMethod()) .addMethod(getGetAndroidAppDataStreamMethod()) .addMethod(getDeleteAndroidAppDataStreamMethod()) .addMethod(getUpdateAndroidAppDataStreamMethod()) - .addMethod(getCreateAndroidAppDataStreamMethod()) .addMethod(getListAndroidAppDataStreamsMethod()) .addMethod(getGetEnhancedMeasurementSettingsMethod()) .addMethod(getUpdateEnhancedMeasurementSettingsMethod()) @@ -6346,6 +6182,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteGoogleAdsLinkMethod()) .addMethod(getListGoogleAdsLinksMethod()) .addMethod(getGetDataSharingSettingsMethod()) + .addMethod(getSearchChangeHistoryEventsMethod()) .build(); } } diff --git a/proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml b/proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml index ff87a62f..ba7b7ea6 100644 --- a/proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml +++ b/proto-google-analytics-admin-v1alpha/clirr-ignored-differences.xml @@ -17,35 +17,19 @@ boolean has*(*) - + 6011 - com/google/analytics/admin/v1alpha/GoogleAdsLink - PARENT_FIELD_NUMBER + com/google/analytics/admin/v1alpha/Property + *FIELD_NUMBER 7002 - com/google/analytics/admin/v1alpha/GoogleAdsLink* - * *Parent*(*) + com/google/analytics/admin/v1alpha/Property* + * *Deleted(*) - 6011 - com/google/analytics/admin/v1alpha/Account - COUNTRY_CODE_FIELD_NUMBER - - - 7002 - com/google/analytics/admin/v1alpha/Account* - * *CountryCode*(*) - - - 6011 - com/google/analytics/admin/v1alpha/EnhancedMeasurementSettings - *_FIELD_NUMBER - - - 7002 - com/google/analytics/admin/v1alpha/EnhancedMeasurementSettings* - * + 8001 + com/google/analytics/admin/v1alpha/Create* diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActionType.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActionType.java new file mode 100644 index 00000000..bdd4ca5b --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActionType.java @@ -0,0 +1,198 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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; + +/** + * + * + *
+ * Types of actions that may change a resource.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.ActionType} + */ +public enum ActionType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Action type unknown or not specified.
+   * 
+ * + * ACTION_TYPE_UNSPECIFIED = 0; + */ + ACTION_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Resource was created in this change.
+   * 
+ * + * CREATED = 1; + */ + CREATED(1), + /** + * + * + *
+   * Resource was updated in this change.
+   * 
+ * + * UPDATED = 2; + */ + UPDATED(2), + /** + * + * + *
+   * Resource was deleted in this change.
+   * 
+ * + * DELETED = 3; + */ + DELETED(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Action type unknown or not specified.
+   * 
+ * + * ACTION_TYPE_UNSPECIFIED = 0; + */ + public static final int ACTION_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Resource was created in this change.
+   * 
+ * + * CREATED = 1; + */ + public static final int CREATED_VALUE = 1; + /** + * + * + *
+   * Resource was updated in this change.
+   * 
+ * + * UPDATED = 2; + */ + public static final int UPDATED_VALUE = 2; + /** + * + * + *
+   * Resource was deleted in this change.
+   * 
+ * + * DELETED = 3; + */ + public static final int DELETED_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ActionType 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 ActionType forNumber(int value) { + switch (value) { + case 0: + return ACTION_TYPE_UNSPECIFIED; + case 1: + return CREATED; + case 2: + return UPDATED; + case 3: + return DELETED; + 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 ActionType findValueByNumber(int number) { + return ActionType.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(3); + } + + private static final ActionType[] VALUES = values(); + + public static ActionType 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 ActionType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.ActionType) +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActorType.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActorType.java new file mode 100644 index 00000000..b34ddadc --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActorType.java @@ -0,0 +1,199 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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; + +/** + * + * + *
+ * Different kinds of actors that can make changes to Google Analytics
+ * resources.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.ActorType} + */ +public enum ActorType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Unknown or unspecified actor type.
+   * 
+ * + * ACTOR_TYPE_UNSPECIFIED = 0; + */ + ACTOR_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Changes made by the user specified in actor_email.
+   * 
+ * + * USER = 1; + */ + USER(1), + /** + * + * + *
+   * Changes made by the Google Analytics system.
+   * 
+ * + * SYSTEM = 2; + */ + SYSTEM(2), + /** + * + * + *
+   * Changes made by Google Analytics support team staff.
+   * 
+ * + * SUPPORT = 3; + */ + SUPPORT(3), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Unknown or unspecified actor type.
+   * 
+ * + * ACTOR_TYPE_UNSPECIFIED = 0; + */ + public static final int ACTOR_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Changes made by the user specified in actor_email.
+   * 
+ * + * USER = 1; + */ + public static final int USER_VALUE = 1; + /** + * + * + *
+   * Changes made by the Google Analytics system.
+   * 
+ * + * SYSTEM = 2; + */ + public static final int SYSTEM_VALUE = 2; + /** + * + * + *
+   * Changes made by Google Analytics support team staff.
+   * 
+ * + * SUPPORT = 3; + */ + public static final int SUPPORT_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ActorType 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 ActorType forNumber(int value) { + switch (value) { + case 0: + return ACTOR_TYPE_UNSPECIFIED; + case 1: + return USER; + case 2: + return SYSTEM; + case 3: + return SUPPORT; + 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 ActorType findValueByNumber(int number) { + return ActorType.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(2); + } + + private static final ActorType[] VALUES = values(); + + public static ActorType 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 ActorType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.ActorType) +} 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 4f51ab89..8ec45438 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 @@ -175,10 +175,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_UpdateIosAppDataStreamRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_UpdateIosAppDataStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -199,10 +195,6 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_descriptor; - static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -275,6 +267,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -402,363 +402,363 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\022R\n\023ios_app_data_stream\030\001 \001(\01320.google.a" + "nalytics.admin.v1alpha.IosAppDataStreamB" + "\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.proto" - + "buf.FieldMaskB\003\340A\002\"\273\001\n\035CreateIosAppDataS" - + "treamRequest\022R\n\023ios_app_data_stream\030\001 \001(" - + "\01320.google.analytics.admin.v1alpha.IosAp" - + "pDataStreamB\003\340A\002\022F\n\006parent\030\002 \001(\tB6\340A\002\372A0" - + "\022.analyticsadmin.googleapis.com/IosAppDa" - + "taStream\"\215\001\n\034ListIosAppDataStreamsReques" - + "t\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.analyticsadmi" - + "n.googleapis.com/IosAppDataStream\022\021\n\tpag" - + "e_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"\210\001\n\035Lis" - + "tIosAppDataStreamsResponse\022N\n\024ios_app_da" - + "ta_streams\030\001 \003(\01320.google.analytics.admi" - + "n.v1alpha.IosAppDataStream\022\027\n\017next_page_" - + "token\030\002 \001(\t\"j\n\036GetAndroidAppDataStreamRe" - + "quest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2analyticsad" - + "min.googleapis.com/AndroidAppDataStream\"" - + "m\n!DeleteAndroidAppDataStreamRequest\022H\n\004" - + "name\030\001 \001(\tB:\340A\002\372A4\n2analyticsadmin.googl" - + "eapis.com/AndroidAppDataStream\"\265\001\n!Updat" - + "eAndroidAppDataStreamRequest\022Z\n\027android_" - + "app_data_stream\030\001 \001(\01324.google.analytics" - + ".admin.v1alpha.AndroidAppDataStreamB\003\340A\002" - + "\0224\n\013update_mask\030\002 \001(\0132\032.google.protobuf." - + "FieldMaskB\003\340A\002\"\313\001\n!CreateAndroidAppDataS" - + "treamRequest\022Z\n\027android_app_data_stream\030" - + "\001 \001(\01324.google.analytics.admin.v1alpha.A" - + "ndroidAppDataStreamB\003\340A\002\022J\n\006parent\030\002 \001(\t" - + "B:\340A\002\372A4\0222analyticsadmin.googleapis.com/" - + "AndroidAppDataStream\"\225\001\n ListAndroidAppD" - + "ataStreamsRequest\022J\n\006parent\030\001 \001(\tB:\340A\002\372A" - + "4\0222analyticsadmin.googleapis.com/Android" - + "AppDataStream\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage" - + "_token\030\003 \001(\t\"\224\001\n!ListAndroidAppDataStrea" - + "msResponse\022V\n\030android_app_data_streams\030\001" - + " \003(\01324.google.analytics.admin.v1alpha.An" - + "droidAppDataStream\022\027\n\017next_page_token\030\002 " - + "\001(\t\"x\n%GetEnhancedMeasurementSettingsReq" - + "uest\022O\n\004name\030\001 \001(\tBA\340A\002\372A;\n9analyticsadm" - + "in.googleapis.com/EnhancedMeasurementSet" - + "tings\"\311\001\n(UpdateEnhancedMeasurementSetti" - + "ngsRequest\022g\n\035enhanced_measurement_setti" - + "ngs\030\001 \001(\0132;.google.analytics.admin.v1alp" - + "ha.EnhancedMeasurementSettingsB\003\340A\002\0224\n\013u" - + "pdate_mask\030\002 \001(\0132\032.google.protobuf.Field" - + "MaskB\003\340A\002\"\251\001\n\031CreateFirebaseLinkRequest\022" - + "B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyticsadmin." - + "googleapis.com/FirebaseLink\022H\n\rfirebase_" - + "link\030\002 \001(\0132,.google.analytics.admin.v1al" - + "pha.FirebaseLinkB\003\340A\002\"\233\001\n\031UpdateFirebase" - + "LinkRequest\022H\n\rfirebase_link\030\001 \001(\0132,.goo" - + "gle.analytics.admin.v1alpha.FirebaseLink" - + "B\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.prot" - + "obuf.FieldMaskB\003\340A\002\"]\n\031DeleteFirebaseLin" - + "kRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n*analytic" - + "sadmin.googleapis.com/FirebaseLink\"\205\001\n\030L" - + "istFirebaseLinksRequest\022B\n\006parent\030\001 \001(\tB" - + "2\340A\002\372A,\022*analyticsadmin.googleapis.com/F" - + "irebaseLink\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_t" - + "oken\030\003 \001(\t\"z\n\031ListFirebaseLinksResponse\022" - + "D\n\016firebase_links\030\001 \003(\0132,.google.analyti" - + "cs.admin.v1alpha.FirebaseLink\022\027\n\017next_pa" - + "ge_token\030\002 \001(\t\"\\\n\027GetGlobalSiteTagReques" - + "t\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analyticsadmin." - + "googleapis.com/GlobalSiteTag\"\256\001\n\032CreateG" - + "oogleAdsLinkRequest\022C\n\006parent\030\001 \001(\tB3\340A\002" - + "\372A-\022+analyticsadmin.googleapis.com/Googl" - + "eAdsLink\022K\n\017google_ads_link\030\002 \001(\0132-.goog" - + "le.analytics.admin.v1alpha.GoogleAdsLink" - + "B\003\340A\002\"\232\001\n\032UpdateGoogleAdsLinkRequest\022F\n\017" - + "google_ads_link\030\001 \001(\0132-.google.analytics" - + ".admin.v1alpha.GoogleAdsLink\0224\n\013update_m" - + "ask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340" - + "A\002\"_\n\032DeleteGoogleAdsLinkRequest\022A\n\004name" - + "\030\001 \001(\tB3\340A\002\372A-\n+analyticsadmin.googleapi" - + "s.com/GoogleAdsLink\"\207\001\n\031ListGoogleAdsLin" - + "ksRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+analy" - + "ticsadmin.googleapis.com/GoogleAdsLink\022\021" - + "\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"~\n" - + "\032ListGoogleAdsLinksResponse\022G\n\020google_ad" - + "s_links\030\001 \003(\0132-.google.analytics.admin.v" - + "1alpha.GoogleAdsLink\022\027\n\017next_page_token\030" - + "\002 \001(\t\"h\n\035GetDataSharingSettingsRequest\022G" - + "\n\004name\030\001 \001(\tB9\340A\002\372A3\n1analyticsadmin.goo" - + "gleapis.com/DataSharingSettings\"D\n\033ListA" - + "ccountSummariesRequest\022\021\n\tpage_size\030\001 \001(" - + "\005\022\022\n\npage_token\030\002 \001(\t\"\202\001\n\034ListAccountSum" - + "mariesResponse\022I\n\021account_summaries\030\001 \003(" - + "\0132..google.analytics.admin.v1alpha.Accou" - + "ntSummary\022\027\n\017next_page_token\030\002 \001(\t2\353R\n\025A" - + "nalyticsAdminService\022\223\001\n\nGetAccount\0221.go" - + "ogle.analytics.admin.v1alpha.GetAccountR" - + "equest\032\'.google.analytics.admin.v1alpha." - + "Account\")\202\323\344\223\002\034\022\032/v1alpha/{name=accounts" - + "/*}\332A\004name\022\224\001\n\014ListAccounts\0223.google.ana" - + "lytics.admin.v1alpha.ListAccountsRequest" - + "\0324.google.analytics.admin.v1alpha.ListAc" - + "countsResponse\"\031\202\323\344\223\002\023\022\021/v1alpha/account" - + "s\022\210\001\n\rDeleteAccount\0224.google.analytics.a" - + "dmin.v1alpha.DeleteAccountRequest\032\026.goog" - + "le.protobuf.Empty\")\202\323\344\223\002\034*\032/v1alpha/{nam" - + "e=accounts/*}\332A\004name\022\271\001\n\rUpdateAccount\0224" - + ".google.analytics.admin.v1alpha.UpdateAc" - + "countRequest\032\'.google.analytics.admin.v1" - + "alpha.Account\"I\202\323\344\223\002-2\"/v1alpha/{account" - + ".name=accounts/*}:\007account\332A\023account,upd" - + "ate_mask\022\314\001\n\026ProvisionAccountTicket\022=.go" - + "ogle.analytics.admin.v1alpha.ProvisionAc" - + "countTicketRequest\032>.google.analytics.ad" - + "min.v1alpha.ProvisionAccountTicketRespon" - + "se\"3\202\323\344\223\002-\"(/v1alpha/accounts:provisionA" - + "ccountTicket:\001*\022\264\001\n\024ListAccountSummaries" - + "\022;.google.analytics.admin.v1alpha.ListAc" - + "countSummariesRequest\032<.google.analytics" - + ".admin.v1alpha.ListAccountSummariesRespo" - + "nse\"!\202\323\344\223\002\033\022\031/v1alpha/accountSummaries\022\230" - + "\001\n\013GetProperty\0222.google.analytics.admin." - + "v1alpha.GetPropertyRequest\032(.google.anal" - + "ytics.admin.v1alpha.Property\"+\202\323\344\223\002\036\022\034/v" - + "1alpha/{name=properties/*}\332A\004name\022\234\001\n\016Li" - + "stProperties\0225.google.analytics.admin.v1" - + "alpha.ListPropertiesRequest\0326.google.ana" - + "lytics.admin.v1alpha.ListPropertiesRespo" - + "nse\"\033\202\323\344\223\002\025\022\023/v1alpha/properties\022\243\001\n\016Cre" - + "ateProperty\0225.google.analytics.admin.v1a" - + "lpha.CreatePropertyRequest\032(.google.anal" - + "ytics.admin.v1alpha.Property\"0\202\323\344\223\002\037\"\023/v" - + "1alpha/properties:\010property\332A\010property\022\214" - + "\001\n\016DeleteProperty\0225.google.analytics.adm" - + "in.v1alpha.DeletePropertyRequest\032\026.googl" - + "e.protobuf.Empty\"+\202\323\344\223\002\036*\034/v1alpha/{name" - + "=properties/*}\332A\004name\022\301\001\n\016UpdateProperty" - + "\0225.google.analytics.admin.v1alpha.Update" - + "PropertyRequest\032(.google.analytics.admin" - + ".v1alpha.Property\"N\202\323\344\223\00212%/v1alpha/{pro" - + "perty.name=properties/*}:\010property\332A\024pro" - + "perty,update_mask\022\316\001\n\013GetUserLink\0222.goog" - + "le.analytics.admin.v1alpha.GetUserLinkRe" - + "quest\032(.google.analytics.admin.v1alpha.U" - + "serLink\"a\202\323\344\223\002T\022&/v1alpha/{name=accounts" - + "/*/userLinks/*}Z*\022(/v1alpha/{name=proper" - + "ties/*/userLinks/*}\332A\004name\022\366\001\n\021BatchGetU" - + "serLinks\0228.google.analytics.admin.v1alph" - + "a.BatchGetUserLinksRequest\0329.google.anal" - + "ytics.admin.v1alpha.BatchGetUserLinksRes" - + "ponse\"l\202\323\344\223\002f\022//v1alpha/{parent=accounts" - + "/*}/userLinks:batchGetZ3\0221/v1alpha/{pare" - + "nt=properties/*}/userLinks:batchGet\022\341\001\n\r" - + "ListUserLinks\0224.google.analytics.admin.v" - + "1alpha.ListUserLinksRequest\0325.google.ana" - + "lytics.admin.v1alpha.ListUserLinksRespon" - + "se\"c\202\323\344\223\002T\022&/v1alpha/{parent=accounts/*}" - + "/userLinksZ*\022(/v1alpha/{parent=propertie" - + "s/*}/userLinks\332A\006parent\022\355\001\n\016AuditUserLin" - + "ks\0225.google.analytics.admin.v1alpha.Audi" - + "tUserLinksRequest\0326.google.analytics.adm" - + "in.v1alpha.AuditUserLinksResponse\"l\202\323\344\223\002" - + "f\",/v1alpha/{parent=accounts/*}/userLink" - + "s:audit:\001*Z3\"./v1alpha/{parent=propertie" - + "s/*}/userLinks:audit:\001*\022\367\001\n\016CreateUserLi" - + "nk\0225.google.analytics.admin.v1alpha.Crea" - + "teUserLinkRequest\032(.google.analytics.adm" - + "in.v1alpha.UserLink\"\203\001\202\323\344\223\002j\"&/v1alpha/{" - + "parent=accounts/*}/userLinks:\tuser_linkZ" - + "5\"(/v1alpha/{parent=properties/*}/userLi" - + "nks:\tuser_link\332A\020parent,user_link\022\213\002\n\024Ba" - + "tchCreateUserLinks\022;.google.analytics.ad" - + "min.v1alpha.BatchCreateUserLinksRequest\032" - + "<.google.analytics.admin.v1alpha.BatchCr" - + "eateUserLinksResponse\"x\202\323\344\223\002r\"2/v1alpha/" - + "{parent=accounts/*}/userLinks:batchCreat" - + "e:\001*Z9\"4/v1alpha/{parent=properties/*}/u" - + "serLinks:batchCreate:\001*\022\204\002\n\016UpdateUserLi" - + "nk\0225.google.analytics.admin.v1alpha.Upda" - + "teUserLinkRequest\032(.google.analytics.adm" - + "in.v1alpha.UserLink\"\220\001\202\323\344\223\002~20/v1alpha/{" - + "user_link.name=accounts/*/userLinks/*}:\t" - + "user_linkZ?22/v1alpha/{user_link.name=pr" - + "operties/*/userLinks/*}:\tuser_link\332A\tuse" - + "r_link\022\213\002\n\024BatchUpdateUserLinks\022;.google" - + ".analytics.admin.v1alpha.BatchUpdateUser" - + "LinksRequest\032<.google.analytics.admin.v1" - + "alpha.BatchUpdateUserLinksResponse\"x\202\323\344\223" - + "\002r\"2/v1alpha/{parent=accounts/*}/userLin" - + "ks:batchUpdate:\001*Z9\"4/v1alpha/{parent=pr" - + "operties/*}/userLinks:batchUpdate:\001*\022\302\001\n" - + "\016DeleteUserLink\0225.google.analytics.admin" - + ".v1alpha.DeleteUserLinkRequest\032\026.google." - + "protobuf.Empty\"a\202\323\344\223\002T*&/v1alpha/{name=a" - + "ccounts/*/userLinks/*}Z**(/v1alpha/{name" - + "=properties/*/userLinks/*}\332A\004name\022\345\001\n\024Ba" - + "tchDeleteUserLinks\022;.google.analytics.ad" - + "min.v1alpha.BatchDeleteUserLinksRequest\032" - + "\026.google.protobuf.Empty\"x\202\323\344\223\002r\"2/v1alph" - + "a/{parent=accounts/*}/userLinks:batchDel" - + "ete:\001*Z9\"4/v1alpha/{parent=properties/*}" - + "/userLinks:batchDelete:\001*\022\270\001\n\020GetWebData" - + "Stream\0227.google.analytics.admin.v1alpha." - + "GetWebDataStreamRequest\032-.google.analyti" - + "cs.admin.v1alpha.WebDataStream\"<\202\323\344\223\002/\022-" - + "/v1alpha/{name=properties/*/webDataStrea" - + "ms/*}\332A\004name\022\247\001\n\023DeleteWebDataStream\022:.g" - + "oogle.analytics.admin.v1alpha.DeleteWebD" - + "ataStreamRequest\032\026.google.protobuf.Empty" - + "\"<\202\323\344\223\002/*-/v1alpha/{name=properties/*/we" - + "bDataStreams/*}\332A\004name\022\366\001\n\023UpdateWebData" - + "Stream\022:.google.analytics.admin.v1alpha." - + "UpdateWebDataStreamRequest\032-.google.anal" - + "ytics.admin.v1alpha.WebDataStream\"t\202\323\344\223\002" - + "P2=/v1alpha/{web_data_stream.name=proper" - + "ties/*/webDataStreams/*}:\017web_data_strea" - + "m\332A\033web_data_stream,update_mask\022\341\001\n\023Crea" - + "teWebDataStream\022:.google.analytics.admin" - + ".v1alpha.CreateWebDataStreamRequest\032-.go" - + "ogle.analytics.admin.v1alpha.WebDataStre" - + "am\"_\202\323\344\223\002@\"-/v1alpha/{parent=properties/" - + "*}/webDataStreams:\017web_data_stream\332A\026par" - + "ent,web_data_stream\022\313\001\n\022ListWebDataStrea" - + "ms\0229.google.analytics.admin.v1alpha.List" - + "WebDataStreamsRequest\032:.google.analytics" - + ".admin.v1alpha.ListWebDataStreamsRespons" + + "buf.FieldMaskB\003\340A\002\"\215\001\n\034ListIosAppDataStr" + + "eamsRequest\022F\n\006parent\030\001 \001(\tB6\340A\002\372A0\022.ana" + + "lyticsadmin.googleapis.com/IosAppDataStr" + + "eam\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001" + + "(\t\"\210\001\n\035ListIosAppDataStreamsResponse\022N\n\024" + + "ios_app_data_streams\030\001 \003(\01320.google.anal" + + "ytics.admin.v1alpha.IosAppDataStream\022\027\n\017" + + "next_page_token\030\002 \001(\t\"j\n\036GetAndroidAppDa" + + "taStreamRequest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2a" + + "nalyticsadmin.googleapis.com/AndroidAppD" + + "ataStream\"m\n!DeleteAndroidAppDataStreamR" + + "equest\022H\n\004name\030\001 \001(\tB:\340A\002\372A4\n2analyticsa" + + "dmin.googleapis.com/AndroidAppDataStream" + + "\"\265\001\n!UpdateAndroidAppDataStreamRequest\022Z" + + "\n\027android_app_data_stream\030\001 \001(\01324.google" + + ".analytics.admin.v1alpha.AndroidAppDataS" + + "treamB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google" + + ".protobuf.FieldMaskB\003\340A\002\"\225\001\n ListAndroid" + + "AppDataStreamsRequest\022J\n\006parent\030\001 \001(\tB:\340" + + "A\002\372A4\0222analyticsadmin.googleapis.com/And" + + "roidAppDataStream\022\021\n\tpage_size\030\002 \001(\005\022\022\n\n" + + "page_token\030\003 \001(\t\"\224\001\n!ListAndroidAppDataS" + + "treamsResponse\022V\n\030android_app_data_strea" + + "ms\030\001 \003(\01324.google.analytics.admin.v1alph" + + "a.AndroidAppDataStream\022\027\n\017next_page_toke" + + "n\030\002 \001(\t\"x\n%GetEnhancedMeasurementSetting" + + "sRequest\022O\n\004name\030\001 \001(\tBA\340A\002\372A;\n9analytic" + + "sadmin.googleapis.com/EnhancedMeasuremen" + + "tSettings\"\311\001\n(UpdateEnhancedMeasurementS" + + "ettingsRequest\022g\n\035enhanced_measurement_s" + + "ettings\030\001 \001(\0132;.google.analytics.admin.v" + + "1alpha.EnhancedMeasurementSettingsB\003\340A\002\022" + + "4\n\013update_mask\030\002 \001(\0132\032.google.protobuf.F" + + "ieldMaskB\003\340A\002\"\251\001\n\031CreateFirebaseLinkRequ" + + "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" + + "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(\t2\334P\n\025AnalyticsAdmi" + + "nService\022\223\001\n\nGetAccount\0221.google.analyti" + + "cs.admin.v1alpha.GetAccountRequest\032\'.goo" + + "gle.analytics.admin.v1alpha.Account\")\202\323\344" + + "\223\002\034\022\032/v1alpha/{name=accounts/*}\332A\004name\022\224" + + "\001\n\014ListAccounts\0223.google.analytics.admin" + + ".v1alpha.ListAccountsRequest\0324.google.an" + + "alytics.admin.v1alpha.ListAccountsRespon" + + "se\"\031\202\323\344\223\002\023\022\021/v1alpha/accounts\022\210\001\n\rDelete" + + "Account\0224.google.analytics.admin.v1alpha" + + ".DeleteAccountRequest\032\026.google.protobuf." + + "Empty\")\202\323\344\223\002\034*\032/v1alpha/{name=accounts/*" + + "}\332A\004name\022\271\001\n\rUpdateAccount\0224.google.anal" + + "ytics.admin.v1alpha.UpdateAccountRequest" + + "\032\'.google.analytics.admin.v1alpha.Accoun" + + "t\"I\202\323\344\223\002-2\"/v1alpha/{account.name=accoun" + + "ts/*}:\007account\332A\023account,update_mask\022\314\001\n" + + "\026ProvisionAccountTicket\022=.google.analyti" + + "cs.admin.v1alpha.ProvisionAccountTicketR" + + "equest\032>.google.analytics.admin.v1alpha." + + "ProvisionAccountTicketResponse\"3\202\323\344\223\002-\"(" + + "/v1alpha/accounts:provisionAccountTicket" + + ":\001*\022\264\001\n\024ListAccountSummaries\022;.google.an" + + "alytics.admin.v1alpha.ListAccountSummari" + + "esRequest\032<.google.analytics.admin.v1alp" + + "ha.ListAccountSummariesResponse\"!\202\323\344\223\002\033\022" + + "\031/v1alpha/accountSummaries\022\230\001\n\013GetProper" + + "ty\0222.google.analytics.admin.v1alpha.GetP" + + "ropertyRequest\032(.google.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.admin.v1alpha.ListPr" + + "opertiesRequest\0326.google.analytics.admin" + + ".v1alpha.ListPropertiesResponse\"\033\202\323\344\223\002\025\022" + + "\023/v1alpha/properties\022\243\001\n\016CreateProperty\022" + + "5.google.analytics.admin.v1alpha.CreateP" + + "ropertyRequest\032(.google.analytics.admin." + + "v1alpha.Property\"0\202\323\344\223\002\037\"\023/v1alpha/prope" + + "rties:\010property\332A\010property\022\236\001\n\016DeletePro" + + "perty\0225.google.analytics.admin.v1alpha.D" + + "eletePropertyRequest\032(.google.analytics." + + "admin.v1alpha.Property\"+\202\323\344\223\002\036*\034/v1alpha" + + "/{name=properties/*}\332A\004name\022\301\001\n\016UpdatePr" + + "operty\0225.google.analytics.admin.v1alpha." + + "UpdatePropertyRequest\032(.google.analytics" + + ".admin.v1alpha.Property\"N\202\323\344\223\00212%/v1alph" + + "a/{property.name=properties/*}:\010property" + + "\332A\024property,update_mask\022\316\001\n\013GetUserLink\022" + + "2.google.analytics.admin.v1alpha.GetUser" + + "LinkRequest\032(.google.analytics.admin.v1a" + + "lpha.UserLink\"a\202\323\344\223\002T\022&/v1alpha/{name=ac" + + "counts/*/userLinks/*}Z*\022(/v1alpha/{name=" + + "properties/*/userLinks/*}\332A\004name\022\366\001\n\021Bat" + + "chGetUserLinks\0228.google.analytics.admin." + + "v1alpha.BatchGetUserLinksRequest\0329.googl" + + "e.analytics.admin.v1alpha.BatchGetUserLi" + + "nksResponse\"l\202\323\344\223\002f\022//v1alpha/{parent=ac" + + "counts/*}/userLinks:batchGetZ3\0221/v1alpha" + + "/{parent=properties/*}/userLinks:batchGe" + + "t\022\341\001\n\rListUserLinks\0224.google.analytics.a" + + "dmin.v1alpha.ListUserLinksRequest\0325.goog" + + "le.analytics.admin.v1alpha.ListUserLinks" + + "Response\"c\202\323\344\223\002T\022&/v1alpha/{parent=accou" + + "nts/*}/userLinksZ*\022(/v1alpha/{parent=pro" + + "perties/*}/userLinks\332A\006parent\022\355\001\n\016AuditU" + + "serLinks\0225.google.analytics.admin.v1alph" + + "a.AuditUserLinksRequest\0326.google.analyti" + + "cs.admin.v1alpha.AuditUserLinksResponse\"" + + "l\202\323\344\223\002f\",/v1alpha/{parent=accounts/*}/us" + + "erLinks:audit:\001*Z3\"./v1alpha/{parent=pro" + + "perties/*}/userLinks:audit:\001*\022\367\001\n\016Create" + + "UserLink\0225.google.analytics.admin.v1alph" + + "a.CreateUserLinkRequest\032(.google.analyti" + + "cs.admin.v1alpha.UserLink\"\203\001\202\323\344\223\002j\"&/v1a" + + "lpha/{parent=accounts/*}/userLinks:\tuser" + + "_linkZ5\"(/v1alpha/{parent=properties/*}/" + + "userLinks:\tuser_link\332A\020parent,user_link\022" + + "\213\002\n\024BatchCreateUserLinks\022;.google.analyt" + + "ics.admin.v1alpha.BatchCreateUserLinksRe" + + "quest\032<.google.analytics.admin.v1alpha.B" + + "atchCreateUserLinksResponse\"x\202\323\344\223\002r\"2/v1" + + "alpha/{parent=accounts/*}/userLinks:batc" + + "hCreate:\001*Z9\"4/v1alpha/{parent=propertie" + + "s/*}/userLinks:batchCreate:\001*\022\204\002\n\016Update" + + "UserLink\0225.google.analytics.admin.v1alph" + + "a.UpdateUserLinkRequest\032(.google.analyti" + + "cs.admin.v1alpha.UserLink\"\220\001\202\323\344\223\002~20/v1a" + + "lpha/{user_link.name=accounts/*/userLink" + + "s/*}:\tuser_linkZ?22/v1alpha/{user_link.n" + + "ame=properties/*/userLinks/*}:\tuser_link" + + "\332A\tuser_link\022\213\002\n\024BatchUpdateUserLinks\022;." + + "google.analytics.admin.v1alpha.BatchUpda" + + "teUserLinksRequest\032<.google.analytics.ad" + + "min.v1alpha.BatchUpdateUserLinksResponse" + + "\"x\202\323\344\223\002r\"2/v1alpha/{parent=accounts/*}/u" + + "serLinks:batchUpdate:\001*Z9\"4/v1alpha/{par" + + "ent=properties/*}/userLinks:batchUpdate:" + + "\001*\022\302\001\n\016DeleteUserLink\0225.google.analytics" + + ".admin.v1alpha.DeleteUserLinkRequest\032\026.g" + + "oogle.protobuf.Empty\"a\202\323\344\223\002T*&/v1alpha/{" + + "name=accounts/*/userLinks/*}Z**(/v1alpha" + + "/{name=properties/*/userLinks/*}\332A\004name\022" + + "\345\001\n\024BatchDeleteUserLinks\022;.google.analyt" + + "ics.admin.v1alpha.BatchDeleteUserLinksRe" + + "quest\032\026.google.protobuf.Empty\"x\202\323\344\223\002r\"2/" + + "v1alpha/{parent=accounts/*}/userLinks:ba" + + "tchDelete:\001*Z9\"4/v1alpha/{parent=propert" + + "ies/*}/userLinks:batchDelete:\001*\022\270\001\n\020GetW" + + "ebDataStream\0227.google.analytics.admin.v1" + + "alpha.GetWebDataStreamRequest\032-.google.a" + + "nalytics.admin.v1alpha.WebDataStream\"<\202\323" + + "\344\223\002/\022-/v1alpha/{name=properties/*/webDat" + + "aStreams/*}\332A\004name\022\247\001\n\023DeleteWebDataStre" + + "am\022:.google.analytics.admin.v1alpha.Dele" + + "teWebDataStreamRequest\032\026.google.protobuf" + + ".Empty\"<\202\323\344\223\002/*-/v1alpha/{name=propertie" + + "s/*/webDataStreams/*}\332A\004name\022\366\001\n\023UpdateW" + + "ebDataStream\022:.google.analytics.admin.v1" + + "alpha.UpdateWebDataStreamRequest\032-.googl" + + "e.analytics.admin.v1alpha.WebDataStream\"" + + "t\202\323\344\223\002P2=/v1alpha/{web_data_stream.name=" + + "properties/*/webDataStreams/*}:\017web_data" + + "_stream\332A\033web_data_stream,update_mask\022\341\001" + + "\n\023CreateWebDataStream\022:.google.analytics" + + ".admin.v1alpha.CreateWebDataStreamReques" + + "t\032-.google.analytics.admin.v1alpha.WebDa" + + "taStream\"_\202\323\344\223\002@\"-/v1alpha/{parent=prope" + + "rties/*}/webDataStreams:\017web_data_stream" + + "\332A\026parent,web_data_stream\022\313\001\n\022ListWebDat" + + "aStreams\0229.google.analytics.admin.v1alph" + + "a.ListWebDataStreamsRequest\032:.google.ana" + + "lytics.admin.v1alpha.ListWebDataStreamsR" + + "esponse\">\202\323\344\223\002/\022-/v1alpha/{parent=proper" + + "ties/*}/webDataStreams\332A\006parent\022\304\001\n\023GetI" + + "osAppDataStream\022:.google.analytics.admin" + + ".v1alpha.GetIosAppDataStreamRequest\0320.go" + + "ogle.analytics.admin.v1alpha.IosAppDataS" + + "tream\"?\202\323\344\223\0022\0220/v1alpha/{name=properties" + + "/*/iosAppDataStreams/*}\332A\004name\022\260\001\n\026Delet" + + "eIosAppDataStream\022=.google.analytics.adm" + + "in.v1alpha.DeleteIosAppDataStreamRequest" + + "\032\026.google.protobuf.Empty\"?\202\323\344\223\0022*0/v1alp" + + "ha/{name=properties/*/iosAppDataStreams/" + + "*}\332A\004name\022\217\002\n\026UpdateIosAppDataStream\022=.g" + + "oogle.analytics.admin.v1alpha.UpdateIosA" + + "ppDataStreamRequest\0320.google.analytics.a" + + "dmin.v1alpha.IosAppDataStream\"\203\001\202\323\344\223\002[2D" + + "/v1alpha/{ios_app_data_stream.name=prope" + + "rties/*/iosAppDataStreams/*}:\023ios_app_da" + + "ta_stream\332A\037ios_app_data_stream,update_m" + + "ask\022\327\001\n\025ListIosAppDataStreams\022<.google.a" + + "nalytics.admin.v1alpha.ListIosAppDataStr" + + "eamsRequest\032=.google.analytics.admin.v1a" + + "lpha.ListIosAppDataStreamsResponse\"A\202\323\344\223" + + "\0022\0220/v1alpha/{parent=properties/*}/iosAp" + + "pDataStreams\332A\006parent\022\324\001\n\027GetAndroidAppD" + + "ataStream\022>.google.analytics.admin.v1alp" + + "ha.GetAndroidAppDataStreamRequest\0324.goog" + + "le.analytics.admin.v1alpha.AndroidAppDat" + + "aStream\"C\202\323\344\223\0026\0224/v1alpha/{name=properti" + + "es/*/androidAppDataStreams/*}\332A\004name\022\274\001\n" + + "\032DeleteAndroidAppDataStream\022A.google.ana" + + "lytics.admin.v1alpha.DeleteAndroidAppDat" + + "aStreamRequest\032\026.google.protobuf.Empty\"C" + + "\202\323\344\223\0026*4/v1alpha/{name=properties/*/andr" + + "oidAppDataStreams/*}\332A\004name\022\253\002\n\032UpdateAn" + + "droidAppDataStream\022A.google.analytics.ad" + + "min.v1alpha.UpdateAndroidAppDataStreamRe" + + "quest\0324.google.analytics.admin.v1alpha.A" + + "ndroidAppDataStream\"\223\001\202\323\344\223\002g2L/v1alpha/{" + + "android_app_data_stream.name=properties/" + + "*/androidAppDataStreams/*}:\027android_app_" + + "data_stream\332A#android_app_data_stream,up" + + "date_mask\022\347\001\n\031ListAndroidAppDataStreams\022" + + "@.google.analytics.admin.v1alpha.ListAnd" + + "roidAppDataStreamsRequest\032A.google.analy" + + "tics.admin.v1alpha.ListAndroidAppDataStr" + + "eamsResponse\"E\202\323\344\223\0026\0224/v1alpha/{parent=p" + + "roperties/*}/androidAppDataStreams\332A\006par" + + "ent\022\376\001\n\036GetEnhancedMeasurementSettings\022E" + + ".google.analytics.admin.v1alpha.GetEnhan" + + "cedMeasurementSettingsRequest\032;.google.a" + + "nalytics.admin.v1alpha.EnhancedMeasureme" + + "ntSettings\"X\202\323\344\223\002K\022I/v1alpha/{name=prope" + + "rties/*/webDataStreams/*/enhancedMeasure" + + "mentSettings}\332A\004name\022\350\002\n!UpdateEnhancedM" + + "easurementSettings\022H.google.analytics.ad" + + "min.v1alpha.UpdateEnhancedMeasurementSet", + "tingsRequest\032;.google.analytics.admin.v1" + + "alpha.EnhancedMeasurementSettings\"\273\001\202\323\344\223" + + "\002\210\0012g/v1alpha/{enhanced_measurement_sett" + + "ings.name=properties/*/webDataStreams/*/" + + "enhancedMeasurementSettings}:\035enhanced_m" + + "easurement_settings\332A)enhanced_measureme" + + "nt_settings,update_mask\022\331\001\n\022CreateFireba" + + "seLink\0229.google.analytics.admin.v1alpha." + + "CreateFirebaseLinkRequest\032,.google.analy" + + "tics.admin.v1alpha.FirebaseLink\"Z\202\323\344\223\002=\"" + + ",/v1alpha/{parent=properties/*}/firebase" + + "Links:\rfirebase_link\332A\024parent,firebase_l" + + "ink\022\354\001\n\022UpdateFirebaseLink\0229.google.anal" + + "ytics.admin.v1alpha.UpdateFirebaseLinkRe" + + "quest\032,.google.analytics.admin.v1alpha.F" + + "irebaseLink\"m\202\323\344\223\002K2:/v1alpha/{firebase_" + + "link.name=properties/*/firebaseLinks/*}:" + + "\rfirebase_link\332A\031firebase_link,update_ma" + + "sk\022\244\001\n\022DeleteFirebaseLink\0229.google.analy" + + "tics.admin.v1alpha.DeleteFirebaseLinkReq" + + "uest\032\026.google.protobuf.Empty\";\202\323\344\223\002.*,/v" + + "1alpha/{name=properties/*/firebaseLinks/" + + "*}\332A\004name\022\307\001\n\021ListFirebaseLinks\0228.google" + + ".analytics.admin.v1alpha.ListFirebaseLin" + + "ksRequest\0329.google.analytics.admin.v1alp" + + "ha.ListFirebaseLinksResponse\"=\202\323\344\223\002.\022,/v" + + "1alpha/{parent=properties/*}/firebaseLin" + + "ks\332A\006parent\022\306\001\n\020GetGlobalSiteTag\0227.googl" + + "e.analytics.admin.v1alpha.GetGlobalSiteT" + + "agRequest\032-.google.analytics.admin.v1alp" + + "ha.GlobalSiteTag\"J\202\323\344\223\002=\022;/v1alpha/{name" + + "=properties/*/webDataStreams/*/globalSit" + + "eTag}\332A\004name\022\341\001\n\023CreateGoogleAdsLink\022:.g" + + "oogle.analytics.admin.v1alpha.CreateGoog" + + "leAdsLinkRequest\032-.google.analytics.admi" + + "n.v1alpha.GoogleAdsLink\"_\202\323\344\223\002@\"-/v1alph" + + "a/{parent=properties/*}/googleAdsLinks:\017" + + "google_ads_link\332A\026parent,google_ads_link" + + "\022\366\001\n\023UpdateGoogleAdsLink\022:.google.analyt" + + "ics.admin.v1alpha.UpdateGoogleAdsLinkReq" + + "uest\032-.google.analytics.admin.v1alpha.Go" + + "ogleAdsLink\"t\202\323\344\223\002P2=/v1alpha/{google_ad" + + "s_link.name=properties/*/googleAdsLinks/" + + "*}:\017google_ads_link\332A\033google_ads_link,up" + + "date_mask\022\247\001\n\023DeleteGoogleAdsLink\022:.goog" + + "le.analytics.admin.v1alpha.DeleteGoogleA" + + "dsLinkRequest\032\026.google.protobuf.Empty\"<\202" + + "\323\344\223\002/*-/v1alpha/{name=properties/*/googl" + + "eAdsLinks/*}\332A\004name\022\313\001\n\022ListGoogleAdsLin" + + "ks\0229.google.analytics.admin.v1alpha.List" + + "GoogleAdsLinksRequest\032:.google.analytics" + + ".admin.v1alpha.ListGoogleAdsLinksRespons" + "e\">\202\323\344\223\002/\022-/v1alpha/{parent=properties/*" - + "}/webDataStreams\332A\006parent\022\304\001\n\023GetIosAppD" - + "ataStream\022:.google.analytics.admin.v1alp" - + "ha.GetIosAppDataStreamRequest\0320.google.a" - + "nalytics.admin.v1alpha.IosAppDataStream\"" - + "?\202\323\344\223\0022\0220/v1alpha/{name=properties/*/ios" - + "AppDataStreams/*}\332A\004name\022\260\001\n\026DeleteIosAp" - + "pDataStream\022=.google.analytics.admin.v1a" - + "lpha.DeleteIosAppDataStreamRequest\032\026.goo" - + "gle.protobuf.Empty\"?\202\323\344\223\0022*0/v1alpha/{na" - + "me=properties/*/iosAppDataStreams/*}\332A\004n" - + "ame\022\217\002\n\026UpdateIosAppDataStream\022=.google." - + "analytics.admin.v1alpha.UpdateIosAppData" - + "StreamRequest\0320.google.analytics.admin.v" - + "1alpha.IosAppDataStream\"\203\001\202\323\344\223\002[2D/v1alp" - + "ha/{ios_app_data_stream.name=properties/" - + "*/iosAppDataStreams/*}:\023ios_app_data_str" - + "eam\332A\037ios_app_data_stream,update_mask\022\365\001" - + "\n\026CreateIosAppDataStream\022=.google.analyt" - + "ics.admin.v1alpha.CreateIosAppDataStream" - + "Request\0320.google.analytics.admin.v1alpha" - + ".IosAppDataStream\"j\202\323\344\223\002G\"0/v1alpha/{par" - + "ent=properties/*}/iosAppDataStreams:\023ios" - + "_app_data_stream\332A\032parent,ios_app_data_s" - + "tream\022\327\001\n\025ListIosAppDataStreams\022<.google" - + ".analytics.admin.v1alpha.ListIosAppDataS" - + "treamsRequest\032=.google.analytics.admin.v" - + "1alpha.ListIosAppDataStreamsResponse\"A\202\323" - + "\344\223\0022\0220/v1alpha/{parent=properties/*}/ios" - + "AppDataStreams\332A\006parent\022\324\001\n\027GetAndroidAp" - + "pDataStream\022>.google.analytics.admin.v1a" - + "lpha.GetAndroidAppDataStreamRequest\0324.go" - + "ogle.analytics.admin.v1alpha.AndroidAppD" - + "ataStream\"C\202\323\344\223\0026\0224/v1alpha/{name=proper" - + "ties/*/androidAppDataStreams/*}\332A\004name\022\274" - + "\001\n\032DeleteAndroidAppDataStream\022A.google.a" - + "nalytics.admin.v1alpha.DeleteAndroidAppD" - + "ataStreamRequest\032\026.google.protobuf.Empty" - + "\"C\202\323\344\223\0026*4/v1alpha/{name=properties/*/an" - + "droidAppDataStreams/*}\332A\004name\022\253\002\n\032Update" - + "AndroidAppDataStream\022A.google.analytics." - + "admin.v1alpha.UpdateAndroidAppDataStream" - + "Request\0324.google.analytics.admin.v1alpha" - + ".AndroidAppDataStream\"\223\001\202\323\344\223\002g2L/v1alpha" - + "/{android_app_data_stream.name=propertie" - + "s/*/androidAppDataStreams/*}:\027android_ap" - + "p_data_stream\332A#android_app_data_stream," - + "update_mask\022\215\002\n\032CreateAndroidAppDataStre" - + "am\022A.google.analytics.admin.v1alpha.Crea" - + "teAndroidAppDataStreamRequest\0324.google.a" - + "nalytics.admin.v1alpha.AndroidAppDataStr" - + "eam\"v\202\323\344\223\002O\"4/v1alpha/{parent=properties" - + "/*}/androidAppDataStreams:\027android_app_d" - + "ata_stream\332A\036parent,android_app_data_str" - + "eam\022\347\001\n\031ListAndroidAppDataStreams\022@.goog" - + "le.analytics.admin.v1alpha.ListAndroidAp" - + "pDataStreamsRequest\032A.google.analytics.a" - + "dmin.v1alpha.ListAndroidAppDataStreamsRe" - + "sponse\"E\202\323\344\223\0026\0224/v1alpha/{parent=propert" - + "ies/*}/androidAppDataStreams\332A\006parent\022\376\001" - + "\n\036GetEnhancedMeasurementSettings\022E.googl" - + "e.analytics.admin.v1alpha.GetEnhancedMea" - + "surementSettingsRequest\032;.google.analyti", - "cs.admin.v1alpha.EnhancedMeasurementSett" - + "ings\"X\202\323\344\223\002K\022I/v1alpha/{name=properties/" - + "*/webDataStreams/*/enhancedMeasurementSe" - + "ttings}\332A\004name\022\350\002\n!UpdateEnhancedMeasure" - + "mentSettings\022H.google.analytics.admin.v1" - + "alpha.UpdateEnhancedMeasurementSettingsR" - + "equest\032;.google.analytics.admin.v1alpha." - + "EnhancedMeasurementSettings\"\273\001\202\323\344\223\002\210\0012g/" - + "v1alpha/{enhanced_measurement_settings.n" - + "ame=properties/*/webDataStreams/*/enhanc" - + "edMeasurementSettings}:\035enhanced_measure" - + "ment_settings\332A)enhanced_measurement_set" - + "tings,update_mask\022\331\001\n\022CreateFirebaseLink" - + "\0229.google.analytics.admin.v1alpha.Create" - + "FirebaseLinkRequest\032,.google.analytics.a" - + "dmin.v1alpha.FirebaseLink\"Z\202\323\344\223\002=\",/v1al" - + "pha/{parent=properties/*}/firebaseLinks:" - + "\rfirebase_link\332A\024parent,firebase_link\022\354\001" - + "\n\022UpdateFirebaseLink\0229.google.analytics." - + "admin.v1alpha.UpdateFirebaseLinkRequest\032" - + ",.google.analytics.admin.v1alpha.Firebas" - + "eLink\"m\202\323\344\223\002K2:/v1alpha/{firebase_link.n" - + "ame=properties/*/firebaseLinks/*}:\rfireb" - + "ase_link\332A\031firebase_link,update_mask\022\244\001\n" - + "\022DeleteFirebaseLink\0229.google.analytics.a" - + "dmin.v1alpha.DeleteFirebaseLinkRequest\032\026" - + ".google.protobuf.Empty\";\202\323\344\223\002.*,/v1alpha" - + "/{name=properties/*/firebaseLinks/*}\332A\004n" - + "ame\022\307\001\n\021ListFirebaseLinks\0228.google.analy" - + "tics.admin.v1alpha.ListFirebaseLinksRequ" - + "est\0329.google.analytics.admin.v1alpha.Lis" - + "tFirebaseLinksResponse\"=\202\323\344\223\002.\022,/v1alpha" - + "/{parent=properties/*}/firebaseLinks\332A\006p" - + "arent\022\306\001\n\020GetGlobalSiteTag\0227.google.anal" - + "ytics.admin.v1alpha.GetGlobalSiteTagRequ" - + "est\032-.google.analytics.admin.v1alpha.Glo" - + "balSiteTag\"J\202\323\344\223\002=\022;/v1alpha/{name=prope" - + "rties/*/webDataStreams/*/globalSiteTag}\332" - + "A\004name\022\341\001\n\023CreateGoogleAdsLink\022:.google." - + "analytics.admin.v1alpha.CreateGoogleAdsL" - + "inkRequest\032-.google.analytics.admin.v1al" - + "pha.GoogleAdsLink\"_\202\323\344\223\002@\"-/v1alpha/{par" - + "ent=properties/*}/googleAdsLinks:\017google" - + "_ads_link\332A\026parent,google_ads_link\022\366\001\n\023U" - + "pdateGoogleAdsLink\022:.google.analytics.ad" - + "min.v1alpha.UpdateGoogleAdsLinkRequest\032-" - + ".google.analytics.admin.v1alpha.GoogleAd" - + "sLink\"t\202\323\344\223\002P2=/v1alpha/{google_ads_link" - + ".name=properties/*/googleAdsLinks/*}:\017go" - + "ogle_ads_link\332A\033google_ads_link,update_m" - + "ask\022\247\001\n\023DeleteGoogleAdsLink\022:.google.ana" - + "lytics.admin.v1alpha.DeleteGoogleAdsLink" - + "Request\032\026.google.protobuf.Empty\"<\202\323\344\223\002/*" - + "-/v1alpha/{name=properties/*/googleAdsLi" - + "nks/*}\332A\004name\022\313\001\n\022ListGoogleAdsLinks\0229.g" - + "oogle.analytics.admin.v1alpha.ListGoogle" - + "AdsLinksRequest\032:.google.analytics.admin" - + ".v1alpha.ListGoogleAdsLinksResponse\">\202\323\344" - + "\223\002/\022-/v1alpha/{parent=properties/*}/goog" - + "leAdsLinks\332A\006parent\022\313\001\n\026GetDataSharingSe" - + "ttings\022=.google.analytics.admin.v1alpha." - + "GetDataSharingSettingsRequest\0323.google.a" - + "nalytics.admin.v1alpha.DataSharingSettin" - + "gs\"=\202\323\344\223\0020\022./v1alpha/{name=accounts/*/da" - + "taSharingSettings}\332A\004name\032\374\001\312A\035analytics" - + "admin.googleapis.com\322A\330\001https://www.goog" - + "leapis.com/auth/analytics.edit,https://w" - + "ww.googleapis.com/auth/analytics.manage." - + "users,https://www.googleapis.com/auth/an" - + "alytics.manage.users.readonly,https://ww" - + "w.googleapis.com/auth/analytics.readonly" - + "B\200\001\n\"com.google.analytics.admin.v1alphaB" - + "\023AnalyticsAdminProtoP\001ZCgoogle.golang.or" - + "g/genproto/googleapis/analytics/admin/v1" - + "alpha;adminb\006proto3" + + "}/googleAdsLinks\332A\006parent\022\313\001\n\026GetDataSha" + + "ringSettings\022=.google.analytics.admin.v1" + + "alpha.GetDataSharingSettingsRequest\0323.go" + + "ogle.analytics.admin.v1alpha.DataSharing" + + "Settings\"=\202\323\344\223\0020\022./v1alpha/{name=account" + + "s/*/dataSharingSettings}\332A\004name\022\344\001\n\031Sear" + + "chChangeHistoryEvents\022@.google.analytics" + + ".admin.v1alpha.SearchChangeHistoryEvents" + + "Request\032A.google.analytics.admin.v1alpha" + + ".SearchChangeHistoryEventsResponse\"B\202\323\344\223" + + "\002<\"7/v1alpha/{account=accounts/*}:search" + + "ChangeHistoryEvents:\001*\032\374\001\312A\035analyticsadm" + + "in.googleapis.com\322A\330\001https://www.googlea" + + "pis.com/auth/analytics.edit,https://www." + + "googleapis.com/auth/analytics.manage.use" + + "rs,https://www.googleapis.com/auth/analy" + + "tics.manage.users.readonly,https://www.g" + + "oogleapis.com/auth/analytics.readonlyB\200\001" + + "\n\"com.google.analytics.admin.v1alphaB\023An" + + "alyticsAdminProtoP\001ZCgoogle.golang.org/g" + + "enproto/googleapis/analytics/admin/v1alp" + + "ha;adminb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1069,16 +1069,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "IosAppDataStream", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_descriptor, - new java.lang.String[] { - "IosAppDataStream", "Parent", - }); internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_descriptor = - getDescriptor().getMessageTypes().get(38); + getDescriptor().getMessageTypes().get(37); internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsRequest_descriptor, @@ -1086,7 +1078,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_descriptor = - getDescriptor().getMessageTypes().get(39); + getDescriptor().getMessageTypes().get(38); internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListIosAppDataStreamsResponse_descriptor, @@ -1094,7 +1086,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IosAppDataStreams", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(40); + getDescriptor().getMessageTypes().get(39); internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetAndroidAppDataStreamRequest_descriptor, @@ -1102,7 +1094,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(41); + getDescriptor().getMessageTypes().get(40); internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteAndroidAppDataStreamRequest_descriptor, @@ -1110,23 +1102,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(42); + getDescriptor().getMessageTypes().get(41); internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateAndroidAppDataStreamRequest_descriptor, new java.lang.String[] { "AndroidAppDataStream", "UpdateMask", }); - internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_descriptor = - getDescriptor().getMessageTypes().get(43); - internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_fieldAccessorTable = - new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_descriptor, - new java.lang.String[] { - "AndroidAppDataStream", "Parent", - }); internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_descriptor = - getDescriptor().getMessageTypes().get(44); + getDescriptor().getMessageTypes().get(42); internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsRequest_descriptor, @@ -1134,7 +1118,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_descriptor = - getDescriptor().getMessageTypes().get(45); + getDescriptor().getMessageTypes().get(43); internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAndroidAppDataStreamsResponse_descriptor, @@ -1142,7 +1126,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AndroidAppDataStreams", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(46); + getDescriptor().getMessageTypes().get(44); internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetEnhancedMeasurementSettingsRequest_descriptor, @@ -1150,7 +1134,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(47); + getDescriptor().getMessageTypes().get(45); internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateEnhancedMeasurementSettingsRequest_descriptor, @@ -1158,7 +1142,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "EnhancedMeasurementSettings", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(48); + getDescriptor().getMessageTypes().get(46); internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateFirebaseLinkRequest_descriptor, @@ -1166,7 +1150,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "FirebaseLink", }); internal_static_google_analytics_admin_v1alpha_UpdateFirebaseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(49); + 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, @@ -1174,7 +1158,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirebaseLink", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(50); + getDescriptor().getMessageTypes().get(48); internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteFirebaseLinkRequest_descriptor, @@ -1182,7 +1166,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(51); + getDescriptor().getMessageTypes().get(49); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksRequest_descriptor, @@ -1190,7 +1174,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(52); + getDescriptor().getMessageTypes().get(50); internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListFirebaseLinksResponse_descriptor, @@ -1198,7 +1182,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FirebaseLinks", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor = - getDescriptor().getMessageTypes().get(53); + getDescriptor().getMessageTypes().get(51); internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetGlobalSiteTagRequest_descriptor, @@ -1206,7 +1190,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(54); + getDescriptor().getMessageTypes().get(52); internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_CreateGoogleAdsLinkRequest_descriptor, @@ -1214,7 +1198,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "GoogleAdsLink", }); internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(55); + getDescriptor().getMessageTypes().get(53); internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_UpdateGoogleAdsLinkRequest_descriptor, @@ -1222,7 +1206,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GoogleAdsLink", "UpdateMask", }); internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor = - getDescriptor().getMessageTypes().get(56); + getDescriptor().getMessageTypes().get(54); internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_DeleteGoogleAdsLinkRequest_descriptor, @@ -1230,7 +1214,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor = - getDescriptor().getMessageTypes().get(57); + getDescriptor().getMessageTypes().get(55); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksRequest_descriptor, @@ -1238,7 +1222,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor = - getDescriptor().getMessageTypes().get(58); + getDescriptor().getMessageTypes().get(56); internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListGoogleAdsLinksResponse_descriptor, @@ -1246,7 +1230,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "GoogleAdsLinks", "NextPageToken", }); internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor = - getDescriptor().getMessageTypes().get(59); + getDescriptor().getMessageTypes().get(57); internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_GetDataSharingSettingsRequest_descriptor, @@ -1254,7 +1238,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor = - getDescriptor().getMessageTypes().get(60); + getDescriptor().getMessageTypes().get(58); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAccountSummariesRequest_descriptor, @@ -1262,13 +1246,37 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PageSize", "PageToken", }); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor = - getDescriptor().getMessageTypes().get(61); + getDescriptor().getMessageTypes().get(59); internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ListAccountSummariesResponse_descriptor, new java.lang.String[] { "AccountSummaries", "NextPageToken", }); + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(60); + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor, + new java.lang.String[] { + "Account", + "Property", + "ResourceType", + "Action", + "ActorEmail", + "EarliestChangeTime", + "LatestChangeTime", + "PageSize", + "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(61); + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor, + new java.lang.String[] { + "ChangeHistoryEvents", "NextPageToken", + }); 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/ChangeHistoryChange.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java new file mode 100644 index 00000000..e2bcf575 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java @@ -0,0 +1,4445 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 description of a change to a single Google Analytics resource.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryChange} + */ +public final class ChangeHistoryChange extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChangeHistoryChange) + ChangeHistoryChangeOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChangeHistoryChange.newBuilder() to construct. + private ChangeHistoryChange(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChangeHistoryChange() { + resource_ = ""; + action_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChangeHistoryChange(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ChangeHistoryChange( + 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(); + + resource_ = s; + break; + } + case 16: + { + int rawValue = input.readEnum(); + + action_ = rawValue; + break; + } + case 26: + { + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + subBuilder = null; + if (resourceBeforeChange_ != null) { + subBuilder = resourceBeforeChange_.toBuilder(); + } + resourceBeforeChange_ = + input.readMessage( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceBeforeChange_); + resourceBeforeChange_ = subBuilder.buildPartial(); + } + + break; + } + case 34: + { + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + subBuilder = null; + if (resourceAfterChange_ != null) { + subBuilder = resourceAfterChange_.toBuilder(); + } + resourceAfterChange_ = + input.readMessage( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(resourceAfterChange_); + resourceAfterChange_ = 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_ChangeHistoryChange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.class, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder.class); + } + + public interface ChangeHistoryResourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return Whether the account field is set. + */ + boolean hasAccount(); + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return The account. + */ + com.google.analytics.admin.v1alpha.Account getAccount(); + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder(); + + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + * + * @return Whether the property field is set. + */ + boolean hasProperty(); + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + * + * @return The property. + */ + com.google.analytics.admin.v1alpha.Property getProperty(); + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder(); + + /** + * + * + *
+     * A snapshot of a WebDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + * + * @return Whether the webDataStream field is set. + */ + boolean hasWebDataStream(); + /** + * + * + *
+     * A snapshot of a WebDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + * + * @return The webDataStream. + */ + com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream(); + /** + * + * + *
+     * A snapshot of a WebDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + */ + com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder(); + + /** + * + * + *
+     * A snapshot of an AndroidAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + * + * @return Whether the androidAppDataStream field is set. + */ + boolean hasAndroidAppDataStream(); + /** + * + * + *
+     * A snapshot of an AndroidAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + * + * @return The androidAppDataStream. + */ + com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream(); + /** + * + * + *
+     * A snapshot of an AndroidAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + */ + com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder + getAndroidAppDataStreamOrBuilder(); + + /** + * + * + *
+     * A snapshot of an IosAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + * + * @return Whether the iosAppDataStream field is set. + */ + boolean hasIosAppDataStream(); + /** + * + * + *
+     * A snapshot of an IosAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + * + * @return The iosAppDataStream. + */ + com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream(); + /** + * + * + *
+     * A snapshot of an IosAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + */ + com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder getIosAppDataStreamOrBuilder(); + + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + * + * @return Whether the firebaseLink field is set. + */ + boolean hasFirebaseLink(); + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + * + * @return The firebaseLink. + */ + com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink(); + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder(); + + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + * + * @return Whether the googleAdsLink field is set. + */ + boolean hasGoogleAdsLink(); + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + * + * @return The googleAdsLink. + */ + com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink(); + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder(); + + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.ResourceCase + getResourceCase(); + } + /** + * + * + *
+   * A snapshot of a resource as before or after the result of a change in
+   * change history.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} + */ + public static final class ChangeHistoryResource extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) + ChangeHistoryResourceOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChangeHistoryResource.newBuilder() to construct. + private ChangeHistoryResource(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChangeHistoryResource() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChangeHistoryResource(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ChangeHistoryResource( + 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.Account.Builder subBuilder = null; + if (resourceCase_ == 1) { + subBuilder = ((com.google.analytics.admin.v1alpha.Account) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.Account.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.admin.v1alpha.Account) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 1; + break; + } + case 18: + { + com.google.analytics.admin.v1alpha.Property.Builder subBuilder = null; + if (resourceCase_ == 2) { + subBuilder = + ((com.google.analytics.admin.v1alpha.Property) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.Property.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.admin.v1alpha.Property) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 2; + break; + } + case 26: + { + com.google.analytics.admin.v1alpha.WebDataStream.Builder subBuilder = null; + if (resourceCase_ == 3) { + subBuilder = + ((com.google.analytics.admin.v1alpha.WebDataStream) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.WebDataStream.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.WebDataStream) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 3; + break; + } + case 34: + { + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder subBuilder = null; + if (resourceCase_ == 4) { + subBuilder = + ((com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_) + .toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.AndroidAppDataStream.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 4; + break; + } + case 42: + { + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder subBuilder = null; + if (resourceCase_ == 5) { + subBuilder = + ((com.google.analytics.admin.v1alpha.IosAppDataStream) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.IosAppDataStream.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 5; + break; + } + case 50: + { + com.google.analytics.admin.v1alpha.FirebaseLink.Builder subBuilder = null; + if (resourceCase_ == 6) { + subBuilder = + ((com.google.analytics.admin.v1alpha.FirebaseLink) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.FirebaseLink.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.admin.v1alpha.FirebaseLink) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 6; + break; + } + case 58: + { + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder subBuilder = null; + if (resourceCase_ == 7) { + subBuilder = + ((com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.GoogleAdsLink.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 7; + 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_ChangeHistoryChange_ChangeHistoryResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.class, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + .class); + } + + private int resourceCase_ = 0; + private java.lang.Object resource_; + + public enum ResourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + ACCOUNT(1), + PROPERTY(2), + WEB_DATA_STREAM(3), + ANDROID_APP_DATA_STREAM(4), + IOS_APP_DATA_STREAM(5), + FIREBASE_LINK(6), + GOOGLE_ADS_LINK(7), + RESOURCE_NOT_SET(0); + private final int value; + + private ResourceCase(int value) { + this.value = value; + } + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ResourceCase valueOf(int value) { + return forNumber(value); + } + + public static ResourceCase forNumber(int value) { + switch (value) { + case 1: + return ACCOUNT; + case 2: + return PROPERTY; + case 3: + return WEB_DATA_STREAM; + case 4: + return ANDROID_APP_DATA_STREAM; + case 5: + return IOS_APP_DATA_STREAM; + case 6: + return FIREBASE_LINK; + case 7: + return GOOGLE_ADS_LINK; + case 0: + return RESOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ResourceCase getResourceCase() { + return ResourceCase.forNumber(resourceCase_); + } + + public static final int ACCOUNT_FIELD_NUMBER = 1; + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return Whether the account field is set. + */ + @java.lang.Override + public boolean hasAccount() { + return resourceCase_ == 1; + } + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return The account. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Account getAccount() { + if (resourceCase_ == 1) { + return (com.google.analytics.admin.v1alpha.Account) resource_; + } + return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of an Account resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() { + if (resourceCase_ == 1) { + return (com.google.analytics.admin.v1alpha.Account) resource_; + } + return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); + } + + public static final int PROPERTY_FIELD_NUMBER = 2; + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + * + * @return Whether the property field is set. + */ + @java.lang.Override + public boolean hasProperty() { + return resourceCase_ == 2; + } + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + * + * @return The property. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Property getProperty() { + if (resourceCase_ == 2) { + return (com.google.analytics.admin.v1alpha.Property) resource_; + } + return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a Property resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder() { + if (resourceCase_ == 2) { + return (com.google.analytics.admin.v1alpha.Property) resource_; + } + return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); + } + + public static final int WEB_DATA_STREAM_FIELD_NUMBER = 3; + /** + * + * + *
+     * A snapshot of a WebDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + * + * @return Whether the webDataStream field is set. + */ + @java.lang.Override + public boolean hasWebDataStream() { + return resourceCase_ == 3; + } + /** + * + * + *
+     * A snapshot of a WebDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + * + * @return The webDataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream() { + if (resourceCase_ == 3) { + return (com.google.analytics.admin.v1alpha.WebDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a WebDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder() { + if (resourceCase_ == 3) { + return (com.google.analytics.admin.v1alpha.WebDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance(); + } + + public static final int ANDROID_APP_DATA_STREAM_FIELD_NUMBER = 4; + /** + * + * + *
+     * A snapshot of an AndroidAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + * + * @return Whether the androidAppDataStream field is set. + */ + @java.lang.Override + public boolean hasAndroidAppDataStream() { + return resourceCase_ == 4; + } + /** + * + * + *
+     * A snapshot of an AndroidAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + * + * @return The androidAppDataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream() { + if (resourceCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of an AndroidAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder + getAndroidAppDataStreamOrBuilder() { + if (resourceCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance(); + } + + public static final int IOS_APP_DATA_STREAM_FIELD_NUMBER = 5; + /** + * + * + *
+     * A snapshot of an IosAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + * + * @return Whether the iosAppDataStream field is set. + */ + @java.lang.Override + public boolean hasIosAppDataStream() { + return resourceCase_ == 5; + } + /** + * + * + *
+     * A snapshot of an IosAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + * + * @return The iosAppDataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream() { + if (resourceCase_ == 5) { + return (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of an IosAppDataStream resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder + getIosAppDataStreamOrBuilder() { + if (resourceCase_ == 5) { + return (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance(); + } + + public static final int FIREBASE_LINK_FIELD_NUMBER = 6; + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + * + * @return Whether the firebaseLink field is set. + */ + @java.lang.Override + public boolean hasFirebaseLink() { + return resourceCase_ == 6; + } + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + * + * @return The firebaseLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink() { + if (resourceCase_ == 6) { + return (com.google.analytics.admin.v1alpha.FirebaseLink) resource_; + } + return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a FirebaseLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() { + if (resourceCase_ == 6) { + return (com.google.analytics.admin.v1alpha.FirebaseLink) resource_; + } + return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); + } + + public static final int GOOGLE_ADS_LINK_FIELD_NUMBER = 7; + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + * + * @return Whether the googleAdsLink field is set. + */ + @java.lang.Override + public boolean hasGoogleAdsLink() { + return resourceCase_ == 7; + } + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + * + * @return The googleAdsLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink() { + if (resourceCase_ == 7) { + return (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_; + } + return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a GoogleAdsLink resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { + if (resourceCase_ == 7) { + return (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_; + } + return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (resourceCase_ == 1) { + output.writeMessage(1, (com.google.analytics.admin.v1alpha.Account) resource_); + } + if (resourceCase_ == 2) { + output.writeMessage(2, (com.google.analytics.admin.v1alpha.Property) resource_); + } + if (resourceCase_ == 3) { + output.writeMessage(3, (com.google.analytics.admin.v1alpha.WebDataStream) resource_); + } + if (resourceCase_ == 4) { + output.writeMessage(4, (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_); + } + if (resourceCase_ == 5) { + output.writeMessage(5, (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_); + } + if (resourceCase_ == 6) { + output.writeMessage(6, (com.google.analytics.admin.v1alpha.FirebaseLink) resource_); + } + if (resourceCase_ == 7) { + output.writeMessage(7, (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.analytics.admin.v1alpha.Account) resource_); + } + if (resourceCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, (com.google.analytics.admin.v1alpha.Property) resource_); + } + if (resourceCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, (com.google.analytics.admin.v1alpha.WebDataStream) resource_); + } + if (resourceCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_); + } + if (resourceCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_); + } + if (resourceCase_ == 6) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 6, (com.google.analytics.admin.v1alpha.FirebaseLink) resource_); + } + if (resourceCase_ == 7) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 7, (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + 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.ChangeHistoryChange.ChangeHistoryResource)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource other = + (com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) obj; + + if (!getResourceCase().equals(other.getResourceCase())) return false; + switch (resourceCase_) { + case 1: + if (!getAccount().equals(other.getAccount())) return false; + break; + case 2: + if (!getProperty().equals(other.getProperty())) return false; + break; + case 3: + if (!getWebDataStream().equals(other.getWebDataStream())) return false; + break; + case 4: + if (!getAndroidAppDataStream().equals(other.getAndroidAppDataStream())) return false; + break; + case 5: + if (!getIosAppDataStream().equals(other.getIosAppDataStream())) return false; + break; + case 6: + if (!getFirebaseLink().equals(other.getFirebaseLink())) return false; + break; + case 7: + if (!getGoogleAdsLink().equals(other.getGoogleAdsLink())) return false; + break; + case 0: + default: + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (resourceCase_) { + case 1: + hash = (37 * hash) + ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAccount().hashCode(); + break; + case 2: + hash = (37 * hash) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + break; + case 3: + hash = (37 * hash) + WEB_DATA_STREAM_FIELD_NUMBER; + hash = (53 * hash) + getWebDataStream().hashCode(); + break; + case 4: + hash = (37 * hash) + ANDROID_APP_DATA_STREAM_FIELD_NUMBER; + hash = (53 * hash) + getAndroidAppDataStream().hashCode(); + break; + case 5: + hash = (37 * hash) + IOS_APP_DATA_STREAM_FIELD_NUMBER; + hash = (53 * hash) + getIosAppDataStream().hashCode(); + break; + case 6: + hash = (37 * hash) + FIREBASE_LINK_FIELD_NUMBER; + hash = (53 * hash) + getFirebaseLink().hashCode(); + break; + case 7: + hash = (37 * hash) + GOOGLE_ADS_LINK_FIELD_NUMBER; + hash = (53 * hash) + getGoogleAdsLink().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + parseFrom( + 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.ChangeHistoryChange.ChangeHistoryResource + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + parseFrom( + com.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.ChangeHistoryChange.ChangeHistoryResource + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + 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.ChangeHistoryChange.ChangeHistoryResource + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + parseFrom( + java.io.InputStream 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.ChangeHistoryChange.ChangeHistoryResource + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + parseDelimitedFrom( + java.io.InputStream 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.ChangeHistoryChange.ChangeHistoryResource + 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.ChangeHistoryChange.ChangeHistoryResource + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ChangeHistoryChange.ChangeHistoryResource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 snapshot of a resource as before or after the result of a change in
+     * change history.
+     * 
+ * + * Protobuf type {@code + * google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.class, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.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(); + resourceCase_ = 0; + resource_ = 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_ChangeHistoryChange_ChangeHistoryResource_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource build() { + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + buildPartial() { + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource result = + new com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource(this); + if (resourceCase_ == 1) { + if (accountBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = accountBuilder_.build(); + } + } + if (resourceCase_ == 2) { + if (propertyBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = propertyBuilder_.build(); + } + } + if (resourceCase_ == 3) { + if (webDataStreamBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = webDataStreamBuilder_.build(); + } + } + if (resourceCase_ == 4) { + if (androidAppDataStreamBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = androidAppDataStreamBuilder_.build(); + } + } + if (resourceCase_ == 5) { + if (iosAppDataStreamBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = iosAppDataStreamBuilder_.build(); + } + } + if (resourceCase_ == 6) { + if (firebaseLinkBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = firebaseLinkBuilder_.build(); + } + } + if (resourceCase_ == 7) { + if (googleAdsLinkBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = googleAdsLinkBuilder_.build(); + } + } + result.resourceCase_ = resourceCase_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, + java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.ChangeHistoryChange.ChangeHistoryResource) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource other) { + if (other + == com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance()) return this; + switch (other.getResourceCase()) { + case ACCOUNT: + { + mergeAccount(other.getAccount()); + break; + } + case PROPERTY: + { + mergeProperty(other.getProperty()); + break; + } + case WEB_DATA_STREAM: + { + mergeWebDataStream(other.getWebDataStream()); + break; + } + case ANDROID_APP_DATA_STREAM: + { + mergeAndroidAppDataStream(other.getAndroidAppDataStream()); + break; + } + case IOS_APP_DATA_STREAM: + { + mergeIosAppDataStream(other.getIosAppDataStream()); + break; + } + case FIREBASE_LINK: + { + mergeFirebaseLink(other.getFirebaseLink()); + break; + } + case GOOGLE_ADS_LINK: + { + mergeGoogleAdsLink(other.getGoogleAdsLink()); + break; + } + case RESOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int resourceCase_ = 0; + private java.lang.Object resource_; + + public ResourceCase getResourceCase() { + return ResourceCase.forNumber(resourceCase_); + } + + public Builder clearResource() { + resourceCase_ = 0; + resource_ = null; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Account, + com.google.analytics.admin.v1alpha.Account.Builder, + com.google.analytics.admin.v1alpha.AccountOrBuilder> + accountBuilder_; + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return Whether the account field is set. + */ + @java.lang.Override + public boolean hasAccount() { + return resourceCase_ == 1; + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + * + * @return The account. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Account getAccount() { + if (accountBuilder_ == null) { + if (resourceCase_ == 1) { + return (com.google.analytics.admin.v1alpha.Account) resource_; + } + return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); + } else { + if (resourceCase_ == 1) { + return accountBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + public Builder setAccount(com.google.analytics.admin.v1alpha.Account value) { + if (accountBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + accountBuilder_.setMessage(value); + } + resourceCase_ = 1; + return this; + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + public Builder setAccount( + com.google.analytics.admin.v1alpha.Account.Builder builderForValue) { + if (accountBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + accountBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 1; + return this; + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + public Builder mergeAccount(com.google.analytics.admin.v1alpha.Account value) { + if (accountBuilder_ == null) { + if (resourceCase_ == 1 + && resource_ != com.google.analytics.admin.v1alpha.Account.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.Account.newBuilder( + (com.google.analytics.admin.v1alpha.Account) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 1) { + accountBuilder_.mergeFrom(value); + } + accountBuilder_.setMessage(value); + } + resourceCase_ = 1; + return this; + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + public Builder clearAccount() { + if (accountBuilder_ == null) { + if (resourceCase_ == 1) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 1) { + resourceCase_ = 0; + resource_ = null; + } + accountBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + public com.google.analytics.admin.v1alpha.Account.Builder getAccountBuilder() { + return getAccountFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AccountOrBuilder getAccountOrBuilder() { + if ((resourceCase_ == 1) && (accountBuilder_ != null)) { + return accountBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 1) { + return (com.google.analytics.admin.v1alpha.Account) resource_; + } + return com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an Account resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Account account = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Account, + com.google.analytics.admin.v1alpha.Account.Builder, + com.google.analytics.admin.v1alpha.AccountOrBuilder> + getAccountFieldBuilder() { + if (accountBuilder_ == null) { + if (!(resourceCase_ == 1)) { + resource_ = com.google.analytics.admin.v1alpha.Account.getDefaultInstance(); + } + accountBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Account, + com.google.analytics.admin.v1alpha.Account.Builder, + com.google.analytics.admin.v1alpha.AccountOrBuilder>( + (com.google.analytics.admin.v1alpha.Account) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 1; + onChanged(); + ; + return accountBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + propertyBuilder_; + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + * + * @return Whether the property field is set. + */ + @java.lang.Override + public boolean hasProperty() { + return resourceCase_ == 2; + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + * + * @return The property. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.Property getProperty() { + if (propertyBuilder_ == null) { + if (resourceCase_ == 2) { + return (com.google.analytics.admin.v1alpha.Property) resource_; + } + return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); + } else { + if (resourceCase_ == 2) { + return propertyBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + public Builder setProperty(com.google.analytics.admin.v1alpha.Property value) { + if (propertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + propertyBuilder_.setMessage(value); + } + resourceCase_ = 2; + return this; + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + public Builder setProperty( + com.google.analytics.admin.v1alpha.Property.Builder builderForValue) { + if (propertyBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + propertyBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 2; + return this; + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + public Builder mergeProperty(com.google.analytics.admin.v1alpha.Property value) { + if (propertyBuilder_ == null) { + if (resourceCase_ == 2 + && resource_ != com.google.analytics.admin.v1alpha.Property.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.Property.newBuilder( + (com.google.analytics.admin.v1alpha.Property) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 2) { + propertyBuilder_.mergeFrom(value); + } + propertyBuilder_.setMessage(value); + } + resourceCase_ = 2; + return this; + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + public Builder clearProperty() { + if (propertyBuilder_ == null) { + if (resourceCase_ == 2) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 2) { + resourceCase_ = 0; + resource_ = null; + } + propertyBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + public com.google.analytics.admin.v1alpha.Property.Builder getPropertyBuilder() { + return getPropertyFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.PropertyOrBuilder getPropertyOrBuilder() { + if ((resourceCase_ == 2) && (propertyBuilder_ != null)) { + return propertyBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 2) { + return (com.google.analytics.admin.v1alpha.Property) resource_; + } + return com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a Property resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.Property property = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder> + getPropertyFieldBuilder() { + if (propertyBuilder_ == null) { + if (!(resourceCase_ == 2)) { + resource_ = com.google.analytics.admin.v1alpha.Property.getDefaultInstance(); + } + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.Property, + com.google.analytics.admin.v1alpha.Property.Builder, + com.google.analytics.admin.v1alpha.PropertyOrBuilder>( + (com.google.analytics.admin.v1alpha.Property) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 2; + onChanged(); + ; + return propertyBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.WebDataStream, + com.google.analytics.admin.v1alpha.WebDataStream.Builder, + com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder> + webDataStreamBuilder_; + /** + * + * + *
+       * A snapshot of a WebDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + * + * @return Whether the webDataStream field is set. + */ + @java.lang.Override + public boolean hasWebDataStream() { + return resourceCase_ == 3; + } + /** + * + * + *
+       * A snapshot of a WebDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + * + * @return The webDataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream() { + if (webDataStreamBuilder_ == null) { + if (resourceCase_ == 3) { + return (com.google.analytics.admin.v1alpha.WebDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance(); + } else { + if (resourceCase_ == 3) { + return webDataStreamBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a WebDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + */ + public Builder setWebDataStream(com.google.analytics.admin.v1alpha.WebDataStream value) { + if (webDataStreamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + webDataStreamBuilder_.setMessage(value); + } + resourceCase_ = 3; + return this; + } + /** + * + * + *
+       * A snapshot of a WebDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + */ + public Builder setWebDataStream( + com.google.analytics.admin.v1alpha.WebDataStream.Builder builderForValue) { + if (webDataStreamBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + webDataStreamBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 3; + return this; + } + /** + * + * + *
+       * A snapshot of a WebDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + */ + public Builder mergeWebDataStream(com.google.analytics.admin.v1alpha.WebDataStream value) { + if (webDataStreamBuilder_ == null) { + if (resourceCase_ == 3 + && resource_ + != com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.WebDataStream.newBuilder( + (com.google.analytics.admin.v1alpha.WebDataStream) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 3) { + webDataStreamBuilder_.mergeFrom(value); + } + webDataStreamBuilder_.setMessage(value); + } + resourceCase_ = 3; + return this; + } + /** + * + * + *
+       * A snapshot of a WebDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + */ + public Builder clearWebDataStream() { + if (webDataStreamBuilder_ == null) { + if (resourceCase_ == 3) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 3) { + resourceCase_ = 0; + resource_ = null; + } + webDataStreamBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a WebDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + */ + public com.google.analytics.admin.v1alpha.WebDataStream.Builder getWebDataStreamBuilder() { + return getWebDataStreamFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a WebDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder getWebDataStreamOrBuilder() { + if ((resourceCase_ == 3) && (webDataStreamBuilder_ != null)) { + return webDataStreamBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 3) { + return (com.google.analytics.admin.v1alpha.WebDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a WebDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.WebDataStream web_data_stream = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.WebDataStream, + com.google.analytics.admin.v1alpha.WebDataStream.Builder, + com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder> + getWebDataStreamFieldBuilder() { + if (webDataStreamBuilder_ == null) { + if (!(resourceCase_ == 3)) { + resource_ = com.google.analytics.admin.v1alpha.WebDataStream.getDefaultInstance(); + } + webDataStreamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.WebDataStream, + com.google.analytics.admin.v1alpha.WebDataStream.Builder, + com.google.analytics.admin.v1alpha.WebDataStreamOrBuilder>( + (com.google.analytics.admin.v1alpha.WebDataStream) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 3; + onChanged(); + ; + return webDataStreamBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AndroidAppDataStream, + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, + com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder> + androidAppDataStreamBuilder_; + /** + * + * + *
+       * A snapshot of an AndroidAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + * + * @return Whether the androidAppDataStream field is set. + */ + @java.lang.Override + public boolean hasAndroidAppDataStream() { + return resourceCase_ == 4; + } + /** + * + * + *
+       * A snapshot of an AndroidAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + * + * @return The androidAppDataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream() { + if (androidAppDataStreamBuilder_ == null) { + if (resourceCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance(); + } else { + if (resourceCase_ == 4) { + return androidAppDataStreamBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an AndroidAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + */ + public Builder setAndroidAppDataStream( + com.google.analytics.admin.v1alpha.AndroidAppDataStream value) { + if (androidAppDataStreamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + androidAppDataStreamBuilder_.setMessage(value); + } + resourceCase_ = 4; + return this; + } + /** + * + * + *
+       * A snapshot of an AndroidAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + */ + public Builder setAndroidAppDataStream( + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder builderForValue) { + if (androidAppDataStreamBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + androidAppDataStreamBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 4; + return this; + } + /** + * + * + *
+       * A snapshot of an AndroidAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + */ + public Builder mergeAndroidAppDataStream( + com.google.analytics.admin.v1alpha.AndroidAppDataStream value) { + if (androidAppDataStreamBuilder_ == null) { + if (resourceCase_ == 4 + && resource_ + != com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.AndroidAppDataStream.newBuilder( + (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 4) { + androidAppDataStreamBuilder_.mergeFrom(value); + } + androidAppDataStreamBuilder_.setMessage(value); + } + resourceCase_ = 4; + return this; + } + /** + * + * + *
+       * A snapshot of an AndroidAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + */ + public Builder clearAndroidAppDataStream() { + if (androidAppDataStreamBuilder_ == null) { + if (resourceCase_ == 4) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 4) { + resourceCase_ = 0; + resource_ = null; + } + androidAppDataStreamBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of an AndroidAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + */ + public com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder + getAndroidAppDataStreamBuilder() { + return getAndroidAppDataStreamFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of an AndroidAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder + getAndroidAppDataStreamOrBuilder() { + if ((resourceCase_ == 4) && (androidAppDataStreamBuilder_ != null)) { + return androidAppDataStreamBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 4) { + return (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an AndroidAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AndroidAppDataStream, + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, + com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder> + getAndroidAppDataStreamFieldBuilder() { + if (androidAppDataStreamBuilder_ == null) { + if (!(resourceCase_ == 4)) { + resource_ = + com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance(); + } + androidAppDataStreamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.AndroidAppDataStream, + com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, + com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder>( + (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 4; + onChanged(); + ; + return androidAppDataStreamBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.IosAppDataStream, + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, + com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder> + iosAppDataStreamBuilder_; + /** + * + * + *
+       * A snapshot of an IosAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + * + * @return Whether the iosAppDataStream field is set. + */ + @java.lang.Override + public boolean hasIosAppDataStream() { + return resourceCase_ == 5; + } + /** + * + * + *
+       * A snapshot of an IosAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + * + * @return The iosAppDataStream. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream() { + if (iosAppDataStreamBuilder_ == null) { + if (resourceCase_ == 5) { + return (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance(); + } else { + if (resourceCase_ == 5) { + return iosAppDataStreamBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an IosAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + */ + public Builder setIosAppDataStream( + com.google.analytics.admin.v1alpha.IosAppDataStream value) { + if (iosAppDataStreamBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + iosAppDataStreamBuilder_.setMessage(value); + } + resourceCase_ = 5; + return this; + } + /** + * + * + *
+       * A snapshot of an IosAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + */ + public Builder setIosAppDataStream( + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder builderForValue) { + if (iosAppDataStreamBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + iosAppDataStreamBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 5; + return this; + } + /** + * + * + *
+       * A snapshot of an IosAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + */ + public Builder mergeIosAppDataStream( + com.google.analytics.admin.v1alpha.IosAppDataStream value) { + if (iosAppDataStreamBuilder_ == null) { + if (resourceCase_ == 5 + && resource_ + != com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.IosAppDataStream.newBuilder( + (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 5) { + iosAppDataStreamBuilder_.mergeFrom(value); + } + iosAppDataStreamBuilder_.setMessage(value); + } + resourceCase_ = 5; + return this; + } + /** + * + * + *
+       * A snapshot of an IosAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + */ + public Builder clearIosAppDataStream() { + if (iosAppDataStreamBuilder_ == null) { + if (resourceCase_ == 5) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 5) { + resourceCase_ = 0; + resource_ = null; + } + iosAppDataStreamBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of an IosAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + */ + public com.google.analytics.admin.v1alpha.IosAppDataStream.Builder + getIosAppDataStreamBuilder() { + return getIosAppDataStreamFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of an IosAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder + getIosAppDataStreamOrBuilder() { + if ((resourceCase_ == 5) && (iosAppDataStreamBuilder_ != null)) { + return iosAppDataStreamBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 5) { + return (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_; + } + return com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of an IosAppDataStream resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 5; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.IosAppDataStream, + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, + com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder> + getIosAppDataStreamFieldBuilder() { + if (iosAppDataStreamBuilder_ == null) { + if (!(resourceCase_ == 5)) { + resource_ = com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance(); + } + iosAppDataStreamBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.IosAppDataStream, + com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, + com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder>( + (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 5; + onChanged(); + ; + return iosAppDataStreamBuilder_; + } + + 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_; + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + * + * @return Whether the firebaseLink field is set. + */ + @java.lang.Override + public boolean hasFirebaseLink() { + return resourceCase_ == 6; + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + * + * @return The firebaseLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.FirebaseLink getFirebaseLink() { + if (firebaseLinkBuilder_ == null) { + if (resourceCase_ == 6) { + return (com.google.analytics.admin.v1alpha.FirebaseLink) resource_; + } + return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); + } else { + if (resourceCase_ == 6) { + return firebaseLinkBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + public Builder setFirebaseLink(com.google.analytics.admin.v1alpha.FirebaseLink value) { + if (firebaseLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + firebaseLinkBuilder_.setMessage(value); + } + resourceCase_ = 6; + return this; + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + public Builder setFirebaseLink( + com.google.analytics.admin.v1alpha.FirebaseLink.Builder builderForValue) { + if (firebaseLinkBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + firebaseLinkBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 6; + return this; + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + public Builder mergeFirebaseLink(com.google.analytics.admin.v1alpha.FirebaseLink value) { + if (firebaseLinkBuilder_ == null) { + if (resourceCase_ == 6 + && resource_ + != com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.FirebaseLink.newBuilder( + (com.google.analytics.admin.v1alpha.FirebaseLink) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 6) { + firebaseLinkBuilder_.mergeFrom(value); + } + firebaseLinkBuilder_.setMessage(value); + } + resourceCase_ = 6; + return this; + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + public Builder clearFirebaseLink() { + if (firebaseLinkBuilder_ == null) { + if (resourceCase_ == 6) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 6) { + resourceCase_ = 0; + resource_ = null; + } + firebaseLinkBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + public com.google.analytics.admin.v1alpha.FirebaseLink.Builder getFirebaseLinkBuilder() { + return getFirebaseLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder getFirebaseLinkOrBuilder() { + if ((resourceCase_ == 6) && (firebaseLinkBuilder_ != null)) { + return firebaseLinkBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 6) { + return (com.google.analytics.admin.v1alpha.FirebaseLink) resource_; + } + return com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a FirebaseLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.FirebaseLink firebase_link = 6; + */ + 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) { + if (!(resourceCase_ == 6)) { + resource_ = com.google.analytics.admin.v1alpha.FirebaseLink.getDefaultInstance(); + } + firebaseLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.FirebaseLink, + com.google.analytics.admin.v1alpha.FirebaseLink.Builder, + com.google.analytics.admin.v1alpha.FirebaseLinkOrBuilder>( + (com.google.analytics.admin.v1alpha.FirebaseLink) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 6; + onChanged(); + ; + return firebaseLinkBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleAdsLink, + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder> + googleAdsLinkBuilder_; + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + * + * @return Whether the googleAdsLink field is set. + */ + @java.lang.Override + public boolean hasGoogleAdsLink() { + return resourceCase_ == 7; + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + * + * @return The googleAdsLink. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleAdsLink getGoogleAdsLink() { + if (googleAdsLinkBuilder_ == null) { + if (resourceCase_ == 7) { + return (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_; + } + return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); + } else { + if (resourceCase_ == 7) { + return googleAdsLinkBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + public Builder setGoogleAdsLink(com.google.analytics.admin.v1alpha.GoogleAdsLink value) { + if (googleAdsLinkBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + googleAdsLinkBuilder_.setMessage(value); + } + resourceCase_ = 7; + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + public Builder setGoogleAdsLink( + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder builderForValue) { + if (googleAdsLinkBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + googleAdsLinkBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 7; + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + public Builder mergeGoogleAdsLink(com.google.analytics.admin.v1alpha.GoogleAdsLink value) { + if (googleAdsLinkBuilder_ == null) { + if (resourceCase_ == 7 + && resource_ + != com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.GoogleAdsLink.newBuilder( + (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 7) { + googleAdsLinkBuilder_.mergeFrom(value); + } + googleAdsLinkBuilder_.setMessage(value); + } + resourceCase_ = 7; + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + public Builder clearGoogleAdsLink() { + if (googleAdsLinkBuilder_ == null) { + if (resourceCase_ == 7) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 7) { + resourceCase_ = 0; + resource_ = null; + } + googleAdsLinkBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + public com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder getGoogleAdsLinkBuilder() { + return getGoogleAdsLinkFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder() { + if ((resourceCase_ == 7) && (googleAdsLinkBuilder_ != null)) { + return googleAdsLinkBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 7) { + return (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_; + } + return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a GoogleAdsLink resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleAdsLink google_ads_link = 7; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleAdsLink, + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder> + getGoogleAdsLinkFieldBuilder() { + if (googleAdsLinkBuilder_ == null) { + if (!(resourceCase_ == 7)) { + resource_ = com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); + } + googleAdsLinkBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleAdsLink, + com.google.analytics.admin.v1alpha.GoogleAdsLink.Builder, + com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder>( + (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 7; + onChanged(); + ; + return googleAdsLinkBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.ChangeHistoryChange.ChangeHistoryResource) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) + private static final com.google.analytics.admin.v1alpha.ChangeHistoryChange + .ChangeHistoryResource + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource(); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChangeHistoryResource parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChangeHistoryResource(input, extensionRegistry); + } + }; + + public static com.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.ChangeHistoryChange.ChangeHistoryResource + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int RESOURCE_FIELD_NUMBER = 1; + private volatile java.lang.Object resource_; + /** + * + * + *
+   * Resource name of the resource whose changes are described by this entry.
+   * 
+ * + * string resource = 1; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } + } + /** + * + * + *
+   * Resource name of the resource whose changes are described by this entry.
+   * 
+ * + * string resource = 1; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACTION_FIELD_NUMBER = 2; + private int action_; + /** + * + * + *
+   * The type of action that changed this resource.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + /** + * + * + *
+   * The type of action that changed this resource.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @return The action. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ActionType getAction() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.ActionType result = + com.google.analytics.admin.v1alpha.ActionType.valueOf(action_); + return result == null ? com.google.analytics.admin.v1alpha.ActionType.UNRECOGNIZED : result; + } + + public static final int RESOURCE_BEFORE_CHANGE_FIELD_NUMBER = 3; + private com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + resourceBeforeChange_; + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return Whether the resourceBeforeChange field is set. + */ + @java.lang.Override + public boolean hasResourceBeforeChange() { + return resourceBeforeChange_ != null; + } + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return The resourceBeforeChange. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getResourceBeforeChange() { + return resourceBeforeChange_ == null + ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceBeforeChange_; + } + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceBeforeChangeOrBuilder() { + return getResourceBeforeChange(); + } + + public static final int RESOURCE_AFTER_CHANGE_FIELD_NUMBER = 4; + private com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + resourceAfterChange_; + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return Whether the resourceAfterChange field is set. + */ + @java.lang.Override + public boolean hasResourceAfterChange() { + return resourceAfterChange_ != null; + } + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return The resourceAfterChange. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getResourceAfterChange() { + return resourceAfterChange_ == null + ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceAfterChange_; + } + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceAfterChangeOrBuilder() { + return getResourceAfterChange(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getResourceBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, resource_); + } + if (action_ + != com.google.analytics.admin.v1alpha.ActionType.ACTION_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(2, action_); + } + if (resourceBeforeChange_ != null) { + output.writeMessage(3, getResourceBeforeChange()); + } + if (resourceAfterChange_ != null) { + output.writeMessage(4, getResourceAfterChange()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getResourceBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, resource_); + } + if (action_ + != com.google.analytics.admin.v1alpha.ActionType.ACTION_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, action_); + } + if (resourceBeforeChange_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResourceBeforeChange()); + } + if (resourceAfterChange_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getResourceAfterChange()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + 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.ChangeHistoryChange)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ChangeHistoryChange other = + (com.google.analytics.admin.v1alpha.ChangeHistoryChange) obj; + + if (!getResource().equals(other.getResource())) return false; + if (action_ != other.action_) return false; + if (hasResourceBeforeChange() != other.hasResourceBeforeChange()) return false; + if (hasResourceBeforeChange()) { + if (!getResourceBeforeChange().equals(other.getResourceBeforeChange())) return false; + } + if (hasResourceAfterChange() != other.hasResourceAfterChange()) return false; + if (hasResourceAfterChange()) { + if (!getResourceAfterChange().equals(other.getResourceAfterChange())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_; + if (hasResourceBeforeChange()) { + hash = (37 * hash) + RESOURCE_BEFORE_CHANGE_FIELD_NUMBER; + hash = (53 * hash) + getResourceBeforeChange().hashCode(); + } + if (hasResourceAfterChange()) { + hash = (37 * hash) + RESOURCE_AFTER_CHANGE_FIELD_NUMBER; + hash = (53 * hash) + getResourceAfterChange().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom( + 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.ChangeHistoryChange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom( + com.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.ChangeHistoryChange parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange 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.ChangeHistoryChange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseFrom( + java.io.InputStream 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.ChangeHistoryChange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange parseDelimitedFrom( + java.io.InputStream 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.ChangeHistoryChange 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.ChangeHistoryChange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ChangeHistoryChange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 description of a change to a single Google Analytics resource.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryChange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChangeHistoryChange) + com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.class, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ChangeHistoryChange.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(); + resource_ = ""; + + action_ = 0; + + if (resourceBeforeChangeBuilder_ == null) { + resourceBeforeChange_ = null; + } else { + resourceBeforeChange_ = null; + resourceBeforeChangeBuilder_ = null; + } + if (resourceAfterChangeBuilder_ == null) { + resourceAfterChange_ = null; + } else { + resourceAfterChange_ = null; + resourceAfterChangeBuilder_ = 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_ChangeHistoryChange_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ChangeHistoryChange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange build() { + com.google.analytics.admin.v1alpha.ChangeHistoryChange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange buildPartial() { + com.google.analytics.admin.v1alpha.ChangeHistoryChange result = + new com.google.analytics.admin.v1alpha.ChangeHistoryChange(this); + result.resource_ = resource_; + result.action_ = action_; + if (resourceBeforeChangeBuilder_ == null) { + result.resourceBeforeChange_ = resourceBeforeChange_; + } else { + result.resourceBeforeChange_ = resourceBeforeChangeBuilder_.build(); + } + if (resourceAfterChangeBuilder_ == null) { + result.resourceAfterChange_ = resourceAfterChange_; + } else { + result.resourceAfterChange_ = resourceAfterChangeBuilder_.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.ChangeHistoryChange) { + return mergeFrom((com.google.analytics.admin.v1alpha.ChangeHistoryChange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ChangeHistoryChange other) { + if (other == com.google.analytics.admin.v1alpha.ChangeHistoryChange.getDefaultInstance()) + return this; + if (!other.getResource().isEmpty()) { + resource_ = other.resource_; + onChanged(); + } + if (other.action_ != 0) { + setActionValue(other.getActionValue()); + } + if (other.hasResourceBeforeChange()) { + mergeResourceBeforeChange(other.getResourceBeforeChange()); + } + if (other.hasResourceAfterChange()) { + mergeResourceAfterChange(other.getResourceAfterChange()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.ChangeHistoryChange parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ChangeHistoryChange) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object resource_ = ""; + /** + * + * + *
+     * Resource name of the resource whose changes are described by this entry.
+     * 
+ * + * string resource = 1; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = resource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + resource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Resource name of the resource whose changes are described by this entry.
+     * 
+ * + * string resource = 1; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = resource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + resource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Resource name of the resource whose changes are described by this entry.
+     * 
+ * + * string resource = 1; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + resource_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of the resource whose changes are described by this entry.
+     * 
+ * + * string resource = 1; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + + resource_ = getDefaultInstance().getResource(); + onChanged(); + return this; + } + /** + * + * + *
+     * Resource name of the resource whose changes are described by this entry.
+     * 
+ * + * string resource = 1; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + resource_ = value; + onChanged(); + return this; + } + + private int action_ = 0; + /** + * + * + *
+     * The type of action that changed this resource.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @return The enum numeric value on the wire for action. + */ + @java.lang.Override + public int getActionValue() { + return action_; + } + /** + * + * + *
+     * The type of action that changed this resource.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @param value The enum numeric value on the wire for action to set. + * @return This builder for chaining. + */ + public Builder setActionValue(int value) { + + action_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The type of action that changed this resource.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @return The action. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ActionType getAction() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.ActionType result = + com.google.analytics.admin.v1alpha.ActionType.valueOf(action_); + return result == null ? com.google.analytics.admin.v1alpha.ActionType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The type of action that changed this resource.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(com.google.analytics.admin.v1alpha.ActionType value) { + if (value == null) { + throw new NullPointerException(); + } + + action_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The type of action that changed this resource.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @return This builder for chaining. + */ + public Builder clearAction() { + + action_ = 0; + onChanged(); + return this; + } + + private com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + resourceBeforeChange_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> + resourceBeforeChangeBuilder_; + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return Whether the resourceBeforeChange field is set. + */ + public boolean hasResourceBeforeChange() { + return resourceBeforeChangeBuilder_ != null || resourceBeforeChange_ != null; + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return The resourceBeforeChange. + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getResourceBeforeChange() { + if (resourceBeforeChangeBuilder_ == null) { + return resourceBeforeChange_ == null + ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceBeforeChange_; + } else { + return resourceBeforeChangeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public Builder setResourceBeforeChange( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource value) { + if (resourceBeforeChangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceBeforeChange_ = value; + onChanged(); + } else { + resourceBeforeChangeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public Builder setResourceBeforeChange( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + builderForValue) { + if (resourceBeforeChangeBuilder_ == null) { + resourceBeforeChange_ = builderForValue.build(); + onChanged(); + } else { + resourceBeforeChangeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public Builder mergeResourceBeforeChange( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource value) { + if (resourceBeforeChangeBuilder_ == null) { + if (resourceBeforeChange_ != null) { + resourceBeforeChange_ = + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .newBuilder(resourceBeforeChange_) + .mergeFrom(value) + .buildPartial(); + } else { + resourceBeforeChange_ = value; + } + onChanged(); + } else { + resourceBeforeChangeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public Builder clearResourceBeforeChange() { + if (resourceBeforeChangeBuilder_ == null) { + resourceBeforeChange_ = null; + onChanged(); + } else { + resourceBeforeChange_ = null; + resourceBeforeChangeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + getResourceBeforeChangeBuilder() { + + onChanged(); + return getResourceBeforeChangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceBeforeChangeOrBuilder() { + if (resourceBeforeChangeBuilder_ != null) { + return resourceBeforeChangeBuilder_.getMessageOrBuilder(); + } else { + return resourceBeforeChange_ == null + ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceBeforeChange_; + } + } + /** + * + * + *
+     * Resource contents from before the change was made. If this resource was
+     * created in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> + getResourceBeforeChangeFieldBuilder() { + if (resourceBeforeChangeBuilder_ == null) { + resourceBeforeChangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChange + .ChangeHistoryResourceOrBuilder>( + getResourceBeforeChange(), getParentForChildren(), isClean()); + resourceBeforeChange_ = null; + } + return resourceBeforeChangeBuilder_; + } + + private com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + resourceAfterChange_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> + resourceAfterChangeBuilder_; + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return Whether the resourceAfterChange field is set. + */ + public boolean hasResourceAfterChange() { + return resourceAfterChangeBuilder_ != null || resourceAfterChange_ != null; + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return The resourceAfterChange. + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getResourceAfterChange() { + if (resourceAfterChangeBuilder_ == null) { + return resourceAfterChange_ == null + ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceAfterChange_; + } else { + return resourceAfterChangeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public Builder setResourceAfterChange( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource value) { + if (resourceAfterChangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resourceAfterChange_ = value; + onChanged(); + } else { + resourceAfterChangeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public Builder setResourceAfterChange( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + builderForValue) { + if (resourceAfterChangeBuilder_ == null) { + resourceAfterChange_ = builderForValue.build(); + onChanged(); + } else { + resourceAfterChangeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public Builder mergeResourceAfterChange( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource value) { + if (resourceAfterChangeBuilder_ == null) { + if (resourceAfterChange_ != null) { + resourceAfterChange_ = + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .newBuilder(resourceAfterChange_) + .mergeFrom(value) + .buildPartial(); + } else { + resourceAfterChange_ = value; + } + onChanged(); + } else { + resourceAfterChangeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public Builder clearResourceAfterChange() { + if (resourceAfterChangeBuilder_ == null) { + resourceAfterChange_ = null; + onChanged(); + } else { + resourceAfterChange_ = null; + resourceAfterChangeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder + getResourceAfterChangeBuilder() { + + onChanged(); + return getResourceAfterChangeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceAfterChangeOrBuilder() { + if (resourceAfterChangeBuilder_ != null) { + return resourceAfterChangeBuilder_.getMessageOrBuilder(); + } else { + return resourceAfterChange_ == null + ? com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .getDefaultInstance() + : resourceAfterChange_; + } + } + /** + * + * + *
+     * Resource contents from after the change was made. If this resource was
+     * deleted in this change, this field will be missing.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder> + getResourceAfterChangeFieldBuilder() { + if (resourceAfterChangeBuilder_ == null) { + resourceAfterChangeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + .Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChange + .ChangeHistoryResourceOrBuilder>( + getResourceAfterChange(), getParentForChildren(), isClean()); + resourceAfterChange_ = null; + } + return resourceAfterChangeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.ChangeHistoryChange) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChangeHistoryChange) + private static final com.google.analytics.admin.v1alpha.ChangeHistoryChange DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ChangeHistoryChange(); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryChange getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChangeHistoryChange parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChangeHistoryChange(input, extensionRegistry); + } + }; + + public static com.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.ChangeHistoryChange getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChangeOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChangeOrBuilder.java new file mode 100644 index 00000000..bb3c0817 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChangeOrBuilder.java @@ -0,0 +1,167 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 ChangeHistoryChangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChangeHistoryChange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Resource name of the resource whose changes are described by this entry.
+   * 
+ * + * string resource = 1; + * + * @return The resource. + */ + java.lang.String getResource(); + /** + * + * + *
+   * Resource name of the resource whose changes are described by this entry.
+   * 
+ * + * string resource = 1; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); + + /** + * + * + *
+   * The type of action that changed this resource.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @return The enum numeric value on the wire for action. + */ + int getActionValue(); + /** + * + * + *
+   * The type of action that changed this resource.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActionType action = 2; + * + * @return The action. + */ + com.google.analytics.admin.v1alpha.ActionType getAction(); + + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return Whether the resourceBeforeChange field is set. + */ + boolean hasResourceBeforeChange(); + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + * + * @return The resourceBeforeChange. + */ + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getResourceBeforeChange(); + /** + * + * + *
+   * Resource contents from before the change was made. If this resource was
+   * created in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_before_change = 3; + * + */ + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceBeforeChangeOrBuilder(); + + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return Whether the resourceAfterChange field is set. + */ + boolean hasResourceAfterChange(); + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + * + * @return The resourceAfterChange. + */ + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource + getResourceAfterChange(); + /** + * + * + *
+   * Resource contents from after the change was made. If this resource was
+   * deleted in this change, this field will be missing.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource resource_after_change = 4; + * + */ + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResourceOrBuilder + getResourceAfterChangeOrBuilder(); +} 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 new file mode 100644 index 00000000..f8ba7c9e --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java @@ -0,0 +1,1883 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 set of changes within a Google Analytics account or its child properties
+ * that resulted from the same cause. Common causes would be updates made in the
+ * Google Analytics UI, changes from customer support, or automatic Google
+ * Analytics system changes.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryEvent} + */ +public final class ChangeHistoryEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ChangeHistoryEvent) + ChangeHistoryEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use ChangeHistoryEvent.newBuilder() to construct. + private ChangeHistoryEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ChangeHistoryEvent() { + id_ = ""; + actorType_ = 0; + userActorEmail_ = ""; + changes_ = java.util.Collections.emptyList(); + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ChangeHistoryEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ChangeHistoryEvent( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + id_ = s; + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (changeTime_ != null) { + subBuilder = changeTime_.toBuilder(); + } + changeTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(changeTime_); + changeTime_ = subBuilder.buildPartial(); + } + + break; + } + case 24: + { + int rawValue = input.readEnum(); + + actorType_ = rawValue; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + userActorEmail_ = s; + break; + } + case 40: + { + changesFiltered_ = input.readBool(); + break; + } + case 50: + { + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + changes_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.ChangeHistoryChange>(); + mutable_bitField0_ |= 0x00000001; + } + changes_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.parser(), + extensionRegistry)); + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + changes_ = java.util.Collections.unmodifiableList(changes_); + } + 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_ChangeHistoryEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.class, + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder.class); + } + + public static final int ID_FIELD_NUMBER = 1; + private volatile java.lang.Object id_; + /** + * + * + *
+   * ID of this change history event. This ID is unique across Google Analytics.
+   * 
+ * + * string id = 1; + * + * @return The id. + */ + @java.lang.Override + public java.lang.String getId() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } + } + /** + * + * + *
+   * ID of this change history event. This ID is unique across Google Analytics.
+   * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + @java.lang.Override + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHANGE_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp changeTime_; + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return Whether the changeTime field is set. + */ + @java.lang.Override + public boolean hasChangeTime() { + return changeTime_ != null; + } + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return The changeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getChangeTime() { + return changeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : changeTime_; + } + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getChangeTimeOrBuilder() { + return getChangeTime(); + } + + public static final int ACTOR_TYPE_FIELD_NUMBER = 3; + private int actorType_; + /** + * + * + *
+   * The type of actor that made this change.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @return The enum numeric value on the wire for actorType. + */ + @java.lang.Override + public int getActorTypeValue() { + return actorType_; + } + /** + * + * + *
+   * The type of actor that made this change.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @return The actorType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ActorType getActorType() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.ActorType result = + com.google.analytics.admin.v1alpha.ActorType.valueOf(actorType_); + return result == null ? com.google.analytics.admin.v1alpha.ActorType.UNRECOGNIZED : result; + } + + public static final int USER_ACTOR_EMAIL_FIELD_NUMBER = 4; + private volatile java.lang.Object userActorEmail_; + /** + * + * + *
+   * Email address of the Google account that made the change. This will be a
+   * valid email address if the actor field is set to USER, and empty otherwise.
+   * Google accounts that have been deleted will cause an error.
+   * 
+ * + * string user_actor_email = 4; + * + * @return The userActorEmail. + */ + @java.lang.Override + public java.lang.String getUserActorEmail() { + java.lang.Object ref = userActorEmail_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userActorEmail_ = s; + return s; + } + } + /** + * + * + *
+   * Email address of the Google account that made the change. This will be a
+   * valid email address if the actor field is set to USER, and empty otherwise.
+   * Google accounts that have been deleted will cause an error.
+   * 
+ * + * string user_actor_email = 4; + * + * @return The bytes for userActorEmail. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUserActorEmailBytes() { + java.lang.Object ref = userActorEmail_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userActorEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CHANGES_FILTERED_FIELD_NUMBER = 5; + private boolean changesFiltered_; + /** + * + * + *
+   * If true, then the list of changes returned was filtered, and does not
+   * represent all changes that occurred in this event.
+   * 
+ * + * bool changes_filtered = 5; + * + * @return The changesFiltered. + */ + @java.lang.Override + public boolean getChangesFiltered() { + return changesFiltered_; + } + + public static final int CHANGES_FIELD_NUMBER = 6; + private java.util.List changes_; + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + @java.lang.Override + public java.util.List getChangesList() { + return changes_; + } + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + @java.lang.Override + public java.util.List + getChangesOrBuilderList() { + return changes_; + } + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + @java.lang.Override + public int getChangesCount() { + return changes_.size(); + } + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChange getChanges(int index) { + return changes_.get(index); + } + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder getChangesOrBuilder( + int index) { + return changes_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getIdBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, id_); + } + if (changeTime_ != null) { + output.writeMessage(2, getChangeTime()); + } + if (actorType_ + != com.google.analytics.admin.v1alpha.ActorType.ACTOR_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(3, actorType_); + } + if (!getUserActorEmailBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, userActorEmail_); + } + if (changesFiltered_ != false) { + output.writeBool(5, changesFiltered_); + } + for (int i = 0; i < changes_.size(); i++) { + output.writeMessage(6, changes_.get(i)); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getIdBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, id_); + } + if (changeTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getChangeTime()); + } + if (actorType_ + != com.google.analytics.admin.v1alpha.ActorType.ACTOR_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, actorType_); + } + if (!getUserActorEmailBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, userActorEmail_); + } + if (changesFiltered_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, changesFiltered_); + } + for (int i = 0; i < changes_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, changes_.get(i)); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.ChangeHistoryEvent)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ChangeHistoryEvent other = + (com.google.analytics.admin.v1alpha.ChangeHistoryEvent) obj; + + if (!getId().equals(other.getId())) return false; + if (hasChangeTime() != other.hasChangeTime()) return false; + if (hasChangeTime()) { + if (!getChangeTime().equals(other.getChangeTime())) return false; + } + if (actorType_ != other.actorType_) return false; + if (!getUserActorEmail().equals(other.getUserActorEmail())) return false; + if (getChangesFiltered() != other.getChangesFiltered()) return false; + if (!getChangesList().equals(other.getChangesList())) return false; + if (!unknownFields.equals(other.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) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId().hashCode(); + if (hasChangeTime()) { + hash = (37 * hash) + CHANGE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getChangeTime().hashCode(); + } + hash = (37 * hash) + ACTOR_TYPE_FIELD_NUMBER; + hash = (53 * hash) + actorType_; + hash = (37 * hash) + USER_ACTOR_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getUserActorEmail().hashCode(); + hash = (37 * hash) + CHANGES_FILTERED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getChangesFiltered()); + if (getChangesCount() > 0) { + hash = (37 * hash) + CHANGES_FIELD_NUMBER; + hash = (53 * hash) + getChangesList().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom( + 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.ChangeHistoryEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom( + com.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.ChangeHistoryEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent 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.ChangeHistoryEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseFrom( + java.io.InputStream 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.ChangeHistoryEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent parseDelimitedFrom( + java.io.InputStream 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.ChangeHistoryEvent 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.ChangeHistoryEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ChangeHistoryEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * A set of changes within a Google Analytics account or its child properties
+   * that resulted from the same cause. Common causes would be updates made in the
+   * Google Analytics UI, changes from customer support, or automatic Google
+   * Analytics system changes.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ChangeHistoryEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ChangeHistoryEvent) + com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.class, + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ChangeHistoryEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getChangesFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + id_ = ""; + + if (changeTimeBuilder_ == null) { + changeTime_ = null; + } else { + changeTime_ = null; + changeTimeBuilder_ = null; + } + actorType_ = 0; + + userActorEmail_ = ""; + + changesFiltered_ = false; + + if (changesBuilder_ == null) { + changes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + changesBuilder_.clear(); + } + 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_ChangeHistoryEvent_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ChangeHistoryEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent build() { + com.google.analytics.admin.v1alpha.ChangeHistoryEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent buildPartial() { + com.google.analytics.admin.v1alpha.ChangeHistoryEvent result = + new com.google.analytics.admin.v1alpha.ChangeHistoryEvent(this); + int from_bitField0_ = bitField0_; + result.id_ = id_; + if (changeTimeBuilder_ == null) { + result.changeTime_ = changeTime_; + } else { + result.changeTime_ = changeTimeBuilder_.build(); + } + result.actorType_ = actorType_; + result.userActorEmail_ = userActorEmail_; + result.changesFiltered_ = changesFiltered_; + if (changesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + changes_ = java.util.Collections.unmodifiableList(changes_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.changes_ = changes_; + } else { + result.changes_ = changesBuilder_.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.ChangeHistoryEvent) { + return mergeFrom((com.google.analytics.admin.v1alpha.ChangeHistoryEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ChangeHistoryEvent other) { + if (other == com.google.analytics.admin.v1alpha.ChangeHistoryEvent.getDefaultInstance()) + return this; + if (!other.getId().isEmpty()) { + id_ = other.id_; + onChanged(); + } + if (other.hasChangeTime()) { + mergeChangeTime(other.getChangeTime()); + } + if (other.actorType_ != 0) { + setActorTypeValue(other.getActorTypeValue()); + } + if (!other.getUserActorEmail().isEmpty()) { + userActorEmail_ = other.userActorEmail_; + onChanged(); + } + if (other.getChangesFiltered() != false) { + setChangesFiltered(other.getChangesFiltered()); + } + if (changesBuilder_ == null) { + if (!other.changes_.isEmpty()) { + if (changes_.isEmpty()) { + changes_ = other.changes_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureChangesIsMutable(); + changes_.addAll(other.changes_); + } + onChanged(); + } + } else { + if (!other.changes_.isEmpty()) { + if (changesBuilder_.isEmpty()) { + changesBuilder_.dispose(); + changesBuilder_ = null; + changes_ = other.changes_; + bitField0_ = (bitField0_ & ~0x00000001); + changesBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChangesFieldBuilder() + : null; + } else { + changesBuilder_.addAllMessages(other.changes_); + } + } + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.ChangeHistoryEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ChangeHistoryEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object id_ = ""; + /** + * + * + *
+     * ID of this change history event. This ID is unique across Google Analytics.
+     * 
+ * + * string id = 1; + * + * @return The id. + */ + public java.lang.String getId() { + java.lang.Object ref = id_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + id_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * ID of this change history event. This ID is unique across Google Analytics.
+     * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + public com.google.protobuf.ByteString getIdBytes() { + java.lang.Object ref = id_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + id_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * ID of this change history event. This ID is unique across Google Analytics.
+     * 
+ * + * string id = 1; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + id_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * ID of this change history event. This ID is unique across Google Analytics.
+     * 
+ * + * string id = 1; + * + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = getDefaultInstance().getId(); + onChanged(); + return this; + } + /** + * + * + *
+     * ID of this change history event. This ID is unique across Google Analytics.
+     * 
+ * + * string id = 1; + * + * @param value The bytes for id to set. + * @return This builder for chaining. + */ + public Builder setIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + id_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp changeTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + changeTimeBuilder_; + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return Whether the changeTime field is set. + */ + public boolean hasChangeTime() { + return changeTimeBuilder_ != null || changeTime_ != null; + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return The changeTime. + */ + public com.google.protobuf.Timestamp getChangeTime() { + if (changeTimeBuilder_ == null) { + return changeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : changeTime_; + } else { + return changeTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public Builder setChangeTime(com.google.protobuf.Timestamp value) { + if (changeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + changeTime_ = value; + onChanged(); + } else { + changeTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public Builder setChangeTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (changeTimeBuilder_ == null) { + changeTime_ = builderForValue.build(); + onChanged(); + } else { + changeTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public Builder mergeChangeTime(com.google.protobuf.Timestamp value) { + if (changeTimeBuilder_ == null) { + if (changeTime_ != null) { + changeTime_ = + com.google.protobuf.Timestamp.newBuilder(changeTime_).mergeFrom(value).buildPartial(); + } else { + changeTime_ = value; + } + onChanged(); + } else { + changeTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public Builder clearChangeTime() { + if (changeTimeBuilder_ == null) { + changeTime_ = null; + onChanged(); + } else { + changeTime_ = null; + changeTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getChangeTimeBuilder() { + + onChanged(); + return getChangeTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getChangeTimeOrBuilder() { + if (changeTimeBuilder_ != null) { + return changeTimeBuilder_.getMessageOrBuilder(); + } else { + return changeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : changeTime_; + } + } + /** + * + * + *
+     * Time when change was made.
+     * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getChangeTimeFieldBuilder() { + if (changeTimeBuilder_ == null) { + changeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getChangeTime(), getParentForChildren(), isClean()); + changeTime_ = null; + } + return changeTimeBuilder_; + } + + private int actorType_ = 0; + /** + * + * + *
+     * The type of actor that made this change.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @return The enum numeric value on the wire for actorType. + */ + @java.lang.Override + public int getActorTypeValue() { + return actorType_; + } + /** + * + * + *
+     * The type of actor that made this change.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @param value The enum numeric value on the wire for actorType to set. + * @return This builder for chaining. + */ + public Builder setActorTypeValue(int value) { + + actorType_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The type of actor that made this change.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @return The actorType. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ActorType getActorType() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.ActorType result = + com.google.analytics.admin.v1alpha.ActorType.valueOf(actorType_); + return result == null ? com.google.analytics.admin.v1alpha.ActorType.UNRECOGNIZED : result; + } + /** + * + * + *
+     * The type of actor that made this change.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @param value The actorType to set. + * @return This builder for chaining. + */ + public Builder setActorType(com.google.analytics.admin.v1alpha.ActorType value) { + if (value == null) { + throw new NullPointerException(); + } + + actorType_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * The type of actor that made this change.
+     * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @return This builder for chaining. + */ + public Builder clearActorType() { + + actorType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object userActorEmail_ = ""; + /** + * + * + *
+     * Email address of the Google account that made the change. This will be a
+     * valid email address if the actor field is set to USER, and empty otherwise.
+     * Google accounts that have been deleted will cause an error.
+     * 
+ * + * string user_actor_email = 4; + * + * @return The userActorEmail. + */ + public java.lang.String getUserActorEmail() { + java.lang.Object ref = userActorEmail_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + userActorEmail_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Email address of the Google account that made the change. This will be a
+     * valid email address if the actor field is set to USER, and empty otherwise.
+     * Google accounts that have been deleted will cause an error.
+     * 
+ * + * string user_actor_email = 4; + * + * @return The bytes for userActorEmail. + */ + public com.google.protobuf.ByteString getUserActorEmailBytes() { + java.lang.Object ref = userActorEmail_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + userActorEmail_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Email address of the Google account that made the change. This will be a
+     * valid email address if the actor field is set to USER, and empty otherwise.
+     * Google accounts that have been deleted will cause an error.
+     * 
+ * + * string user_actor_email = 4; + * + * @param value The userActorEmail to set. + * @return This builder for chaining. + */ + public Builder setUserActorEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + userActorEmail_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Email address of the Google account that made the change. This will be a
+     * valid email address if the actor field is set to USER, and empty otherwise.
+     * Google accounts that have been deleted will cause an error.
+     * 
+ * + * string user_actor_email = 4; + * + * @return This builder for chaining. + */ + public Builder clearUserActorEmail() { + + userActorEmail_ = getDefaultInstance().getUserActorEmail(); + onChanged(); + return this; + } + /** + * + * + *
+     * Email address of the Google account that made the change. This will be a
+     * valid email address if the actor field is set to USER, and empty otherwise.
+     * Google accounts that have been deleted will cause an error.
+     * 
+ * + * string user_actor_email = 4; + * + * @param value The bytes for userActorEmail to set. + * @return This builder for chaining. + */ + public Builder setUserActorEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + userActorEmail_ = value; + onChanged(); + return this; + } + + private boolean changesFiltered_; + /** + * + * + *
+     * If true, then the list of changes returned was filtered, and does not
+     * represent all changes that occurred in this event.
+     * 
+ * + * bool changes_filtered = 5; + * + * @return The changesFiltered. + */ + @java.lang.Override + public boolean getChangesFiltered() { + return changesFiltered_; + } + /** + * + * + *
+     * If true, then the list of changes returned was filtered, and does not
+     * represent all changes that occurred in this event.
+     * 
+ * + * bool changes_filtered = 5; + * + * @param value The changesFiltered to set. + * @return This builder for chaining. + */ + public Builder setChangesFiltered(boolean value) { + + changesFiltered_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * If true, then the list of changes returned was filtered, and does not
+     * represent all changes that occurred in this event.
+     * 
+ * + * bool changes_filtered = 5; + * + * @return This builder for chaining. + */ + public Builder clearChangesFiltered() { + + changesFiltered_ = false; + onChanged(); + return this; + } + + private java.util.List changes_ = + java.util.Collections.emptyList(); + + private void ensureChangesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + changes_ = + new java.util.ArrayList( + changes_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder> + changesBuilder_; + + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public java.util.List getChangesList() { + if (changesBuilder_ == null) { + return java.util.Collections.unmodifiableList(changes_); + } else { + return changesBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public int getChangesCount() { + if (changesBuilder_ == null) { + return changes_.size(); + } else { + return changesBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange getChanges(int index) { + if (changesBuilder_ == null) { + return changes_.get(index); + } else { + return changesBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder setChanges( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryChange value) { + if (changesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangesIsMutable(); + changes_.set(index, value); + onChanged(); + } else { + changesBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder setChanges( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder builderForValue) { + if (changesBuilder_ == null) { + ensureChangesIsMutable(); + changes_.set(index, builderForValue.build()); + onChanged(); + } else { + changesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder addChanges(com.google.analytics.admin.v1alpha.ChangeHistoryChange value) { + if (changesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangesIsMutable(); + changes_.add(value); + onChanged(); + } else { + changesBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder addChanges( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryChange value) { + if (changesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangesIsMutable(); + changes_.add(index, value); + onChanged(); + } else { + changesBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder addChanges( + com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder builderForValue) { + if (changesBuilder_ == null) { + ensureChangesIsMutable(); + changes_.add(builderForValue.build()); + onChanged(); + } else { + changesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder addChanges( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder builderForValue) { + if (changesBuilder_ == null) { + ensureChangesIsMutable(); + changes_.add(index, builderForValue.build()); + onChanged(); + } else { + changesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder addAllChanges( + java.lang.Iterable + values) { + if (changesBuilder_ == null) { + ensureChangesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, changes_); + onChanged(); + } else { + changesBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder clearChanges() { + if (changesBuilder_ == null) { + changes_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + changesBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public Builder removeChanges(int index) { + if (changesBuilder_ == null) { + ensureChangesIsMutable(); + changes_.remove(index); + onChanged(); + } else { + changesBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder getChangesBuilder( + int index) { + return getChangesFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder getChangesOrBuilder( + int index) { + if (changesBuilder_ == null) { + return changes_.get(index); + } else { + return changesBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public java.util.List + getChangesOrBuilderList() { + if (changesBuilder_ != null) { + return changesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(changes_); + } + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder addChangesBuilder() { + return getChangesFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.ChangeHistoryChange.getDefaultInstance()); + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder addChangesBuilder( + int index) { + return getChangesFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.ChangeHistoryChange.getDefaultInstance()); + } + /** + * + * + *
+     * A list of changes made in this change history event that fit the filters
+     * specified in SearchChangeHistoryEventsRequest.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + public java.util.List + getChangesBuilderList() { + return getChangesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder> + getChangesFieldBuilder() { + if (changesBuilder_ == null) { + changesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryChange, + com.google.analytics.admin.v1alpha.ChangeHistoryChange.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder>( + changes_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + changes_ = null; + } + return changesBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.ChangeHistoryEvent) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ChangeHistoryEvent) + private static final com.google.analytics.admin.v1alpha.ChangeHistoryEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ChangeHistoryEvent(); + } + + public static com.google.analytics.admin.v1alpha.ChangeHistoryEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ChangeHistoryEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ChangeHistoryEvent(input, extensionRegistry); + } + }; + + public static com.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.ChangeHistoryEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEventOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEventOrBuilder.java new file mode 100644 index 00000000..0229a14c --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEventOrBuilder.java @@ -0,0 +1,210 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface ChangeHistoryEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ChangeHistoryEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * ID of this change history event. This ID is unique across Google Analytics.
+   * 
+ * + * string id = 1; + * + * @return The id. + */ + java.lang.String getId(); + /** + * + * + *
+   * ID of this change history event. This ID is unique across Google Analytics.
+   * 
+ * + * string id = 1; + * + * @return The bytes for id. + */ + com.google.protobuf.ByteString getIdBytes(); + + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return Whether the changeTime field is set. + */ + boolean hasChangeTime(); + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + * + * @return The changeTime. + */ + com.google.protobuf.Timestamp getChangeTime(); + /** + * + * + *
+   * Time when change was made.
+   * 
+ * + * .google.protobuf.Timestamp change_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getChangeTimeOrBuilder(); + + /** + * + * + *
+   * The type of actor that made this change.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @return The enum numeric value on the wire for actorType. + */ + int getActorTypeValue(); + /** + * + * + *
+   * The type of actor that made this change.
+   * 
+ * + * .google.analytics.admin.v1alpha.ActorType actor_type = 3; + * + * @return The actorType. + */ + com.google.analytics.admin.v1alpha.ActorType getActorType(); + + /** + * + * + *
+   * Email address of the Google account that made the change. This will be a
+   * valid email address if the actor field is set to USER, and empty otherwise.
+   * Google accounts that have been deleted will cause an error.
+   * 
+ * + * string user_actor_email = 4; + * + * @return The userActorEmail. + */ + java.lang.String getUserActorEmail(); + /** + * + * + *
+   * Email address of the Google account that made the change. This will be a
+   * valid email address if the actor field is set to USER, and empty otherwise.
+   * Google accounts that have been deleted will cause an error.
+   * 
+ * + * string user_actor_email = 4; + * + * @return The bytes for userActorEmail. + */ + com.google.protobuf.ByteString getUserActorEmailBytes(); + + /** + * + * + *
+   * If true, then the list of changes returned was filtered, and does not
+   * represent all changes that occurred in this event.
+   * 
+ * + * bool changes_filtered = 5; + * + * @return The changesFiltered. + */ + boolean getChangesFiltered(); + + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + java.util.List getChangesList(); + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + com.google.analytics.admin.v1alpha.ChangeHistoryChange getChanges(int index); + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + int getChangesCount(); + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + java.util.List + getChangesOrBuilderList(); + /** + * + * + *
+   * A list of changes made in this change history event that fit the filters
+   * specified in SearchChangeHistoryEventsRequest.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryChange changes = 6; + */ + com.google.analytics.admin.v1alpha.ChangeHistoryChangeOrBuilder getChangesOrBuilder(int index); +} 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 new file mode 100644 index 00000000..0c12ac82 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java @@ -0,0 +1,289 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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; + +/** + * + * + *
+ * Types of resources whose changes may be returned from change history.
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.ChangeHistoryResourceType} + */ +public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Resource type unknown or not specified.
+   * 
+ * + * CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; + */ + CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED(0), + /** + * + * + *
+   * Account resource
+   * 
+ * + * ACCOUNT = 1; + */ + ACCOUNT(1), + /** + * + * + *
+   * Property resource
+   * 
+ * + * PROPERTY = 2; + */ + PROPERTY(2), + /** + * + * + *
+   * WebDataStream resource
+   * 
+ * + * WEB_DATA_STREAM = 3; + */ + WEB_DATA_STREAM(3), + /** + * + * + *
+   * AndroidAppDataStream resource
+   * 
+ * + * ANDROID_APP_DATA_STREAM = 4; + */ + ANDROID_APP_DATA_STREAM(4), + /** + * + * + *
+   * IosAppDataStream resource
+   * 
+ * + * IOS_APP_DATA_STREAM = 5; + */ + IOS_APP_DATA_STREAM(5), + /** + * + * + *
+   * FirebaseLink resource
+   * 
+ * + * FIREBASE_LINK = 6; + */ + FIREBASE_LINK(6), + /** + * + * + *
+   * GoogleAdsLink resource
+   * 
+ * + * GOOGLE_ADS_LINK = 7; + */ + GOOGLE_ADS_LINK(7), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Resource type unknown or not specified.
+   * 
+ * + * CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; + */ + public static final int CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Account resource
+   * 
+ * + * ACCOUNT = 1; + */ + public static final int ACCOUNT_VALUE = 1; + /** + * + * + *
+   * Property resource
+   * 
+ * + * PROPERTY = 2; + */ + public static final int PROPERTY_VALUE = 2; + /** + * + * + *
+   * WebDataStream resource
+   * 
+ * + * WEB_DATA_STREAM = 3; + */ + public static final int WEB_DATA_STREAM_VALUE = 3; + /** + * + * + *
+   * AndroidAppDataStream resource
+   * 
+ * + * ANDROID_APP_DATA_STREAM = 4; + */ + public static final int ANDROID_APP_DATA_STREAM_VALUE = 4; + /** + * + * + *
+   * IosAppDataStream resource
+   * 
+ * + * IOS_APP_DATA_STREAM = 5; + */ + public static final int IOS_APP_DATA_STREAM_VALUE = 5; + /** + * + * + *
+   * FirebaseLink resource
+   * 
+ * + * FIREBASE_LINK = 6; + */ + public static final int FIREBASE_LINK_VALUE = 6; + /** + * + * + *
+   * GoogleAdsLink resource
+   * 
+ * + * GOOGLE_ADS_LINK = 7; + */ + public static final int GOOGLE_ADS_LINK_VALUE = 7; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ChangeHistoryResourceType 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 ChangeHistoryResourceType forNumber(int value) { + switch (value) { + case 0: + return CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED; + case 1: + return ACCOUNT; + case 2: + return PROPERTY; + case 3: + return WEB_DATA_STREAM; + case 4: + return ANDROID_APP_DATA_STREAM; + case 5: + return IOS_APP_DATA_STREAM; + case 6: + return FIREBASE_LINK; + case 7: + return GOOGLE_ADS_LINK; + 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 ChangeHistoryResourceType findValueByNumber(int number) { + return ChangeHistoryResourceType.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(4); + } + + private static final ChangeHistoryResourceType[] VALUES = values(); + + public static ChangeHistoryResourceType 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 ChangeHistoryResourceType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.ChangeHistoryResourceType) +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequest.java deleted file mode 100644 index 37153637..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequest.java +++ /dev/null @@ -1,980 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 CreateAndroidAppDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest} - */ -public final class CreateAndroidAppDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) - CreateAndroidAppDataStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateAndroidAppDataStreamRequest.newBuilder() to construct. - private CreateAndroidAppDataStreamRequest( - com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateAndroidAppDataStreamRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateAndroidAppDataStreamRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreateAndroidAppDataStreamRequest( - 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.AndroidAppDataStream.Builder subBuilder = null; - if (androidAppDataStream_ != null) { - subBuilder = androidAppDataStream_.toBuilder(); - } - androidAppDataStream_ = - input.readMessage( - com.google.analytics.admin.v1alpha.AndroidAppDataStream.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(androidAppDataStream_); - androidAppDataStream_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.class, - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.Builder.class); - } - - public static final int ANDROID_APP_DATA_STREAM_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.AndroidAppDataStream androidAppDataStream_; - /** - * - * - *
-   * Required. The android app stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the androidAppDataStream field is set. - */ - @java.lang.Override - public boolean hasAndroidAppDataStream() { - return androidAppDataStream_ != null; - } - /** - * - * - *
-   * Required. The android app stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The androidAppDataStream. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream() { - return androidAppDataStream_ == null - ? com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance() - : androidAppDataStream_; - } - /** - * - * - *
-   * Required. The android app stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder - getAndroidAppDataStreamOrBuilder() { - return getAndroidAppDataStream(); - } - - public static final int PARENT_FIELD_NUMBER = 2; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent resource where this android app data stream will be created.
-   * Format: properties/123
-   * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent resource where this android app data stream will be created.
-   * Format: properties/123
-   * 
- * - * - * string parent = 2 [(.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; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (androidAppDataStream_ != null) { - output.writeMessage(1, getAndroidAppDataStream()); - } - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (androidAppDataStream_ != null) { - size += - com.google.protobuf.CodedOutputStream.computeMessageSize(1, getAndroidAppDataStream()); - } - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest other = - (com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) obj; - - if (hasAndroidAppDataStream() != other.hasAndroidAppDataStream()) return false; - if (hasAndroidAppDataStream()) { - if (!getAndroidAppDataStream().equals(other.getAndroidAppDataStream())) return false; - } - if (!getParent().equals(other.getParent())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasAndroidAppDataStream()) { - hash = (37 * hash) + ANDROID_APP_DATA_STREAM_FIELD_NUMBER; - hash = (53 * hash) + getAndroidAppDataStream().hashCode(); - } - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest parseFrom( - 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.CreateAndroidAppDataStreamRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest parseFrom( - com.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.CreateAndroidAppDataStreamRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest 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.CreateAndroidAppDataStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest parseFrom( - java.io.InputStream 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.CreateAndroidAppDataStreamRequest - parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest - parseDelimitedFrom( - java.io.InputStream 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.CreateAndroidAppDataStreamRequest 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.CreateAndroidAppDataStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.CreateAndroidAppDataStreamRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 CreateAndroidAppDataStream RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateAndroidAppDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.class, - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.Builder.class); - } - - // Construct using - // com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest.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 (androidAppDataStreamBuilder_ == null) { - androidAppDataStream_ = null; - } else { - androidAppDataStream_ = null; - androidAppDataStreamBuilder_ = null; - } - parent_ = ""; - - 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_CreateAndroidAppDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest - .getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest build() { - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest result = - new com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest(this); - if (androidAppDataStreamBuilder_ == null) { - result.androidAppDataStream_ = androidAppDataStream_; - } else { - result.androidAppDataStream_ = androidAppDataStreamBuilder_.build(); - } - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) { - return mergeFrom( - (com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest other) { - if (other - == com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest - .getDefaultInstance()) return this; - if (other.hasAndroidAppDataStream()) { - mergeAndroidAppDataStream(other.getAndroidAppDataStream()); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.analytics.admin.v1alpha.AndroidAppDataStream androidAppDataStream_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AndroidAppDataStream, - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, - com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder> - androidAppDataStreamBuilder_; - /** - * - * - *
-     * Required. The android app stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the androidAppDataStream field is set. - */ - public boolean hasAndroidAppDataStream() { - return androidAppDataStreamBuilder_ != null || androidAppDataStream_ != null; - } - /** - * - * - *
-     * Required. The android app stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The androidAppDataStream. - */ - public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream() { - if (androidAppDataStreamBuilder_ == null) { - return androidAppDataStream_ == null - ? com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance() - : androidAppDataStream_; - } else { - return androidAppDataStreamBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The android app stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAndroidAppDataStream( - com.google.analytics.admin.v1alpha.AndroidAppDataStream value) { - if (androidAppDataStreamBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - androidAppDataStream_ = value; - onChanged(); - } else { - androidAppDataStreamBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The android app stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setAndroidAppDataStream( - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder builderForValue) { - if (androidAppDataStreamBuilder_ == null) { - androidAppDataStream_ = builderForValue.build(); - onChanged(); - } else { - androidAppDataStreamBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The android app stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeAndroidAppDataStream( - com.google.analytics.admin.v1alpha.AndroidAppDataStream value) { - if (androidAppDataStreamBuilder_ == null) { - if (androidAppDataStream_ != null) { - androidAppDataStream_ = - com.google.analytics.admin.v1alpha.AndroidAppDataStream.newBuilder( - androidAppDataStream_) - .mergeFrom(value) - .buildPartial(); - } else { - androidAppDataStream_ = value; - } - onChanged(); - } else { - androidAppDataStreamBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The android app stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearAndroidAppDataStream() { - if (androidAppDataStreamBuilder_ == null) { - androidAppDataStream_ = null; - onChanged(); - } else { - androidAppDataStream_ = null; - androidAppDataStreamBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The android app stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder - getAndroidAppDataStreamBuilder() { - - onChanged(); - return getAndroidAppDataStreamFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The android app stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder - getAndroidAppDataStreamOrBuilder() { - if (androidAppDataStreamBuilder_ != null) { - return androidAppDataStreamBuilder_.getMessageOrBuilder(); - } else { - return androidAppDataStream_ == null - ? com.google.analytics.admin.v1alpha.AndroidAppDataStream.getDefaultInstance() - : androidAppDataStream_; - } - } - /** - * - * - *
-     * Required. The android app stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AndroidAppDataStream, - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, - com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder> - getAndroidAppDataStreamFieldBuilder() { - if (androidAppDataStreamBuilder_ == null) { - androidAppDataStreamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.AndroidAppDataStream, - com.google.analytics.admin.v1alpha.AndroidAppDataStream.Builder, - com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder>( - getAndroidAppDataStream(), getParentForChildren(), isClean()); - androidAppDataStream_ = null; - } - return androidAppDataStreamBuilder_; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource where this android app data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent resource where this android app data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent resource where this android app data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource where this android app data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource where this android app data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.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; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @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.CreateAndroidAppDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) - private static final com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateAndroidAppDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateAndroidAppDataStreamRequest(input, extensionRegistry); - } - }; - - public static com.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.CreateAndroidAppDataStreamRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequestOrBuilder.java deleted file mode 100644 index c2f5b915..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -public interface CreateAndroidAppDataStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateAndroidAppDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The android app stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the androidAppDataStream field is set. - */ - boolean hasAndroidAppDataStream(); - /** - * - * - *
-   * Required. The android app stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The androidAppDataStream. - */ - com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream(); - /** - * - * - *
-   * Required. The android app stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.AndroidAppDataStream android_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.AndroidAppDataStreamOrBuilder - getAndroidAppDataStreamOrBuilder(); - - /** - * - * - *
-   * Required. The parent resource where this android app data stream will be created.
-   * Format: properties/123
-   * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource where this android app data stream will be created.
-   * Format: properties/123
-   * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequest.java deleted file mode 100644 index 744017da..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequest.java +++ /dev/null @@ -1,972 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/analytics/admin/v1alpha/analytics_admin.proto - -package com.google.analytics.admin.v1alpha; - -/** - * - * - *
- * Request message for CreateIosAppDataStream RPC.
- * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest} - */ -public final class CreateIosAppDataStreamRequest extends com.google.protobuf.GeneratedMessageV3 - implements - // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) - CreateIosAppDataStreamRequestOrBuilder { - private static final long serialVersionUID = 0L; - // Use CreateIosAppDataStreamRequest.newBuilder() to construct. - private CreateIosAppDataStreamRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - - private CreateIosAppDataStreamRequest() { - parent_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance(UnusedPrivateParameter unused) { - return new CreateIosAppDataStreamRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet getUnknownFields() { - return this.unknownFields; - } - - private CreateIosAppDataStreamRequest( - 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.IosAppDataStream.Builder subBuilder = null; - if (iosAppDataStream_ != null) { - subBuilder = iosAppDataStream_.toBuilder(); - } - iosAppDataStream_ = - input.readMessage( - com.google.analytics.admin.v1alpha.IosAppDataStream.parser(), - extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(iosAppDataStream_); - iosAppDataStream_ = subBuilder.buildPartial(); - } - - break; - } - case 18: - { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - default: - { - if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.class, - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.Builder.class); - } - - public static final int IOS_APP_DATA_STREAM_FIELD_NUMBER = 1; - private com.google.analytics.admin.v1alpha.IosAppDataStream iosAppDataStream_; - /** - * - * - *
-   * Required. The iOS app data stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the iosAppDataStream field is set. - */ - @java.lang.Override - public boolean hasIosAppDataStream() { - return iosAppDataStream_ != null; - } - /** - * - * - *
-   * Required. The iOS app data stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The iosAppDataStream. - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream() { - return iosAppDataStream_ == null - ? com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance() - : iosAppDataStream_; - } - /** - * - * - *
-   * Required. The iOS app data stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - @java.lang.Override - public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder - getIosAppDataStreamOrBuilder() { - return getIosAppDataStream(); - } - - public static final int PARENT_FIELD_NUMBER = 2; - private volatile java.lang.Object parent_; - /** - * - * - *
-   * Required. The parent resource where this ios app data stream will be created.
-   * Format: properties/123
-   * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - * - * - *
-   * Required. The parent resource where this ios app data stream will be created.
-   * Format: properties/123
-   * 
- * - * - * string parent = 2 [(.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; - } - } - - private byte memoizedIsInitialized = -1; - - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (iosAppDataStream_ != null) { - output.writeMessage(1, getIosAppDataStream()); - } - if (!getParentBytes().isEmpty()) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (iosAppDataStream_ != null) { - size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getIosAppDataStream()); - } - if (!getParentBytes().isEmpty()) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest)) { - return super.equals(obj); - } - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest other = - (com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) obj; - - if (hasIosAppDataStream() != other.hasIosAppDataStream()) return false; - if (hasIosAppDataStream()) { - if (!getIosAppDataStream().equals(other.getIosAppDataStream())) return false; - } - if (!getParent().equals(other.getParent())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasIosAppDataStream()) { - hash = (37 * hash) + IOS_APP_DATA_STREAM_FIELD_NUMBER; - hash = (53 * hash) + getIosAppDataStream().hashCode(); - } - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parseFrom( - java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parseFrom( - 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.CreateIosAppDataStreamRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parseFrom( - com.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.CreateIosAppDataStreamRequest parseFrom( - byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - - public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest 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.CreateIosAppDataStreamRequest parseFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parseFrom( - java.io.InputStream 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.CreateIosAppDataStreamRequest parseDelimitedFrom( - java.io.InputStream input) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); - } - - public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parseDelimitedFrom( - java.io.InputStream 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.CreateIosAppDataStreamRequest 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.CreateIosAppDataStreamRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3.parseWithIOException( - PARSER, input, 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.CreateIosAppDataStreamRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE ? new 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 CreateIosAppDataStream RPC.
-   * 
- * - * Protobuf type {@code google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest} - */ - public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder - implements - // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.analytics.admin.v1alpha.AnalyticsAdminProto - .internal_static_google_analytics_admin_v1alpha_CreateIosAppDataStreamRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.class, - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.Builder.class); - } - - // Construct using com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.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 (iosAppDataStreamBuilder_ == null) { - iosAppDataStream_ = null; - } else { - iosAppDataStream_ = null; - iosAppDataStreamBuilder_ = null; - } - parent_ = ""; - - 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_CreateIosAppDataStreamRequest_descriptor; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest - getDefaultInstanceForType() { - return com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest build() { - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest buildPartial() { - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest result = - new com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest(this); - if (iosAppDataStreamBuilder_ == null) { - result.iosAppDataStream_ = iosAppDataStream_; - } else { - result.iosAppDataStream_ = iosAppDataStreamBuilder_.build(); - } - result.parent_ = parent_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.setField(field, value); - } - - @java.lang.Override - public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - - @java.lang.Override - public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { - return super.addRepeatedField(field, value); - } - - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) { - return mergeFrom((com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom( - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest other) { - if (other - == com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest.getDefaultInstance()) - return this; - if (other.hasIosAppDataStream()) { - mergeIosAppDataStream(other.getIosAppDataStream()); - } - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = - (com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) - e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.analytics.admin.v1alpha.IosAppDataStream iosAppDataStream_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.IosAppDataStream, - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, - com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder> - iosAppDataStreamBuilder_; - /** - * - * - *
-     * Required. The iOS app data stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the iosAppDataStream field is set. - */ - public boolean hasIosAppDataStream() { - return iosAppDataStreamBuilder_ != null || iosAppDataStream_ != null; - } - /** - * - * - *
-     * Required. The iOS app data stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The iosAppDataStream. - */ - public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream() { - if (iosAppDataStreamBuilder_ == null) { - return iosAppDataStream_ == null - ? com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance() - : iosAppDataStream_; - } else { - return iosAppDataStreamBuilder_.getMessage(); - } - } - /** - * - * - *
-     * Required. The iOS app data stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setIosAppDataStream(com.google.analytics.admin.v1alpha.IosAppDataStream value) { - if (iosAppDataStreamBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - iosAppDataStream_ = value; - onChanged(); - } else { - iosAppDataStreamBuilder_.setMessage(value); - } - - return this; - } - /** - * - * - *
-     * Required. The iOS app data stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder setIosAppDataStream( - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder builderForValue) { - if (iosAppDataStreamBuilder_ == null) { - iosAppDataStream_ = builderForValue.build(); - onChanged(); - } else { - iosAppDataStreamBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * - * - *
-     * Required. The iOS app data stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder mergeIosAppDataStream( - com.google.analytics.admin.v1alpha.IosAppDataStream value) { - if (iosAppDataStreamBuilder_ == null) { - if (iosAppDataStream_ != null) { - iosAppDataStream_ = - com.google.analytics.admin.v1alpha.IosAppDataStream.newBuilder(iosAppDataStream_) - .mergeFrom(value) - .buildPartial(); - } else { - iosAppDataStream_ = value; - } - onChanged(); - } else { - iosAppDataStreamBuilder_.mergeFrom(value); - } - - return this; - } - /** - * - * - *
-     * Required. The iOS app data stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public Builder clearIosAppDataStream() { - if (iosAppDataStreamBuilder_ == null) { - iosAppDataStream_ = null; - onChanged(); - } else { - iosAppDataStream_ = null; - iosAppDataStreamBuilder_ = null; - } - - return this; - } - /** - * - * - *
-     * Required. The iOS app data stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.IosAppDataStream.Builder - getIosAppDataStreamBuilder() { - - onChanged(); - return getIosAppDataStreamFieldBuilder().getBuilder(); - } - /** - * - * - *
-     * Required. The iOS app data stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - public com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder - getIosAppDataStreamOrBuilder() { - if (iosAppDataStreamBuilder_ != null) { - return iosAppDataStreamBuilder_.getMessageOrBuilder(); - } else { - return iosAppDataStream_ == null - ? com.google.analytics.admin.v1alpha.IosAppDataStream.getDefaultInstance() - : iosAppDataStream_; - } - } - /** - * - * - *
-     * Required. The iOS app data stream to create.
-     * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.IosAppDataStream, - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, - com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder> - getIosAppDataStreamFieldBuilder() { - if (iosAppDataStreamBuilder_ == null) { - iosAppDataStreamBuilder_ = - new com.google.protobuf.SingleFieldBuilderV3< - com.google.analytics.admin.v1alpha.IosAppDataStream, - com.google.analytics.admin.v1alpha.IosAppDataStream.Builder, - com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder>( - getIosAppDataStream(), getParentForChildren(), isClean()); - iosAppDataStream_ = null; - } - return iosAppDataStreamBuilder_; - } - - private java.lang.Object parent_ = ""; - /** - * - * - *
-     * Required. The parent resource where this ios app data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * - * - *
-     * Required. The parent resource where this ios app data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * - * - *
-     * Required. The parent resource where this ios app data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent(java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource where this ios app data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - * - * - *
-     * Required. The parent resource where this ios app data stream will be created.
-     * Format: properties/123
-     * 
- * - * - * string parent = 2 [(.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; - } - - @java.lang.Override - public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @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.CreateIosAppDataStreamRequest) - } - - // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) - private static final com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest - DEFAULT_INSTANCE; - - static { - DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest(); - } - - public static com.google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest - getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser PARSER = - new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateIosAppDataStreamRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateIosAppDataStreamRequest(input, extensionRegistry); - } - }; - - public static com.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.CreateIosAppDataStreamRequest - getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } -} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequestOrBuilder.java deleted file mode 100644 index 7ac72dcd..00000000 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequestOrBuilder.java +++ /dev/null @@ -1,97 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the 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 CreateIosAppDataStreamRequestOrBuilder - extends - // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateIosAppDataStreamRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * - * - *
-   * Required. The iOS app data stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return Whether the iosAppDataStream field is set. - */ - boolean hasIosAppDataStream(); - /** - * - * - *
-   * Required. The iOS app data stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - * - * @return The iosAppDataStream. - */ - com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream(); - /** - * - * - *
-   * Required. The iOS app data stream to create.
-   * 
- * - * - * .google.analytics.admin.v1alpha.IosAppDataStream ios_app_data_stream = 1 [(.google.api.field_behavior) = REQUIRED]; - * - */ - com.google.analytics.admin.v1alpha.IosAppDataStreamOrBuilder getIosAppDataStreamOrBuilder(); - - /** - * - * - *
-   * Required. The parent resource where this ios app data stream will be created.
-   * Format: properties/123
-   * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The parent. - */ - java.lang.String getParent(); - /** - * - * - *
-   * Required. The parent resource where this ios app data stream will be created.
-   * Format: properties/123
-   * 
- * - * - * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * - * - * @return The bytes for parent. - */ - com.google.protobuf.ByteString getParentBytes(); -} 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 0a4fe0dd..9426b64f 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 @@ -147,9 +147,34 @@ private Property( currencyCode_ = s; break; } - case 72: + case 90: { - deleted_ = input.readBool(); + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (deleteTime_ != null) { + subBuilder = deleteTime_.toBuilder(); + } + deleteTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(deleteTime_); + deleteTime_ = subBuilder.buildPartial(); + } + + break; + } + case 98: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (expireTime_ != null) { + subBuilder = expireTime_.toBuilder(); + } + expireTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(expireTime_); + expireTime_ = subBuilder.buildPartial(); + } + break; } default: @@ -489,7 +514,7 @@ public com.google.analytics.admin.v1alpha.IndustryCategory getIndustryCategory() * * *
-   * Reporting Time Zone, used as the day boundary for reports, regardless of
+   * Required. Reporting Time Zone, used as the day boundary for reports, regardless of
    * where the data originates. If the time zone honors DST, Analytics will
    * automatically adjust for the changes.
    * NOTE: Changing the time zone only affects data going forward, and is not
@@ -498,7 +523,7 @@ public com.google.analytics.admin.v1alpha.IndustryCategory getIndustryCategory()
    * Example: "America/Los_Angeles"
    * 
* - * string time_zone = 7; + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The timeZone. */ @@ -518,7 +543,7 @@ public java.lang.String getTimeZone() { * * *
-   * Reporting Time Zone, used as the day boundary for reports, regardless of
+   * Required. Reporting Time Zone, used as the day boundary for reports, regardless of
    * where the data originates. If the time zone honors DST, Analytics will
    * automatically adjust for the changes.
    * NOTE: Changing the time zone only affects data going forward, and is not
@@ -527,7 +552,7 @@ public java.lang.String getTimeZone() {
    * Example: "America/Los_Angeles"
    * 
* - * string time_zone = 7; + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for timeZone. */ @@ -597,23 +622,111 @@ public com.google.protobuf.ByteString getCurrencyCodeBytes() { } } - public static final int DELETED_FIELD_NUMBER = 9; - private boolean deleted_; + public static final int DELETE_TIME_FIELD_NUMBER = 11; + private com.google.protobuf.Timestamp deleteTime_; + /** + * + * + *
+   * 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]; + * + * + * @return Whether the deleteTime field is set. + */ + @java.lang.Override + public boolean hasDeleteTime() { + return deleteTime_ != null; + } + /** + * + * + *
+   * 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]; + * + * + * @return The deleteTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getDeleteTime() { + return deleteTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : deleteTime_; + } + /** + * + * + *
+   * 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]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + return getDeleteTime(); + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 12; + private com.google.protobuf.Timestamp expireTime_; /** * * *
-   * Output only. Indicates whether this Property is soft-deleted or not. Deleted properties
-   * are excluded from List results unless specifically requested.
+   * Output only. If set, the time at which this trashed property will be permanently
+   * deleted. If not set, then this property is not currently in the trash can
+   * and is not slated to be deleted.
    * 
* - * bool deleted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return expireTime_ != null; + } + /** + * + * + *
+   * Output only. If set, the time at which this trashed property will be permanently
+   * deleted. If not set, then this property is not currently in the trash can
+   * and is not slated to be deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + /** + * + * + *
+   * Output only. If set, the time at which this trashed property will be permanently
+   * deleted. If not set, then this property is not currently in the trash can
+   * and is not slated to be deleted.
+   * 
* - * @return The deleted. + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override - public boolean getDeleted() { - return deleted_; + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + return getExpireTime(); } private byte memoizedIsInitialized = -1; @@ -656,8 +769,11 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!getCurrencyCodeBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, currencyCode_); } - if (deleted_ != false) { - output.writeBool(9, deleted_); + if (deleteTime_ != null) { + output.writeMessage(11, getDeleteTime()); + } + if (expireTime_ != null) { + output.writeMessage(12, getExpireTime()); } unknownFields.writeTo(output); } @@ -694,8 +810,11 @@ public int getSerializedSize() { if (!getCurrencyCodeBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, currencyCode_); } - if (deleted_ != false) { - size += com.google.protobuf.CodedOutputStream.computeBoolSize(9, deleted_); + if (deleteTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getDeleteTime()); + } + if (expireTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(12, getExpireTime()); } size += unknownFields.getSerializedSize(); memoizedSize = size; @@ -727,7 +846,14 @@ 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 (getDeleted() != other.getDeleted()) return false; + if (hasDeleteTime() != other.hasDeleteTime()) return false; + if (hasDeleteTime()) { + if (!getDeleteTime().equals(other.getDeleteTime())) return false; + } + if (hasExpireTime() != other.hasExpireTime()) return false; + if (hasExpireTime()) { + if (!getExpireTime().equals(other.getExpireTime())) return false; + } if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -759,8 +885,14 @@ public int hashCode() { hash = (53 * hash) + getTimeZone().hashCode(); hash = (37 * hash) + CURRENCY_CODE_FIELD_NUMBER; hash = (53 * hash) + getCurrencyCode().hashCode(); - hash = (37 * hash) + DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDeleted()); + if (hasDeleteTime()) { + hash = (37 * hash) + DELETE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getDeleteTime().hashCode(); + } + if (hasExpireTime()) { + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -930,8 +1062,18 @@ public Builder clear() { currencyCode_ = ""; - deleted_ = false; - + if (deleteTimeBuilder_ == null) { + deleteTime_ = null; + } else { + deleteTime_ = null; + deleteTimeBuilder_ = null; + } + if (expireTimeBuilder_ == null) { + expireTime_ = null; + } else { + expireTime_ = null; + expireTimeBuilder_ = null; + } return this; } @@ -975,7 +1117,16 @@ public com.google.analytics.admin.v1alpha.Property buildPartial() { result.industryCategory_ = industryCategory_; result.timeZone_ = timeZone_; result.currencyCode_ = currencyCode_; - result.deleted_ = deleted_; + if (deleteTimeBuilder_ == null) { + result.deleteTime_ = deleteTime_; + } else { + result.deleteTime_ = deleteTimeBuilder_.build(); + } + if (expireTimeBuilder_ == null) { + result.expireTime_ = expireTime_; + } else { + result.expireTime_ = expireTimeBuilder_.build(); + } onBuilt(); return result; } @@ -1054,8 +1205,11 @@ public Builder mergeFrom(com.google.analytics.admin.v1alpha.Property other) { currencyCode_ = other.currencyCode_; onChanged(); } - if (other.getDeleted() != false) { - setDeleted(other.getDeleted()); + if (other.hasDeleteTime()) { + mergeDeleteTime(other.getDeleteTime()); + } + if (other.hasExpireTime()) { + mergeExpireTime(other.getExpireTime()); } this.mergeUnknownFields(other.unknownFields); onChanged(); @@ -1939,7 +2093,7 @@ public Builder clearIndustryCategory() { * * *
-     * Reporting Time Zone, used as the day boundary for reports, regardless of
+     * Required. Reporting Time Zone, used as the day boundary for reports, regardless of
      * where the data originates. If the time zone honors DST, Analytics will
      * automatically adjust for the changes.
      * NOTE: Changing the time zone only affects data going forward, and is not
@@ -1948,7 +2102,7 @@ public Builder clearIndustryCategory() {
      * Example: "America/Los_Angeles"
      * 
* - * string time_zone = 7; + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The timeZone. */ @@ -1967,7 +2121,7 @@ public java.lang.String getTimeZone() { * * *
-     * Reporting Time Zone, used as the day boundary for reports, regardless of
+     * Required. Reporting Time Zone, used as the day boundary for reports, regardless of
      * where the data originates. If the time zone honors DST, Analytics will
      * automatically adjust for the changes.
      * NOTE: Changing the time zone only affects data going forward, and is not
@@ -1976,7 +2130,7 @@ public java.lang.String getTimeZone() {
      * Example: "America/Los_Angeles"
      * 
* - * string time_zone = 7; + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for timeZone. */ @@ -1995,7 +2149,7 @@ public com.google.protobuf.ByteString getTimeZoneBytes() { * * *
-     * Reporting Time Zone, used as the day boundary for reports, regardless of
+     * Required. Reporting Time Zone, used as the day boundary for reports, regardless of
      * where the data originates. If the time zone honors DST, Analytics will
      * automatically adjust for the changes.
      * NOTE: Changing the time zone only affects data going forward, and is not
@@ -2004,7 +2158,7 @@ public com.google.protobuf.ByteString getTimeZoneBytes() {
      * Example: "America/Los_Angeles"
      * 
* - * string time_zone = 7; + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; * * @param value The timeZone to set. * @return This builder for chaining. @@ -2022,7 +2176,7 @@ public Builder setTimeZone(java.lang.String value) { * * *
-     * Reporting Time Zone, used as the day boundary for reports, regardless of
+     * Required. Reporting Time Zone, used as the day boundary for reports, regardless of
      * where the data originates. If the time zone honors DST, Analytics will
      * automatically adjust for the changes.
      * NOTE: Changing the time zone only affects data going forward, and is not
@@ -2031,7 +2185,7 @@ public Builder setTimeZone(java.lang.String value) {
      * Example: "America/Los_Angeles"
      * 
* - * string time_zone = 7; + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return This builder for chaining. */ @@ -2045,7 +2199,7 @@ public Builder clearTimeZone() { * * *
-     * Reporting Time Zone, used as the day boundary for reports, regardless of
+     * Required. Reporting Time Zone, used as the day boundary for reports, regardless of
      * where the data originates. If the time zone honors DST, Analytics will
      * automatically adjust for the changes.
      * NOTE: Changing the time zone only affects data going forward, and is not
@@ -2054,7 +2208,7 @@ public Builder clearTimeZone() {
      * Example: "America/Los_Angeles"
      * 
* - * string time_zone = 7; + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; * * @param value The bytes for timeZone to set. * @return This builder for chaining. @@ -2186,60 +2340,434 @@ public Builder setCurrencyCodeBytes(com.google.protobuf.ByteString value) { return this; } - private boolean deleted_; + private com.google.protobuf.Timestamp deleteTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + deleteTimeBuilder_; /** * * *
-     * Output only. Indicates whether this Property is soft-deleted or not. Deleted properties
-     * are excluded from List results unless specifically requested.
+     * 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.
      * 
* - * bool deleted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @return The deleted. + * @return Whether the deleteTime field is set. */ - @java.lang.Override - public boolean getDeleted() { - return deleted_; + public boolean hasDeleteTime() { + return deleteTimeBuilder_ != null || deleteTime_ != null; } /** * * *
-     * Output only. Indicates whether this Property is soft-deleted or not. Deleted properties
-     * are excluded from List results unless specifically requested.
+     * 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.
      * 
* - * bool deleted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * - * @param value The deleted to set. - * @return This builder for chaining. + * @return The deleteTime. + */ + public com.google.protobuf.Timestamp getDeleteTime() { + if (deleteTimeBuilder_ == null) { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } else { + return deleteTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * 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]; + * */ - public Builder setDeleted(boolean value) { + public Builder setDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + deleteTime_ = value; + onChanged(); + } else { + deleteTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (deleteTimeBuilder_ == null) { + deleteTime_ = builderForValue.build(); + onChanged(); + } else { + deleteTimeBuilder_.setMessage(builderForValue.build()); + } - deleted_ = value; - onChanged(); return this; } /** * * *
-     * Output only. Indicates whether this Property is soft-deleted or not. Deleted properties
-     * are excluded from List results unless specifically requested.
+     * 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.
      * 
* - * bool deleted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { + if (deleteTimeBuilder_ == null) { + if (deleteTime_ != null) { + deleteTime_ = + com.google.protobuf.Timestamp.newBuilder(deleteTime_).mergeFrom(value).buildPartial(); + } else { + deleteTime_ = value; + } + onChanged(); + } else { + deleteTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** * - * @return This builder for chaining. + * + *
+     * 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]; + * */ - public Builder clearDeleted() { + public Builder clearDeleteTime() { + if (deleteTimeBuilder_ == null) { + deleteTime_ = null; + onChanged(); + } else { + deleteTime_ = null; + deleteTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { - deleted_ = false; onChanged(); + return getDeleteTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * 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]; + * + */ + public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { + if (deleteTimeBuilder_ != null) { + return deleteTimeBuilder_.getMessageOrBuilder(); + } else { + return deleteTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : deleteTime_; + } + } + /** + * + * + *
+     * 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]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getDeleteTimeFieldBuilder() { + if (deleteTimeBuilder_ == null) { + deleteTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getDeleteTime(), getParentForChildren(), isClean()); + deleteTime_ = null; + } + return deleteTimeBuilder_; + } + + private com.google.protobuf.Timestamp expireTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be permanently
+     * deleted. If not set, then this property is not currently in the trash can
+     * and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + public boolean hasExpireTime() { + return expireTimeBuilder_ != null || expireTime_ != null; + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be permanently
+     * deleted. If not set, then this property is not currently in the trash can
+     * and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + public com.google.protobuf.Timestamp getExpireTime() { + if (expireTimeBuilder_ == null) { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } else { + return expireTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be permanently
+     * deleted. If not set, then this property is not currently in the trash can
+     * and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireTime_ = value; + onChanged(); + } else { + expireTimeBuilder_.setMessage(value); + } + return this; } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be permanently
+     * deleted. If not set, then this property is not currently in the trash can
+     * and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expireTime_ = builderForValue.build(); + onChanged(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be permanently
+     * deleted. If not set, then this property is not currently in the trash can
+     * and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (expireTime_ != null) { + expireTime_ = + com.google.protobuf.Timestamp.newBuilder(expireTime_).mergeFrom(value).buildPartial(); + } else { + expireTime_ = value; + } + onChanged(); + } else { + expireTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be permanently
+     * deleted. If not set, then this property is not currently in the trash can
+     * and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearExpireTime() { + if (expireTimeBuilder_ == null) { + expireTime_ = null; + onChanged(); + } else { + expireTime_ = null; + expireTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be permanently
+     * deleted. If not set, then this property is not currently in the trash can
+     * and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + + onChanged(); + return getExpireTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be permanently
+     * deleted. If not set, then this property is not currently in the trash can
+     * and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expireTimeBuilder_ != null) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } + } + /** + * + * + *
+     * Output only. If set, the time at which this trashed property will be permanently
+     * deleted. If not set, then this property is not currently in the trash can
+     * and is not slated to be deleted.
+     * 
+ * + * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); + expireTime_ = null; + } + return expireTimeBuilder_; + } @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/PropertyOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java index edd43768..525f31fe 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 @@ -217,7 +217,7 @@ public interface PropertyOrBuilder * * *
-   * Reporting Time Zone, used as the day boundary for reports, regardless of
+   * Required. Reporting Time Zone, used as the day boundary for reports, regardless of
    * where the data originates. If the time zone honors DST, Analytics will
    * automatically adjust for the changes.
    * NOTE: Changing the time zone only affects data going forward, and is not
@@ -226,7 +226,7 @@ public interface PropertyOrBuilder
    * Example: "America/Los_Angeles"
    * 
* - * string time_zone = 7; + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The timeZone. */ @@ -235,7 +235,7 @@ public interface PropertyOrBuilder * * *
-   * Reporting Time Zone, used as the day boundary for reports, regardless of
+   * Required. Reporting Time Zone, used as the day boundary for reports, regardless of
    * where the data originates. If the time zone honors DST, Analytics will
    * automatically adjust for the changes.
    * NOTE: Changing the time zone only affects data going forward, and is not
@@ -244,7 +244,7 @@ public interface PropertyOrBuilder
    * Example: "America/Los_Angeles"
    * 
* - * string time_zone = 7; + * string time_zone = 7 [(.google.api.field_behavior) = REQUIRED]; * * @return The bytes for timeZone. */ @@ -283,13 +283,84 @@ public interface PropertyOrBuilder * * *
-   * Output only. Indicates whether this Property is soft-deleted or not. Deleted properties
-   * are excluded from List results unless specifically requested.
+   * 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.
    * 
* - * bool deleted = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * .google.protobuf.Timestamp delete_time = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the deleteTime field is set. + */ + boolean hasDeleteTime(); + /** + * + * + *
+   * 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]; + * + * + * @return The deleteTime. + */ + com.google.protobuf.Timestamp getDeleteTime(); + /** + * + * + *
+   * 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]; + * + */ + com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder(); + + /** + * * - * @return The deleted. + *
+   * Output only. If set, the time at which this trashed property will be permanently
+   * deleted. If not set, then this property is not currently in the trash can
+   * and is not slated to be deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the expireTime field is set. + */ + boolean hasExpireTime(); + /** + * + * + *
+   * Output only. If set, the time at which this trashed property will be permanently
+   * deleted. If not set, then this property is not currently in the trash can
+   * and is not slated to be deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The expireTime. + */ + com.google.protobuf.Timestamp getExpireTime(); + /** + * + * + *
+   * Output only. If set, the time at which this trashed property will be permanently
+   * deleted. If not set, then this property is not currently in the trash can
+   * and is not slated to be deleted.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ - boolean getDeleted(); + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); } 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 200b3c4d..04c8393f 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 @@ -83,6 +83,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_PropertySummary_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_PropertySummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -103,123 +115,163 @@ 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}\"\212" + + "leapis.com/Account\022\022accounts/{account}\"\345" + "\003\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\021\n\ttime_zone\030\007 \001" - + "(\t\022\025\n\rcurrency_code\030\010 \001(\t\022\024\n\007deleted\030\t \001" - + "(\010B\003\340A\003:B\352A?\n&analyticsadmin.googleapis." - + "com/Property\022\025properties/{property}\"\344\002\n\024" - + "AndroidAppDataStream\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\014package_name\030\005 \001(\tB" - + "\003\340A\005\022\024\n\014display_name\030\006 \001(\t:~\352A{\n2analyti" - + "csadmin.googleapis.com/AndroidAppDataStr" - + "eam\022Eproperties/{property}/androidAppDat" - + "aStreams/{android_app_data_stream}\"\324\002\n\020I" - + "osAppDataStream\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\034\n\017fi" - + "rebase_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.protobuf.Ti" - + "mestampB\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.analyticsadm" - + "in.googleapis.com/IosAppDataStream\022=prop" - + "erties/{property}/iosAppDataStreams/{ios" - + "_app_data_stream}\"\350\002\n\rWebDataStream\022\021\n\004n" - + "ame\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\013cre" - + "ate_time\030\004 \001(\0132\032.google.protobuf.Timesta" - + "mpB\003\340A\003\0224\n\013update_time\030\005 \001(\0132\032.google.pr" - + "otobuf.TimestampB\003\340A\003\022\030\n\013default_uri\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/WebDataSt" - + "ream\0226properties/{property}/webDataStrea" - + "ms/{web_data_stream}\"\312\001\n\010UserLink\022\014\n\004nam" - + "e\030\001 \001(\t\022\025\n\remail_address\030\002 \001(\t\022\024\n\014direct" - + "_roles\030\003 \003(\t:\202\001\352A\177\n&analyticsadmin.googl" - + "eapis.com/UserLink\022(accounts/{account}/u" - + "serLinks/{user_link}\022+properties/{proper" - + "ty}/userLinks/{user_link}\"c\n\rAuditUserLi" - + "nk\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\033EnhancedMeasurementSettings\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_enabled\030\003 \001(\010B\003\340A\003\022\027\n\017sc" - + "rolls_enabled\030\004 \001(\010\022\037\n\027outbound_clicks_e" - + "nabled\030\005 \001(\010\022\033\n\023site_search_enabled\030\007 \001(" - + "\010\022 \n\030video_engagement_enabled\030\t \001(\010\022\036\n\026f" - + "ile_downloads_enabled\030\n \001(\010\022\037\n\022page_load" - + "s_enabled\030\014 \001(\010B\003\340A\003\022\034\n\024page_changes_ena" - + "bled\030\r \001(\010\022#\n\026search_query_parameter\030\020 \001" - + "(\tB\003\340A\002\022\033\n\023uri_query_parameter\030\021 \001(\t:\223\001\352" - + "A\217\001\n9analyticsadmin.googleapis.com/Enhan" - + "cedMeasurementSettings\022Rproperties/{prop" - + "erty}/webDataStreams/{web_data_stream}/e" - + "nhancedMeasurementSettings\"\243\002\n\014FirebaseL" - + "ink\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.proto" - + "buf.TimestampB\003\340A\003\022N\n\023maximum_user_acces" - + "s\030\004 \001(\01621.google.analytics.admin.v1alpha" - + ".MaximumUserAccess:d\352Aa\n*analyticsadmin." - + "googleapis.com/FirebaseLink\0223properties/" - + "{property}/firebaseLinks/{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/GlobalSiteTag\022#propertie" - + "s/{property}/globalSiteTag\"\220\003\n\rGoogleAds" - + "Link\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_clients\030\004 \001(\010B\003\340" - + "A\003\022?\n\033ads_personalization_enabled\030\005 \001(\0132" - + "\032.google.protobuf.BoolValue\022\032\n\remail_add" - + "ress\030\006 \001(\tB\003\340A\003\0224\n\013create_time\030\007 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\0224\n\013update_" - + "time\030\010 \001(\0132\032.google.protobuf.TimestampB\003" - + "\340A\003:h\352Ae\n+analyticsadmin.googleapis.com/" - + "GoogleAdsLink\0226properties/{property}/goo" - + "gleAdsLinks/{google_ads_link}\"\353\002\n\023DataSh" - + "aringSettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022+\n#shar" - + "ing_with_google_support_enabled\030\002 \001(\010\0222\n" - + "*sharing_with_google_assigned_sales_enab" - + "led\030\003 \001(\010\022-\n%sharing_with_google_any_sal" - + "es_enabled\030\004 \001(\010\022,\n$sharing_with_google_" - + "products_enabled\030\005 \001(\010\022#\n\033sharing_with_o" - + "thers_enabled\030\006 \001(\010:^\352A[\n1analyticsadmin" - + ".googleapis.com/DataSharingSettings\022&acc" - + "ounts/{account}/dataSharingSettings\"\225\002\n\016" - + "AccountSummary\022\014\n\004name\030\001 \001(\t\022;\n\007account\030" - + "\002 \001(\tB*\372A\'\n%analyticsadmin.googleapis.co" - + "m/Account\022\024\n\014display_name\030\003 \001(\t\022K\n\022prope" - + "rty_summaries\030\004 \003(\0132/.google.analytics.a" - + "dmin.v1alpha.PropertySummary:U\352AR\n,analy" - + "ticsadmin.googleapis.com/AccountSummary\022" - + "\"accountSummaries/{account_summary}\"f\n\017P" - + "ropertySummary\022=\n\010property\030\001 \001(\tB+\372A(\n&a" - + "nalyticsadmin.googleapis.com/Property\022\024\n" - + "\014display_name\030\002 \001(\t*\247\001\n\021MaximumUserAcces" - + "s\022#\n\037MAXIMUM_USER_ACCESS_UNSPECIFIED\020\000\022\r" - + "\n\tNO_ACCESS\020\001\022\024\n\020READ_AND_ANALYZE\020\002\022\"\n\036E" - + "DITOR_WITHOUT_LINK_MANAGEMENT\020\003\022$\n EDITO" - + "R_INCLUDING_LINK_MANAGEMENT\020\004*\252\004\n\020Indust" - + "ryCategory\022!\n\035INDUSTRY_CATEGORY_UNSPECIF" - + "IED\020\000\022\016\n\nAUTOMOTIVE\020\001\022#\n\037BUSINESS_AND_IN" - + "DUSTRIAL_MARKETS\020\002\022\013\n\007FINANCE\020\003\022\016\n\nHEALT" - + "HCARE\020\004\022\016\n\nTECHNOLOGY\020\005\022\n\n\006TRAVEL\020\006\022\t\n\005O" - + "THER\020\007\022\032\n\026ARTS_AND_ENTERTAINMENT\020\010\022\026\n\022BE" - + "AUTY_AND_FITNESS\020\t\022\030\n\024BOOKS_AND_LITERATU" - + "RE\020\n\022\022\n\016FOOD_AND_DRINK\020\013\022\t\n\005GAMES\020\014\022\027\n\023H" - + "OBBIES_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_G" - + "OVERNMENT\020\020\022\010\n\004NEWS\020\021\022\026\n\022ONLINE_COMMUNIT" - + "IES\020\022\022\026\n\022PEOPLE_AND_SOCIETY\020\023\022\024\n\020PETS_AN" - + "D_ANIMALS\020\024\022\017\n\013REAL_ESTATE\020\025\022\r\n\tREFERENC" - + "E\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\032B{\n\"com.google" + + "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}\"\312\001\n\010User" + + "Link\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:\202\001\352A\177\n&analytics" + + "admin.googleapis.com/UserLink\022(accounts/" + + "{account}/userLinks/{user_link}\022+propert" + + "ies/{property}/userLinks/{user_link}\"c\n\r" + + "AuditUserLink\022\014\n\004name\030\001 \001(\t\022\025\n\remail_add" + + "ress\030\002 \001(\t\022\024\n\014direct_roles\030\003 \003(\t\022\027\n\017effe" + + "ctive_roles\030\004 \003(\t\"\231\004\n\033EnhancedMeasuremen" + + "tSettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\026\n\016stream_e" + + "nabled\030\002 \001(\010\022\037\n\022page_views_enabled\030\003 \001(\010" + + "B\003\340A\003\022\027\n\017scrolls_enabled\030\004 \001(\010\022\037\n\027outbou" + + "nd_clicks_enabled\030\005 \001(\010\022\033\n\023site_search_e" + + "nabled\030\007 \001(\010\022 \n\030video_engagement_enabled" + + "\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\024page_" + + "changes_enabled\030\r \001(\010\022#\n\026search_query_pa" + + "rameter\030\020 \001(\tB\003\340A\002\022\033\n\023uri_query_paramete" + + "r\030\021 \001(\t:\223\001\352A\217\001\n9analyticsadmin.googleapi" + + "s.com/EnhancedMeasurementSettings\022Rprope" + + "rties/{property}/webDataStreams/{web_dat" + + "a_stream}/enhancedMeasurementSettings\"\243\002" + + "\n\014FirebaseLink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\007pro" + + "ject\030\002 \001(\tB\003\340A\005\0224\n\013create_time\030\003 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\003\340A\003\022N\n\023maximum" + + "_user_access\030\004 \001(\01621.google.analytics.ad" + + "min.v1alpha.MaximumUserAccess:d\352Aa\n*anal" + + "yticsadmin.googleapis.com/FirebaseLink\0223" + + "properties/{property}/firebaseLinks/{fir" + + "ebase_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+ana" + + "lyticsadmin.googleapis.com/GlobalSiteTag" + + "\022#properties/{property}/globalSiteTag\"\220\003" + + "\n\rGoogleAdsLink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\030\n\013cu" + + "stomer_id\030\003 \001(\tB\003\340A\005\022\037\n\022can_manage_clien" + + "ts\030\004 \001(\010B\003\340A\003\022?\n\033ads_personalization_ena" + + "bled\030\005 \001(\0132\032.google.protobuf.BoolValue\022\032" + + "\n\remail_address\030\006 \001(\tB\003\340A\003\0224\n\013create_tim" + + "e\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" + + "\0224\n\013update_time\030\010 \001(\0132\032.google.protobuf." + + "TimestampB\003\340A\003:h\352Ae\n+analyticsadmin.goog" + + "leapis.com/GoogleAdsLink\0226properties/{pr" + + "operty}/googleAdsLinks/{google_ads_link}" + + "\"\353\002\n\023DataSharingSettings\022\021\n\004name\030\001 \001(\tB\003" + + "\340A\003\022+\n#sharing_with_google_support_enabl" + + "ed\030\002 \001(\010\0222\n*sharing_with_google_assigned" + + "_sales_enabled\030\003 \001(\010\022-\n%sharing_with_goo" + + "gle_any_sales_enabled\030\004 \001(\010\022,\n$sharing_w" + + "ith_google_products_enabled\030\005 \001(\010\022#\n\033sha" + + "ring_with_others_enabled\030\006 \001(\010:^\352A[\n1ana" + + "lyticsadmin.googleapis.com/DataSharingSe" + + "ttings\022&accounts/{account}/dataSharingSe" + + "ttings\"\225\002\n\016AccountSummary\022\014\n\004name\030\001 \001(\t\022" + + ";\n\007account\030\002 \001(\tB*\372A\'\n%analyticsadmin.go" + + "ogleapis.com/Account\022\024\n\014display_name\030\003 \001" + + "(\t\022K\n\022property_summaries\030\004 \003(\0132/.google." + + "analytics.admin.v1alpha.PropertySummary:" + + "U\352AR\n,analyticsadmin.googleapis.com/Acco" + + "untSummary\022\"accountSummaries/{account_su" + + "mmary}\"f\n\017PropertySummary\022=\n\010property\030\001 " + + "\001(\tB+\372A(\n&analyticsadmin.googleapis.com/" + + "Property\022\024\n\014display_name\030\002 \001(\t\"\212\002\n\022Chang" + + "eHistoryEvent\022\n\n\002id\030\001 \001(\t\022/\n\013change_time" + + "\030\002 \001(\0132\032.google.protobuf.Timestamp\022=\n\nac" + + "tor_type\030\003 \001(\0162).google.analytics.admin." + + "v1alpha.ActorType\022\030\n\020user_actor_email\030\004 " + + "\001(\t\022\030\n\020changes_filtered\030\005 \001(\010\022D\n\007changes" + + "\030\006 \003(\01323.google.analytics.admin.v1alpha." + + "ChangeHistoryChange\"\335\006\n\023ChangeHistoryCha" + + "nge\022\020\n\010resource\030\001 \001(\t\022:\n\006action\030\002 \001(\0162*." + + "google.analytics.admin.v1alpha.ActionTyp" + + "e\022i\n\026resource_before_change\030\003 \001(\0132I.goog" + + "le.analytics.admin.v1alpha.ChangeHistory" + + "Change.ChangeHistoryResource\022h\n\025resource" + + "_after_change\030\004 \001(\0132I.google.analytics.a" + + "dmin.v1alpha.ChangeHistoryChange.ChangeH" + + "istoryResource\032\242\004\n\025ChangeHistoryResource" + + "\022:\n\007account\030\001 \001(\0132\'.google.analytics.adm" + + "in.v1alpha.AccountH\000\022<\n\010property\030\002 \001(\0132(" + + ".google.analytics.admin.v1alpha.Property" + + "H\000\022H\n\017web_data_stream\030\003 \001(\0132-.google.ana" + + "lytics.admin.v1alpha.WebDataStreamH\000\022W\n\027" + + "android_app_data_stream\030\004 \001(\01324.google.a" + + "nalytics.admin.v1alpha.AndroidAppDataStr" + + "eamH\000\022O\n\023ios_app_data_stream\030\005 \001(\01320.goo" + + "gle.analytics.admin.v1alpha.IosAppDataSt" + + "reamH\000\022E\n\rfirebase_link\030\006 \001(\0132,.google.a" + + "nalytics.admin.v1alpha.FirebaseLinkH\000\022H\n" + + "\017google_ads_link\030\007 \001(\0132-.google.analytic" + + "s.admin.v1alpha.GoogleAdsLinkH\000B\n\n\010resou" + + "rce*\247\001\n\021MaximumUserAccess\022#\n\037MAXIMUM_USE" + + "R_ACCESS_UNSPECIFIED\020\000\022\r\n\tNO_ACCESS\020\001\022\024\n" + + "\020READ_AND_ANALYZE\020\002\022\"\n\036EDITOR_WITHOUT_LI" + + "NK_MANAGEMENT\020\003\022$\n EDITOR_INCLUDING_LINK" + + "_MANAGEMENT\020\004*\252\004\n\020IndustryCategory\022!\n\035IN" + + "DUSTRY_CATEGORY_UNSPECIFIED\020\000\022\016\n\nAUTOMOT" + + "IVE\020\001\022#\n\037BUSINESS_AND_INDUSTRIAL_MARKETS" + + "\020\002\022\013\n\007FINANCE\020\003\022\016\n\nHEALTHCARE\020\004\022\016\n\nTECHN" + + "OLOGY\020\005\022\n\n\006TRAVEL\020\006\022\t\n\005OTHER\020\007\022\032\n\026ARTS_A" + + "ND_ENTERTAINMENT\020\010\022\026\n\022BEAUTY_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\023HOBBIES_AND_LEISU" + + "RE\020\r\022\023\n\017HOME_AND_GARDEN\020\016\022\030\n\024INTERNET_AN" + + "D_TELECOM\020\017\022\026\n\022LAW_AND_GOVERNMENT\020\020\022\010\n\004N" + + "EWS\020\021\022\026\n\022ONLINE_COMMUNITIES\020\022\022\026\n\022PEOPLE_" + + "AND_SOCIETY\020\023\022\024\n\020PETS_AND_ANIMALS\020\024\022\017\n\013R" + + "EAL_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\010" + + "SHOPPING\020\032*J\n\tActorType\022\032\n\026ACTOR_TYPE_UN" + + "SPECIFIED\020\000\022\010\n\004USER\020\001\022\n\n\006SYSTEM\020\002\022\013\n\007SUP" + + "PORT\020\003*P\n\nActionType\022\033\n\027ACTION_TYPE_UNSP" + + "ECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007UPDATED\020\002\022\013\n\007D" + + "ELETED\020\003*\327\001\n\031ChangeHistoryResourceType\022," + + "\n(CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFI" + + "ED\020\000\022\013\n\007ACCOUNT\020\001\022\014\n\010PROPERTY\020\002\022\023\n\017WEB_D" + + "ATA_STREAM\020\003\022\033\n\027ANDROID_APP_DATA_STREAM\020" + + "\004\022\027\n\023IOS_APP_DATA_STREAM\020\005\022\021\n\rFIREBASE_L" + + "INK\020\006\022\023\n\017GOOGLE_ADS_LINK\020\007B{\n\"com.google" + ".analytics.admin.v1alphaB\016ResourcesProto" + "P\001ZCgoogle.golang.org/genproto/googleapi" + "s/analytics/admin/v1alpha;adminb\006proto3" @@ -255,7 +307,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IndustryCategory", "TimeZone", "CurrencyCode", - "Deleted", + "DeleteTime", + "ExpireTime", }); internal_static_google_analytics_admin_v1alpha_AndroidAppDataStream_descriptor = getDescriptor().getMessageTypes().get(2); @@ -381,6 +434,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Property", "DisplayName", }); + internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor, + new java.lang.String[] { + "Id", "ChangeTime", "ActorType", "UserActorEmail", "ChangesFiltered", "Changes", + }); + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor, + new java.lang.String[] { + "Resource", "Action", "ResourceBeforeChange", "ResourceAfterChange", + }); + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_descriptor = + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor + .getNestedTypes() + .get(0); + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_ChangeHistoryResource_descriptor, + new java.lang.String[] { + "Account", + "Property", + "WebDataStream", + "AndroidAppDataStream", + "IosAppDataStream", + "FirebaseLink", + "GoogleAdsLink", + "Resource", + }); 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/SearchChangeHistoryEventsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequest.java new file mode 100644 index 00000000..c546aac8 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequest.java @@ -0,0 +1,2933 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 SearchChangeHistoryEvents RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} + */ +public final class SearchChangeHistoryEventsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) + SearchChangeHistoryEventsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchChangeHistoryEventsRequest.newBuilder() to construct. + private SearchChangeHistoryEventsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchChangeHistoryEventsRequest() { + account_ = ""; + property_ = ""; + resourceType_ = java.util.Collections.emptyList(); + action_ = java.util.Collections.emptyList(); + actorEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchChangeHistoryEventsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SearchChangeHistoryEventsRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + int mutable_bitField0_ = 0; + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + account_ = s; + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + property_ = s; + break; + } + case 24: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resourceType_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + resourceType_.add(rawValue); + break; + } + case 26: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000001) != 0)) { + resourceType_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + resourceType_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 32: + { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + action_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + action_.add(rawValue); + break; + } + case 34: + { + int length = input.readRawVarint32(); + int oldLimit = input.pushLimit(length); + while (input.getBytesUntilLimit() > 0) { + int rawValue = input.readEnum(); + if (!((mutable_bitField0_ & 0x00000002) != 0)) { + action_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + action_.add(rawValue); + } + input.popLimit(oldLimit); + break; + } + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + if (!((mutable_bitField0_ & 0x00000004) != 0)) { + actorEmail_ = new com.google.protobuf.LazyStringArrayList(); + mutable_bitField0_ |= 0x00000004; + } + actorEmail_.add(s); + break; + } + case 50: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (earliestChangeTime_ != null) { + subBuilder = earliestChangeTime_.toBuilder(); + } + earliestChangeTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(earliestChangeTime_); + earliestChangeTime_ = subBuilder.buildPartial(); + } + + break; + } + case 58: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (latestChangeTime_ != null) { + subBuilder = latestChangeTime_.toBuilder(); + } + latestChangeTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(latestChangeTime_); + latestChangeTime_ = subBuilder.buildPartial(); + } + + break; + } + case 64: + { + pageSize_ = input.readInt32(); + break; + } + case 74: + { + 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 { + if (((mutable_bitField0_ & 0x00000001) != 0)) { + resourceType_ = java.util.Collections.unmodifiableList(resourceType_); + } + if (((mutable_bitField0_ & 0x00000002) != 0)) { + action_ = java.util.Collections.unmodifiableList(action_); + } + if (((mutable_bitField0_ & 0x00000004) != 0)) { + actorEmail_ = actorEmail_.getUnmodifiableView(); + } + 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_SearchChangeHistoryEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.class, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.Builder.class); + } + + public static final int ACCOUNT_FIELD_NUMBER = 1; + private volatile java.lang.Object account_; + /** + * + * + *
+   * Required. The account resource for which to return change history resources.
+   * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The account. + */ + @java.lang.Override + public java.lang.String getAccount() { + java.lang.Object ref = account_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + account_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The account resource for which to return change history resources.
+   * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for account. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAccountBytes() { + java.lang.Object ref = account_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + account_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PROPERTY_FIELD_NUMBER = 2; + private volatile java.lang.Object property_; + /** + * + * + *
+   * Optional. Resource name for a child property. If set, only return changes
+   * made to this property or its child resources.
+   * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + @java.lang.Override + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Resource name for a child property. If set, only return changes
+   * made to this property or its child resources.
+   * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RESOURCE_TYPE_FIELD_NUMBER = 3; + private java.util.List resourceType_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType> + resourceType_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType>() { + public com.google.analytics.admin.v1alpha.ChangeHistoryResourceType convert( + java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.ChangeHistoryResourceType result = + com.google.analytics.admin.v1alpha.ChangeHistoryResourceType.valueOf(from); + return result == null + ? com.google.analytics.admin.v1alpha.ChangeHistoryResourceType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that matches at
+   * least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the resourceType. + */ + @java.lang.Override + public java.util.List + getResourceTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType>( + resourceType_, resourceType_converter_); + } + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that matches at
+   * least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of resourceType. + */ + @java.lang.Override + public int getResourceTypeCount() { + return resourceType_.size(); + } + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that matches at
+   * least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The resourceType at the given index. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryResourceType getResourceType(int index) { + return resourceType_converter_.convert(resourceType_.get(index)); + } + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that matches at
+   * least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for resourceType. + */ + @java.lang.Override + public java.util.List getResourceTypeValueList() { + return resourceType_; + } + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that matches at
+   * least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of resourceType at the given index. + */ + @java.lang.Override + public int getResourceTypeValue(int index) { + return resourceType_.get(index); + } + + private int resourceTypeMemoizedSerializedSize; + + public static final int ACTION_FIELD_NUMBER = 4; + private java.util.List action_; + private static final com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ActionType> + action_converter_ = + new com.google.protobuf.Internal.ListAdapter.Converter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ActionType>() { + public com.google.analytics.admin.v1alpha.ActionType convert(java.lang.Integer from) { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.ActionType result = + com.google.analytics.admin.v1alpha.ActionType.valueOf(from); + return result == null + ? com.google.analytics.admin.v1alpha.ActionType.UNRECOGNIZED + : result; + } + }; + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types of
+   * actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the action. + */ + @java.lang.Override + public java.util.List getActionList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ActionType>( + action_, action_converter_); + } + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types of
+   * actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of action. + */ + @java.lang.Override + public int getActionCount() { + return action_.size(); + } + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types of
+   * actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The action at the given index. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ActionType getAction(int index) { + return action_converter_.convert(action_.get(index)); + } + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types of
+   * actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for action. + */ + @java.lang.Override + public java.util.List getActionValueList() { + return action_; + } + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types of
+   * actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of action at the given index. + */ + @java.lang.Override + public int getActionValue(int index) { + return action_.get(index); + } + + private int actionMemoizedSerializedSize; + + public static final int ACTOR_EMAIL_FIELD_NUMBER = 5; + private com.google.protobuf.LazyStringList actorEmail_; + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the actorEmail. + */ + public com.google.protobuf.ProtocolStringList getActorEmailList() { + return actorEmail_; + } + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of actorEmail. + */ + public int getActorEmailCount() { + return actorEmail_.size(); + } + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The actorEmail at the given index. + */ + public java.lang.String getActorEmail(int index) { + return actorEmail_.get(index); + } + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the actorEmail at the given index. + */ + public com.google.protobuf.ByteString getActorEmailBytes(int index) { + return actorEmail_.getByteString(index); + } + + public static final int EARLIEST_CHANGE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp earliestChangeTime_; + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the earliestChangeTime field is set. + */ + @java.lang.Override + public boolean hasEarliestChangeTime() { + return earliestChangeTime_ != null; + } + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The earliestChangeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEarliestChangeTime() { + return earliestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestChangeTime_; + } + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEarliestChangeTimeOrBuilder() { + return getEarliestChangeTime(); + } + + public static final int LATEST_CHANGE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp latestChangeTime_; + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the latestChangeTime field is set. + */ + @java.lang.Override + public boolean hasLatestChangeTime() { + return latestChangeTime_ != null; + } + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The latestChangeTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getLatestChangeTime() { + return latestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestChangeTime_; + } + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getLatestChangeTimeOrBuilder() { + return getLatestChangeTime(); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 8; + private int pageSize_; + /** + * + * + *
+   * Optional. The maximum number of ChangeHistoryEvent items to return.
+   * The service may return fewer than this value, even if there are additional
+   * pages. If unspecified, at most 50 items will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 9; + private volatile java.lang.Object pageToken_; + /** + * + * + *
+   * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `SearchChangeHistoryEvents` must match the call that
+   * provided the page token.
+   * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+   * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `SearchChangeHistoryEvents` must match the call that
+   * provided the page token.
+   * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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 { + getSerializedSize(); + if (!getAccountBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, account_); + } + if (!getPropertyBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, property_); + } + if (getResourceTypeList().size() > 0) { + output.writeUInt32NoTag(26); + output.writeUInt32NoTag(resourceTypeMemoizedSerializedSize); + } + for (int i = 0; i < resourceType_.size(); i++) { + output.writeEnumNoTag(resourceType_.get(i)); + } + if (getActionList().size() > 0) { + output.writeUInt32NoTag(34); + output.writeUInt32NoTag(actionMemoizedSerializedSize); + } + for (int i = 0; i < action_.size(); i++) { + output.writeEnumNoTag(action_.get(i)); + } + for (int i = 0; i < actorEmail_.size(); i++) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 5, actorEmail_.getRaw(i)); + } + if (earliestChangeTime_ != null) { + output.writeMessage(6, getEarliestChangeTime()); + } + if (latestChangeTime_ != null) { + output.writeMessage(7, getLatestChangeTime()); + } + if (pageSize_ != 0) { + output.writeInt32(8, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 9, pageToken_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!getAccountBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, account_); + } + if (!getPropertyBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, property_); + } + { + int dataSize = 0; + for (int i = 0; i < resourceType_.size(); i++) { + dataSize += + com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(resourceType_.get(i)); + } + size += dataSize; + if (!getResourceTypeList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + resourceTypeMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < action_.size(); i++) { + dataSize += com.google.protobuf.CodedOutputStream.computeEnumSizeNoTag(action_.get(i)); + } + size += dataSize; + if (!getActionList().isEmpty()) { + size += 1; + size += com.google.protobuf.CodedOutputStream.computeUInt32SizeNoTag(dataSize); + } + actionMemoizedSerializedSize = dataSize; + } + { + int dataSize = 0; + for (int i = 0; i < actorEmail_.size(); i++) { + dataSize += computeStringSizeNoTag(actorEmail_.getRaw(i)); + } + size += dataSize; + size += 1 * getActorEmailList().size(); + } + if (earliestChangeTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getEarliestChangeTime()); + } + if (latestChangeTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getLatestChangeTime()); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(8, pageSize_); + } + if (!getPageTokenBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, 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.SearchChangeHistoryEventsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest other = + (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) obj; + + if (!getAccount().equals(other.getAccount())) return false; + if (!getProperty().equals(other.getProperty())) return false; + if (!resourceType_.equals(other.resourceType_)) return false; + if (!action_.equals(other.action_)) return false; + if (!getActorEmailList().equals(other.getActorEmailList())) return false; + if (hasEarliestChangeTime() != other.hasEarliestChangeTime()) return false; + if (hasEarliestChangeTime()) { + if (!getEarliestChangeTime().equals(other.getEarliestChangeTime())) return false; + } + if (hasLatestChangeTime() != other.hasLatestChangeTime()) return false; + if (hasLatestChangeTime()) { + if (!getLatestChangeTime().equals(other.getLatestChangeTime())) 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) + ACCOUNT_FIELD_NUMBER; + hash = (53 * hash) + getAccount().hashCode(); + hash = (37 * hash) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + if (getResourceTypeCount() > 0) { + hash = (37 * hash) + RESOURCE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + resourceType_.hashCode(); + } + if (getActionCount() > 0) { + hash = (37 * hash) + ACTION_FIELD_NUMBER; + hash = (53 * hash) + action_.hashCode(); + } + if (getActorEmailCount() > 0) { + hash = (37 * hash) + ACTOR_EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getActorEmailList().hashCode(); + } + if (hasEarliestChangeTime()) { + hash = (37 * hash) + EARLIEST_CHANGE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEarliestChangeTime().hashCode(); + } + if (hasLatestChangeTime()) { + hash = (37 * hash) + LATEST_CHANGE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getLatestChangeTime().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.SearchChangeHistoryEventsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom( + 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.SearchChangeHistoryEventsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom( + com.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.SearchChangeHistoryEventsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest 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.SearchChangeHistoryEventsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest parseFrom( + java.io.InputStream 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.SearchChangeHistoryEventsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + parseDelimitedFrom( + java.io.InputStream 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.SearchChangeHistoryEventsRequest 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.SearchChangeHistoryEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.SearchChangeHistoryEventsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 SearchChangeHistoryEvents RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.class, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest.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(); + account_ = ""; + + property_ = ""; + + resourceType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + action_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + actorEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + if (earliestChangeTimeBuilder_ == null) { + earliestChangeTime_ = null; + } else { + earliestChangeTime_ = null; + earliestChangeTimeBuilder_ = null; + } + if (latestChangeTimeBuilder_ == null) { + latestChangeTime_ = null; + } else { + latestChangeTime_ = null; + latestChangeTimeBuilder_ = null; + } + 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_SearchChangeHistoryEventsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest build() { + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest buildPartial() { + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest result = + new com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest(this); + int from_bitField0_ = bitField0_; + result.account_ = account_; + result.property_ = property_; + if (((bitField0_ & 0x00000001) != 0)) { + resourceType_ = java.util.Collections.unmodifiableList(resourceType_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.resourceType_ = resourceType_; + if (((bitField0_ & 0x00000002) != 0)) { + action_ = java.util.Collections.unmodifiableList(action_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.action_ = action_; + if (((bitField0_ & 0x00000004) != 0)) { + actorEmail_ = actorEmail_.getUnmodifiableView(); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.actorEmail_ = actorEmail_; + if (earliestChangeTimeBuilder_ == null) { + result.earliestChangeTime_ = earliestChangeTime_; + } else { + result.earliestChangeTime_ = earliestChangeTimeBuilder_.build(); + } + if (latestChangeTimeBuilder_ == null) { + result.latestChangeTime_ = latestChangeTime_; + } else { + result.latestChangeTime_ = latestChangeTimeBuilder_.build(); + } + 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.SearchChangeHistoryEventsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + .getDefaultInstance()) return this; + if (!other.getAccount().isEmpty()) { + account_ = other.account_; + onChanged(); + } + if (!other.getProperty().isEmpty()) { + property_ = other.property_; + onChanged(); + } + if (!other.resourceType_.isEmpty()) { + if (resourceType_.isEmpty()) { + resourceType_ = other.resourceType_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureResourceTypeIsMutable(); + resourceType_.addAll(other.resourceType_); + } + onChanged(); + } + if (!other.action_.isEmpty()) { + if (action_.isEmpty()) { + action_ = other.action_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureActionIsMutable(); + action_.addAll(other.action_); + } + onChanged(); + } + if (!other.actorEmail_.isEmpty()) { + if (actorEmail_.isEmpty()) { + actorEmail_ = other.actorEmail_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureActorEmailIsMutable(); + actorEmail_.addAll(other.actorEmail_); + } + onChanged(); + } + if (other.hasEarliestChangeTime()) { + mergeEarliestChangeTime(other.getEarliestChangeTime()); + } + if (other.hasLatestChangeTime()) { + mergeLatestChangeTime(other.getLatestChangeTime()); + } + 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.SearchChangeHistoryEventsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.lang.Object account_ = ""; + /** + * + * + *
+     * Required. The account resource for which to return change history resources.
+     * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The account. + */ + public java.lang.String getAccount() { + java.lang.Object ref = account_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + account_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The account resource for which to return change history resources.
+     * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for account. + */ + public com.google.protobuf.ByteString getAccountBytes() { + java.lang.Object ref = account_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + account_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The account resource for which to return change history resources.
+     * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The account to set. + * @return This builder for chaining. + */ + public Builder setAccount(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + account_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account resource for which to return change history resources.
+     * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearAccount() { + + account_ = getDefaultInstance().getAccount(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The account resource for which to return change history resources.
+     * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for account to set. + * @return This builder for chaining. + */ + public Builder setAccountBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + account_ = value; + onChanged(); + return this; + } + + private java.lang.Object property_ = ""; + /** + * + * + *
+     * Optional. Resource name for a child property. If set, only return changes
+     * made to this property or its child resources.
+     * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + public java.lang.String getProperty() { + java.lang.Object ref = property_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + property_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Resource name for a child property. If set, only return changes
+     * made to this property or its child resources.
+     * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + public com.google.protobuf.ByteString getPropertyBytes() { + java.lang.Object ref = property_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + property_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Resource name for a child property. If set, only return changes
+     * made to this property or its child resources.
+     * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The property to set. + * @return This builder for chaining. + */ + public Builder setProperty(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + property_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Resource name for a child property. If set, only return changes
+     * made to this property or its child resources.
+     * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearProperty() { + + property_ = getDefaultInstance().getProperty(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Resource name for a child property. If set, only return changes
+     * made to this property or its child resources.
+     * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for property to set. + * @return This builder for chaining. + */ + public Builder setPropertyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + property_ = value; + onChanged(); + return this; + } + + private java.util.List resourceType_ = java.util.Collections.emptyList(); + + private void ensureResourceTypeIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + resourceType_ = new java.util.ArrayList(resourceType_); + bitField0_ |= 0x00000001; + } + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the resourceType. + */ + public java.util.List + getResourceTypeList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType>( + resourceType_, resourceType_converter_); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of resourceType. + */ + public int getResourceTypeCount() { + return resourceType_.size(); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The resourceType at the given index. + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryResourceType getResourceType(int index) { + return resourceType_converter_.convert(resourceType_.get(index)); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The resourceType to set. + * @return This builder for chaining. + */ + public Builder setResourceType( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceTypeIsMutable(); + resourceType_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The resourceType to add. + * @return This builder for chaining. + */ + public Builder addResourceType( + com.google.analytics.admin.v1alpha.ChangeHistoryResourceType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureResourceTypeIsMutable(); + resourceType_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The resourceType to add. + * @return This builder for chaining. + */ + public Builder addAllResourceType( + java.lang.Iterable + values) { + ensureResourceTypeIsMutable(); + for (com.google.analytics.admin.v1alpha.ChangeHistoryResourceType value : values) { + resourceType_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearResourceType() { + resourceType_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for resourceType. + */ + public java.util.List getResourceTypeValueList() { + return java.util.Collections.unmodifiableList(resourceType_); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of resourceType at the given index. + */ + public int getResourceTypeValue(int index) { + return resourceType_.get(index); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of resourceType at the given index. + * @return This builder for chaining. + */ + public Builder setResourceTypeValue(int index, int value) { + ensureResourceTypeIsMutable(); + resourceType_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for resourceType to add. + * @return This builder for chaining. + */ + public Builder addResourceTypeValue(int value) { + ensureResourceTypeIsMutable(); + resourceType_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are for a resource that matches at
+     * least one of these types.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for resourceType to add. + * @return This builder for chaining. + */ + public Builder addAllResourceTypeValue(java.lang.Iterable values) { + ensureResourceTypeIsMutable(); + for (int value : values) { + resourceType_.add(value); + } + onChanged(); + return this; + } + + private java.util.List action_ = java.util.Collections.emptyList(); + + private void ensureActionIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + action_ = new java.util.ArrayList(action_); + bitField0_ |= 0x00000002; + } + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the action. + */ + public java.util.List getActionList() { + return new com.google.protobuf.Internal.ListAdapter< + java.lang.Integer, com.google.analytics.admin.v1alpha.ActionType>( + action_, action_converter_); + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of action. + */ + public int getActionCount() { + return action_.size(); + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The action at the given index. + */ + public com.google.analytics.admin.v1alpha.ActionType getAction(int index) { + return action_converter_.convert(action_.get(index)); + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The action to set. + * @return This builder for chaining. + */ + public Builder setAction(int index, com.google.analytics.admin.v1alpha.ActionType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionIsMutable(); + action_.set(index, value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The action to add. + * @return This builder for chaining. + */ + public Builder addAction(com.google.analytics.admin.v1alpha.ActionType value) { + if (value == null) { + throw new NullPointerException(); + } + ensureActionIsMutable(); + action_.add(value.getNumber()); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The action to add. + * @return This builder for chaining. + */ + public Builder addAllAction( + java.lang.Iterable values) { + ensureActionIsMutable(); + for (com.google.analytics.admin.v1alpha.ActionType value : values) { + action_.add(value.getNumber()); + } + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAction() { + action_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for action. + */ + public java.util.List getActionValueList() { + return java.util.Collections.unmodifiableList(action_); + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of action at the given index. + */ + public int getActionValue(int index) { + return action_.get(index); + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of action at the given index. + * @return This builder for chaining. + */ + public Builder setActionValue(int index, int value) { + ensureActionIsMutable(); + action_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for action to add. + * @return This builder for chaining. + */ + public Builder addActionValue(int value) { + ensureActionIsMutable(); + action_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes that match one or more of these types of
+     * actions.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The enum numeric values on the wire for action to add. + * @return This builder for chaining. + */ + public Builder addAllActionValue(java.lang.Iterable values) { + ensureActionIsMutable(); + for (int value : values) { + action_.add(value); + } + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringList actorEmail_ = + com.google.protobuf.LazyStringArrayList.EMPTY; + + private void ensureActorEmailIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + actorEmail_ = new com.google.protobuf.LazyStringArrayList(actorEmail_); + bitField0_ |= 0x00000004; + } + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the actorEmail. + */ + public com.google.protobuf.ProtocolStringList getActorEmailList() { + return actorEmail_.getUnmodifiableView(); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of actorEmail. + */ + public int getActorEmailCount() { + return actorEmail_.size(); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The actorEmail at the given index. + */ + public java.lang.String getActorEmail(int index) { + return actorEmail_.get(index); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the actorEmail at the given index. + */ + public com.google.protobuf.ByteString getActorEmailBytes(int index) { + return actorEmail_.getByteString(index); + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The actorEmail to set. + * @return This builder for chaining. + */ + public Builder setActorEmail(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureActorEmailIsMutable(); + actorEmail_.set(index, value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The actorEmail to add. + * @return This builder for chaining. + */ + public Builder addActorEmail(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureActorEmailIsMutable(); + actorEmail_.add(value); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The actorEmail to add. + * @return This builder for chaining. + */ + public Builder addAllActorEmail(java.lang.Iterable values) { + ensureActorEmailIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, actorEmail_); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearActorEmail() { + actorEmail_ = com.google.protobuf.LazyStringArrayList.EMPTY; + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes if they are made by a user in this list.
+     * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the actorEmail to add. + * @return This builder for chaining. + */ + public Builder addActorEmailBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureActorEmailIsMutable(); + actorEmail_.add(value); + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp earliestChangeTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + earliestChangeTimeBuilder_; + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the earliestChangeTime field is set. + */ + public boolean hasEarliestChangeTime() { + return earliestChangeTimeBuilder_ != null || earliestChangeTime_ != null; + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The earliestChangeTime. + */ + public com.google.protobuf.Timestamp getEarliestChangeTime() { + if (earliestChangeTimeBuilder_ == null) { + return earliestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestChangeTime_; + } else { + return earliestChangeTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEarliestChangeTime(com.google.protobuf.Timestamp value) { + if (earliestChangeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + earliestChangeTime_ = value; + onChanged(); + } else { + earliestChangeTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEarliestChangeTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (earliestChangeTimeBuilder_ == null) { + earliestChangeTime_ = builderForValue.build(); + onChanged(); + } else { + earliestChangeTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEarliestChangeTime(com.google.protobuf.Timestamp value) { + if (earliestChangeTimeBuilder_ == null) { + if (earliestChangeTime_ != null) { + earliestChangeTime_ = + com.google.protobuf.Timestamp.newBuilder(earliestChangeTime_) + .mergeFrom(value) + .buildPartial(); + } else { + earliestChangeTime_ = value; + } + onChanged(); + } else { + earliestChangeTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEarliestChangeTime() { + if (earliestChangeTimeBuilder_ == null) { + earliestChangeTime_ = null; + onChanged(); + } else { + earliestChangeTime_ = null; + earliestChangeTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getEarliestChangeTimeBuilder() { + + onChanged(); + return getEarliestChangeTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEarliestChangeTimeOrBuilder() { + if (earliestChangeTimeBuilder_ != null) { + return earliestChangeTimeBuilder_.getMessageOrBuilder(); + } else { + return earliestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : earliestChangeTime_; + } + } + /** + * + * + *
+     * Optional. If set, only return changes made after this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEarliestChangeTimeFieldBuilder() { + if (earliestChangeTimeBuilder_ == null) { + earliestChangeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEarliestChangeTime(), getParentForChildren(), isClean()); + earliestChangeTime_ = null; + } + return earliestChangeTimeBuilder_; + } + + private com.google.protobuf.Timestamp latestChangeTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + latestChangeTimeBuilder_; + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the latestChangeTime field is set. + */ + public boolean hasLatestChangeTime() { + return latestChangeTimeBuilder_ != null || latestChangeTime_ != null; + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The latestChangeTime. + */ + public com.google.protobuf.Timestamp getLatestChangeTime() { + if (latestChangeTimeBuilder_ == null) { + return latestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestChangeTime_; + } else { + return latestChangeTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLatestChangeTime(com.google.protobuf.Timestamp value) { + if (latestChangeTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + latestChangeTime_ = value; + onChanged(); + } else { + latestChangeTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLatestChangeTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (latestChangeTimeBuilder_ == null) { + latestChangeTime_ = builderForValue.build(); + onChanged(); + } else { + latestChangeTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeLatestChangeTime(com.google.protobuf.Timestamp value) { + if (latestChangeTimeBuilder_ == null) { + if (latestChangeTime_ != null) { + latestChangeTime_ = + com.google.protobuf.Timestamp.newBuilder(latestChangeTime_) + .mergeFrom(value) + .buildPartial(); + } else { + latestChangeTime_ = value; + } + onChanged(); + } else { + latestChangeTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLatestChangeTime() { + if (latestChangeTimeBuilder_ == null) { + latestChangeTime_ = null; + onChanged(); + } else { + latestChangeTime_ = null; + latestChangeTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getLatestChangeTimeBuilder() { + + onChanged(); + return getLatestChangeTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getLatestChangeTimeOrBuilder() { + if (latestChangeTimeBuilder_ != null) { + return latestChangeTimeBuilder_.getMessageOrBuilder(); + } else { + return latestChangeTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : latestChangeTime_; + } + } + /** + * + * + *
+     * Optional. If set, only return changes made before this time (inclusive).
+     * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getLatestChangeTimeFieldBuilder() { + if (latestChangeTimeBuilder_ == null) { + latestChangeTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getLatestChangeTime(), getParentForChildren(), isClean()); + latestChangeTime_ = null; + } + return latestChangeTimeBuilder_; + } + + private int pageSize_; + /** + * + * + *
+     * Optional. The maximum number of ChangeHistoryEvent items to return.
+     * The service may return fewer than this value, even if there are additional
+     * pages. If unspecified, at most 50 items will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + /** + * + * + *
+     * Optional. The maximum number of ChangeHistoryEvent items to return.
+     * The service may return fewer than this value, even if there are additional
+     * pages. If unspecified, at most 50 items will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. The maximum number of ChangeHistoryEvent items to return.
+     * The service may return fewer than this value, even if there are additional
+     * pages. If unspecified, at most 50 items will be returned.
+     * The maximum value is 200 (higher values will be coerced to the maximum).
+     * 
+ * + * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + /** + * + * + *
+     * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `SearchChangeHistoryEvents` must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `SearchChangeHistoryEvents` must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + } + /** + * + * + *
+     * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `SearchChangeHistoryEvents` must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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; + } + /** + * + * + *
+     * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `SearchChangeHistoryEvents` must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + + pageToken_ = getDefaultInstance().getPageToken(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call.
+     * Provide this to retrieve the subsequent page. When paginating, all other
+     * parameters provided to `SearchChangeHistoryEvents` must match the call that
+     * provided the page token.
+     * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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.SearchChangeHistoryEventsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) + private static final com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest(); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchChangeHistoryEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchChangeHistoryEventsRequest(input, extensionRegistry); + } + }; + + public static com.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.SearchChangeHistoryEventsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequestOrBuilder.java new file mode 100644 index 00000000..61d883dc --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequestOrBuilder.java @@ -0,0 +1,422 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 SearchChangeHistoryEventsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The account resource for which to return change history resources.
+   * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The account. + */ + java.lang.String getAccount(); + /** + * + * + *
+   * Required. The account resource for which to return change history resources.
+   * 
+ * + * + * string account = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for account. + */ + com.google.protobuf.ByteString getAccountBytes(); + + /** + * + * + *
+   * Optional. Resource name for a child property. If set, only return changes
+   * made to this property or its child resources.
+   * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The property. + */ + java.lang.String getProperty(); + /** + * + * + *
+   * Optional. Resource name for a child property. If set, only return changes
+   * made to this property or its child resources.
+   * 
+ * + * + * string property = 2 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for property. + */ + com.google.protobuf.ByteString getPropertyBytes(); + + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that matches at
+   * least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the resourceType. + */ + java.util.List + getResourceTypeList(); + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that matches at
+   * least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of resourceType. + */ + int getResourceTypeCount(); + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that matches at
+   * least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The resourceType at the given index. + */ + com.google.analytics.admin.v1alpha.ChangeHistoryResourceType getResourceType(int index); + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that matches at
+   * least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for resourceType. + */ + java.util.List getResourceTypeValueList(); + /** + * + * + *
+   * Optional. If set, only return changes if they are for a resource that matches at
+   * least one of these types.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryResourceType resource_type = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of resourceType at the given index. + */ + int getResourceTypeValue(int index); + + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types of
+   * actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the action. + */ + java.util.List getActionList(); + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types of
+   * actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of action. + */ + int getActionCount(); + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types of
+   * actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The action at the given index. + */ + com.google.analytics.admin.v1alpha.ActionType getAction(int index); + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types of
+   * actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the enum numeric values on the wire for action. + */ + java.util.List getActionValueList(); + /** + * + * + *
+   * Optional. If set, only return changes that match one or more of these types of
+   * actions.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.ActionType action = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The enum numeric value on the wire of action at the given index. + */ + int getActionValue(int index); + + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the actorEmail. + */ + java.util.List getActorEmailList(); + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of actorEmail. + */ + int getActorEmailCount(); + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The actorEmail at the given index. + */ + java.lang.String getActorEmail(int index); + /** + * + * + *
+   * Optional. If set, only return changes if they are made by a user in this list.
+   * 
+ * + * repeated string actor_email = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the actorEmail at the given index. + */ + com.google.protobuf.ByteString getActorEmailBytes(int index); + + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the earliestChangeTime field is set. + */ + boolean hasEarliestChangeTime(); + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The earliestChangeTime. + */ + com.google.protobuf.Timestamp getEarliestChangeTime(); + /** + * + * + *
+   * Optional. If set, only return changes made after this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp earliest_change_time = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getEarliestChangeTimeOrBuilder(); + + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the latestChangeTime field is set. + */ + boolean hasLatestChangeTime(); + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The latestChangeTime. + */ + com.google.protobuf.Timestamp getLatestChangeTime(); + /** + * + * + *
+   * Optional. If set, only return changes made before this time (inclusive).
+   * 
+ * + * + * .google.protobuf.Timestamp latest_change_time = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getLatestChangeTimeOrBuilder(); + + /** + * + * + *
+   * Optional. The maximum number of ChangeHistoryEvent items to return.
+   * The service may return fewer than this value, even if there are additional
+   * pages. If unspecified, at most 50 items will be returned.
+   * The maximum value is 200 (higher values will be coerced to the maximum).
+   * 
+ * + * int32 page_size = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `SearchChangeHistoryEvents` must match the call that
+   * provided the page token.
+   * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + /** + * + * + *
+   * Optional. A page token, received from a previous `SearchChangeHistoryEvents` call.
+   * Provide this to retrieve the subsequent page. When paginating, all other
+   * parameters provided to `SearchChangeHistoryEvents` must match the call that
+   * provided the page token.
+   * 
+ * + * string page_token = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @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/SearchChangeHistoryEventsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponse.java new file mode 100644 index 00000000..87554d6b --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponse.java @@ -0,0 +1,1194 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 SearchAccounts RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} + */ +public final class SearchChangeHistoryEventsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) + SearchChangeHistoryEventsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use SearchChangeHistoryEventsResponse.newBuilder() to construct. + private SearchChangeHistoryEventsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private SearchChangeHistoryEventsResponse() { + changeHistoryEvents_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new SearchChangeHistoryEventsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private SearchChangeHistoryEventsResponse( + 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)) { + changeHistoryEvents_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.ChangeHistoryEvent>(); + mutable_bitField0_ |= 0x00000001; + } + changeHistoryEvents_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.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)) { + changeHistoryEvents_ = java.util.Collections.unmodifiableList(changeHistoryEvents_); + } + 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_SearchChangeHistoryEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.class, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.Builder.class); + } + + public static final int CHANGE_HISTORY_EVENTS_FIELD_NUMBER = 1; + private java.util.List + changeHistoryEvents_; + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + @java.lang.Override + public java.util.List + getChangeHistoryEventsList() { + return changeHistoryEvents_; + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + @java.lang.Override + public java.util.List + getChangeHistoryEventsOrBuilderList() { + return changeHistoryEvents_; + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + @java.lang.Override + public int getChangeHistoryEventsCount() { + return changeHistoryEvents_.size(); + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent getChangeHistoryEvents(int index) { + return changeHistoryEvents_.get(index); + } + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder + getChangeHistoryEventsOrBuilder(int index) { + return changeHistoryEvents_.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 < changeHistoryEvents_.size(); i++) { + output.writeMessage(1, changeHistoryEvents_.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 < changeHistoryEvents_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, changeHistoryEvents_.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.SearchChangeHistoryEventsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse other = + (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) obj; + + if (!getChangeHistoryEventsList().equals(other.getChangeHistoryEventsList())) 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 (getChangeHistoryEventsCount() > 0) { + hash = (37 * hash) + CHANGE_HISTORY_EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getChangeHistoryEventsList().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.SearchChangeHistoryEventsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseFrom( + 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.SearchChangeHistoryEventsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseFrom( + com.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.SearchChangeHistoryEventsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse 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.SearchChangeHistoryEventsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse parseFrom( + java.io.InputStream 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.SearchChangeHistoryEventsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + parseDelimitedFrom( + java.io.InputStream 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.SearchChangeHistoryEventsResponse 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.SearchChangeHistoryEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.SearchChangeHistoryEventsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 SearchAccounts RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.class, + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getChangeHistoryEventsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (changeHistoryEventsBuilder_ == null) { + changeHistoryEvents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + changeHistoryEventsBuilder_.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_SearchChangeHistoryEventsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse build() { + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse buildPartial() { + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse result = + new com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse(this); + int from_bitField0_ = bitField0_; + if (changeHistoryEventsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + changeHistoryEvents_ = java.util.Collections.unmodifiableList(changeHistoryEvents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.changeHistoryEvents_ = changeHistoryEvents_; + } else { + result.changeHistoryEvents_ = changeHistoryEventsBuilder_.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.SearchChangeHistoryEventsResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + .getDefaultInstance()) return this; + if (changeHistoryEventsBuilder_ == null) { + if (!other.changeHistoryEvents_.isEmpty()) { + if (changeHistoryEvents_.isEmpty()) { + changeHistoryEvents_ = other.changeHistoryEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.addAll(other.changeHistoryEvents_); + } + onChanged(); + } + } else { + if (!other.changeHistoryEvents_.isEmpty()) { + if (changeHistoryEventsBuilder_.isEmpty()) { + changeHistoryEventsBuilder_.dispose(); + changeHistoryEventsBuilder_ = null; + changeHistoryEvents_ = other.changeHistoryEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + changeHistoryEventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getChangeHistoryEventsFieldBuilder() + : null; + } else { + changeHistoryEventsBuilder_.addAllMessages(other.changeHistoryEvents_); + } + } + } + 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.SearchChangeHistoryEventsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + changeHistoryEvents_ = java.util.Collections.emptyList(); + + private void ensureChangeHistoryEventsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + changeHistoryEvents_ = + new java.util.ArrayList( + changeHistoryEvents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryEvent, + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder> + changeHistoryEventsBuilder_; + + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public java.util.List + getChangeHistoryEventsList() { + if (changeHistoryEventsBuilder_ == null) { + return java.util.Collections.unmodifiableList(changeHistoryEvents_); + } else { + return changeHistoryEventsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public int getChangeHistoryEventsCount() { + if (changeHistoryEventsBuilder_ == null) { + return changeHistoryEvents_.size(); + } else { + return changeHistoryEventsBuilder_.getCount(); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent getChangeHistoryEvents(int index) { + if (changeHistoryEventsBuilder_ == null) { + return changeHistoryEvents_.get(index); + } else { + return changeHistoryEventsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder setChangeHistoryEvents( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryEvent value) { + if (changeHistoryEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.set(index, value); + onChanged(); + } else { + changeHistoryEventsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder setChangeHistoryEvents( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder builderForValue) { + if (changeHistoryEventsBuilder_ == null) { + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.set(index, builderForValue.build()); + onChanged(); + } else { + changeHistoryEventsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder addChangeHistoryEvents( + com.google.analytics.admin.v1alpha.ChangeHistoryEvent value) { + if (changeHistoryEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.add(value); + onChanged(); + } else { + changeHistoryEventsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder addChangeHistoryEvents( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryEvent value) { + if (changeHistoryEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.add(index, value); + onChanged(); + } else { + changeHistoryEventsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder addChangeHistoryEvents( + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder builderForValue) { + if (changeHistoryEventsBuilder_ == null) { + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.add(builderForValue.build()); + onChanged(); + } else { + changeHistoryEventsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder addChangeHistoryEvents( + int index, com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder builderForValue) { + if (changeHistoryEventsBuilder_ == null) { + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.add(index, builderForValue.build()); + onChanged(); + } else { + changeHistoryEventsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder addAllChangeHistoryEvents( + java.lang.Iterable + values) { + if (changeHistoryEventsBuilder_ == null) { + ensureChangeHistoryEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, changeHistoryEvents_); + onChanged(); + } else { + changeHistoryEventsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder clearChangeHistoryEvents() { + if (changeHistoryEventsBuilder_ == null) { + changeHistoryEvents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + changeHistoryEventsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public Builder removeChangeHistoryEvents(int index) { + if (changeHistoryEventsBuilder_ == null) { + ensureChangeHistoryEventsIsMutable(); + changeHistoryEvents_.remove(index); + onChanged(); + } else { + changeHistoryEventsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder + getChangeHistoryEventsBuilder(int index) { + return getChangeHistoryEventsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder + getChangeHistoryEventsOrBuilder(int index) { + if (changeHistoryEventsBuilder_ == null) { + return changeHistoryEvents_.get(index); + } else { + return changeHistoryEventsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public java.util.List + getChangeHistoryEventsOrBuilderList() { + if (changeHistoryEventsBuilder_ != null) { + return changeHistoryEventsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(changeHistoryEvents_); + } + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder + addChangeHistoryEventsBuilder() { + return getChangeHistoryEventsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.ChangeHistoryEvent.getDefaultInstance()); + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder + addChangeHistoryEventsBuilder(int index) { + return getChangeHistoryEventsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.ChangeHistoryEvent.getDefaultInstance()); + } + /** + * + * + *
+     * Results that were accessible to the caller.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + public java.util.List + getChangeHistoryEventsBuilderList() { + return getChangeHistoryEventsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryEvent, + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder> + getChangeHistoryEventsFieldBuilder() { + if (changeHistoryEventsBuilder_ == null) { + changeHistoryEventsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ChangeHistoryEvent, + com.google.analytics.admin.v1alpha.ChangeHistoryEvent.Builder, + com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder>( + changeHistoryEvents_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + changeHistoryEvents_ = null; + } + return changeHistoryEventsBuilder_; + } + + 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.SearchChangeHistoryEventsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) + private static final com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse(); + } + + public static com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchChangeHistoryEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new SearchChangeHistoryEventsResponse(input, extensionRegistry); + } + }; + + public static com.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.SearchChangeHistoryEventsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponseOrBuilder.java new file mode 100644 index 00000000..2eb7cc15 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponseOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 SearchChangeHistoryEventsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + java.util.List + getChangeHistoryEventsList(); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + com.google.analytics.admin.v1alpha.ChangeHistoryEvent getChangeHistoryEvents(int index); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + int getChangeHistoryEventsCount(); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + java.util.List + getChangeHistoryEventsOrBuilderList(); + /** + * + * + *
+   * Results that were accessible to the caller.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ChangeHistoryEvent change_history_events = 1; + * + */ + com.google.analytics.admin.v1alpha.ChangeHistoryEventOrBuilder getChangeHistoryEventsOrBuilder( + 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/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 712cc601..872d6abb 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 @@ -140,7 +140,7 @@ service AnalyticsAdminService { // https://support.google.com/analytics/answer/6154772 // // Returns an error if the target is not found, or is not an GA4 Property. - rpc DeleteProperty(DeletePropertyRequest) returns (google.protobuf.Empty) { + rpc DeleteProperty(DeletePropertyRequest) returns (Property) { option (google.api.http) = { delete: "/v1alpha/{name=properties/*}" }; @@ -358,23 +358,6 @@ service AnalyticsAdminService { option (google.api.method_signature) = "ios_app_data_stream,update_mask"; } - // Creates an iOS app stream with the specified location and attributes. - // - // Note that an iOS app stream must be linked to a Firebase app to receive - // traffic. - // - // To create a working app stream, make sure your property is linked to a - // Firebase project. Then, use the Firebase API to create a Firebase app, - // which will also create an appropriate data stream in Analytics (may take up - // to 24 hours). - rpc CreateIosAppDataStream(CreateIosAppDataStreamRequest) returns (IosAppDataStream) { - option (google.api.http) = { - post: "/v1alpha/{parent=properties/*}/iosAppDataStreams" - body: "ios_app_data_stream" - }; - option (google.api.method_signature) = "parent,ios_app_data_stream"; - } - // Returns child iOS app data streams under the specified parent property. // // iOS app data streams will be excluded if the caller does not have access. @@ -411,23 +394,6 @@ service AnalyticsAdminService { option (google.api.method_signature) = "android_app_data_stream,update_mask"; } - // Creates an Android app stream with the specified location and attributes. - // - // Note that an Android app stream must be linked to a Firebase app to receive - // traffic. - // - // To create a working app stream, make sure your property is linked to a - // Firebase project. Then, use the Firebase API to create a Firebase app, - // which will also create an appropriate data stream in Analytics (may take up - // to 24 hours). - rpc CreateAndroidAppDataStream(CreateAndroidAppDataStreamRequest) returns (AndroidAppDataStream) { - option (google.api.http) = { - post: "/v1alpha/{parent=properties/*}/androidAppDataStreams" - body: "android_app_data_stream" - }; - option (google.api.method_signature) = "parent,android_app_data_stream"; - } - // Returns child android app streams under the specified parent property. // // Android app streams will be excluded if the caller does not have access. @@ -548,6 +514,15 @@ service AnalyticsAdminService { }; option (google.api.method_signature) = "name"; } + + // Searches through all changes to an account or its children given the + // specified set of filters. + rpc SearchChangeHistoryEvents(SearchChangeHistoryEventsRequest) returns (SearchChangeHistoryEventsResponse) { + option (google.api.http) = { + post: "/v1alpha/{account=accounts/*}:searchChangeHistoryEvents" + body: "*" + }; + } } // Request message for GetAccount RPC. @@ -1071,21 +1046,6 @@ message UpdateIosAppDataStreamRequest { google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } -// Request message for CreateIosAppDataStream RPC. -message CreateIosAppDataStreamRequest { - // Required. The iOS app data stream to create. - IosAppDataStream ios_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The parent resource where this ios app data stream will be created. - // Format: properties/123 - string parent = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/IosAppDataStream" - } - ]; -} - // Request message for ListIosAppDataStreams RPC. message ListIosAppDataStreamsRequest { // Required. The name of the parent property. @@ -1158,21 +1118,6 @@ message UpdateAndroidAppDataStreamRequest { google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; } -// Request message for CreateAndroidAppDataStream RPC. -message CreateAndroidAppDataStreamRequest { - // Required. The android app stream to create. - AndroidAppDataStream android_app_data_stream = 1 [(google.api.field_behavior) = REQUIRED]; - - // Required. The parent resource where this android app data stream will be created. - // Format: properties/123 - string parent = 2 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - child_type: "analyticsadmin.googleapis.com/AndroidAppDataStream" - } - ]; -} - // Request message for ListAndroidAppDataStreams RPC. message ListAndroidAppDataStreamsRequest { // Required. The name of the parent property. @@ -1429,3 +1374,62 @@ message ListAccountSummariesResponse { // If this field is omitted, there are no subsequent pages. string next_page_token = 2; } + +// Request message for SearchChangeHistoryEvents RPC. +message SearchChangeHistoryEventsRequest { + // Required. The account resource for which to return change history resources. + string account = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Account" + } + ]; + + // Optional. Resource name for a child property. If set, only return changes + // made to this property or its child resources. + string property = 2 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/Property" + } + ]; + + // Optional. If set, only return changes if they are for a resource that matches at + // least one of these types. + repeated ChangeHistoryResourceType resource_type = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, only return changes that match one or more of these types of + // actions. + repeated ActionType action = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, only return changes if they are made by a user in this list. + repeated string actor_email = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, only return changes made after this time (inclusive). + google.protobuf.Timestamp earliest_change_time = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, only return changes made before this time (inclusive). + google.protobuf.Timestamp latest_change_time = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of ChangeHistoryEvent items to return. + // The service may return fewer than this value, even if there are additional + // pages. If unspecified, at most 50 items will be returned. + // The maximum value is 200 (higher values will be coerced to the maximum). + int32 page_size = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous `SearchChangeHistoryEvents` call. + // Provide this to retrieve the subsequent page. When paginating, all other + // parameters provided to `SearchChangeHistoryEvents` must match the call that + // provided the page token. + string page_token = 9 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for SearchAccounts RPC. +message SearchChangeHistoryEventsResponse { + // Results that were accessible to the caller. + repeated ChangeHistoryEvent change_history_events = 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; +} 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 3dfa5422..568d7471 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 @@ -131,6 +131,64 @@ enum IndustryCategory { SHOPPING = 26; } +// Different kinds of actors that can make changes to Google Analytics +// resources. +enum ActorType { + // Unknown or unspecified actor type. + ACTOR_TYPE_UNSPECIFIED = 0; + + // Changes made by the user specified in actor_email. + USER = 1; + + // Changes made by the Google Analytics system. + SYSTEM = 2; + + // Changes made by Google Analytics support team staff. + SUPPORT = 3; +} + +// Types of actions that may change a resource. +enum ActionType { + // Action type unknown or not specified. + ACTION_TYPE_UNSPECIFIED = 0; + + // Resource was created in this change. + CREATED = 1; + + // Resource was updated in this change. + UPDATED = 2; + + // Resource was deleted in this change. + DELETED = 3; +} + +// Types of resources whose changes may be returned from change history. +enum ChangeHistoryResourceType { + // Resource type unknown or not specified. + CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED = 0; + + // Account resource + ACCOUNT = 1; + + // Property resource + PROPERTY = 2; + + // WebDataStream resource + WEB_DATA_STREAM = 3; + + // AndroidAppDataStream resource + ANDROID_APP_DATA_STREAM = 4; + + // IosAppDataStream resource + IOS_APP_DATA_STREAM = 5; + + // FirebaseLink resource + FIREBASE_LINK = 6; + + // GoogleAdsLink resource + GOOGLE_ADS_LINK = 7; +} + // A resource message representing a Google Analytics account. message Account { option (google.api.resource) = { @@ -194,7 +252,7 @@ message Property { // Example: AUTOMOTIVE, FOOD_AND_DRINK IndustryCategory industry_category = 6; - // Reporting Time Zone, used as the day boundary for reports, regardless of + // Required. Reporting Time Zone, used as the day boundary for reports, regardless of // where the data originates. If the time zone honors DST, Analytics will // automatically adjust for the changes. // @@ -203,7 +261,7 @@ message Property { // // Format: https://www.iana.org/time-zones // Example: "America/Los_Angeles" - string time_zone = 7; + string time_zone = 7 [(google.api.field_behavior) = REQUIRED]; // The currency type used in reports involving monetary values. // @@ -212,9 +270,14 @@ message Property { // Examples: "USD", "EUR", "JPY" string currency_code = 8; - // Output only. Indicates whether this Property is soft-deleted or not. Deleted properties - // are excluded from List results unless specifically requested. - bool deleted = 9 [(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]; + + // Output only. If set, the time at which this trashed property will be permanently + // deleted. If not set, then this property is not currently in the trash can + // and is not slated to be deleted. + google.protobuf.Timestamp expire_time = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; } // A resource message representing a Google Analytics Android app stream. @@ -586,3 +649,75 @@ message PropertySummary { // Display name for the property referred to in this account summary. string display_name = 2; } + +// A set of changes within a Google Analytics account or its child properties +// that resulted from the same cause. Common causes would be updates made in the +// Google Analytics UI, changes from customer support, or automatic Google +// Analytics system changes. +message ChangeHistoryEvent { + // ID of this change history event. This ID is unique across Google Analytics. + string id = 1; + + // Time when change was made. + google.protobuf.Timestamp change_time = 2; + + // The type of actor that made this change. + ActorType actor_type = 3; + + // Email address of the Google account that made the change. This will be a + // valid email address if the actor field is set to USER, and empty otherwise. + // Google accounts that have been deleted will cause an error. + string user_actor_email = 4; + + // If true, then the list of changes returned was filtered, and does not + // represent all changes that occurred in this event. + bool changes_filtered = 5; + + // A list of changes made in this change history event that fit the filters + // specified in SearchChangeHistoryEventsRequest. + repeated ChangeHistoryChange changes = 6; +} + +// A description of a change to a single Google Analytics resource. +message ChangeHistoryChange { + // A snapshot of a resource as before or after the result of a change in + // change history. + message ChangeHistoryResource { + oneof resource { + // A snapshot of an Account resource in change history. + Account account = 1; + + // A snapshot of a Property resource in change history. + Property property = 2; + + // A snapshot of a WebDataStream resource in change history. + WebDataStream web_data_stream = 3; + + // A snapshot of an AndroidAppDataStream resource in change history. + AndroidAppDataStream android_app_data_stream = 4; + + // A snapshot of an IosAppDataStream resource in change history. + IosAppDataStream ios_app_data_stream = 5; + + // A snapshot of a FirebaseLink resource in change history. + FirebaseLink firebase_link = 6; + + // A snapshot of a GoogleAdsLink resource in change history. + GoogleAdsLink google_ads_link = 7; + } + } + + // Resource name of the resource whose changes are described by this entry. + string resource = 1; + + // The type of action that changed this resource. + ActionType action = 2; + + // Resource contents from before the change was made. If this resource was + // created in this change, this field will be missing. + ChangeHistoryResource resource_before_change = 3; + + // Resource contents from after the change was made. If this resource was + // deleted in this change, this field will be missing. + ChangeHistoryResource resource_after_change = 4; +} diff --git a/synth.metadata b/synth.metadata index 6d514883..abc9a9d7 100644 --- a/synth.metadata +++ b/synth.metadata @@ -4,15 +4,15 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/java-analytics-admin.git", - "sha": "5175561841917383aaf72efa000512f75843c951" + "sha": "439f8060cbaacca56dad0cb8356b6d2efcf4c147" } }, { "git": { "name": "googleapis-gen", "remote": "https://github.com/googleapis/googleapis-gen.git", - "sha": "ebd77e76effb65c4fba8c64f31c15062c250a4c2", - "internalRef": "362856902" + "sha": "ee560452477d92572edb133386e7129532db8ba6", + "internalRef": "370749341" } }, { @@ -111,6 +111,8 @@ "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryName.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryOrBuilder.java", + "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActionType.java", + "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ActorType.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStream.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AndroidAppDataStreamName.java", @@ -135,14 +137,15 @@ "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksRequestOrBuilder.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponse.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/BatchUpdateUserLinksResponseOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateAndroidAppDataStreamRequestOrBuilder.java", + "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java", + "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChangeOrBuilder.java", + "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEvent.java", + "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryEventOrBuilder.java", + "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequest.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateFirebaseLinkRequestOrBuilder.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequest.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateGoogleAdsLinkRequestOrBuilder.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequest.java", - "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateIosAppDataStreamRequestOrBuilder.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequest.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreatePropertyRequestOrBuilder.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateUserLinkRequest.java", @@ -249,6 +252,10 @@ "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponse.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ProvisionAccountTicketResponseOrBuilder.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java", + "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequest.java", + "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsRequestOrBuilder.java", + "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponse.java", + "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchChangeHistoryEventsResponseOrBuilder.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequest.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAccountRequestOrBuilder.java", "proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateAndroidAppDataStreamRequest.java", From 16ff4a6f4291e1668b710807722cbd3901d51f02 Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Tue, 1 Jun 2021 14:44:26 -0400 Subject: [PATCH 38/42] feat: add CreateCustomDimension, GetCustomDimension, UpdateCustomDimension, ListCustomDimensions, ArchiveCustomDimension methods to the API (#221) --- .github/generated-files-bot.yml | 1 + .kokoro/build.sh | 4 +- .../v1alpha/AnalyticsAdminServiceClient.java | 2857 +++++++- .../AnalyticsAdminServiceSettings.java | 279 + .../admin/v1alpha/gapic_metadata.json | 63 + .../stub/AnalyticsAdminServiceStub.java | 160 + .../AnalyticsAdminServiceStubSettings.java | 910 ++- .../stub/GrpcAnalyticsAdminServiceStub.java | 906 +++ .../AnalyticsAdminServiceClientTest.java | 1707 ++++- .../MockAnalyticsAdminServiceImpl.java | 450 ++ .../v1alpha/AnalyticsAdminServiceGrpc.java | 6039 ++++++++++++----- .../admin/v1alpha/AnalyticsAdminProto.java | 1059 ++- .../ArchiveCustomDimensionRequest.java | 665 ++ ...rchiveCustomDimensionRequestOrBuilder.java | 56 + .../v1alpha/ArchiveCustomMetricRequest.java | 662 ++ .../ArchiveCustomMetricRequestOrBuilder.java | 56 + .../admin/v1alpha/ChangeHistoryChange.java | 1877 ++++- .../v1alpha/ChangeHistoryResourceType.java | 110 + .../admin/v1alpha/ConversionEvent.java | 1212 ++++ .../admin/v1alpha/ConversionEventName.java | 198 + .../v1alpha/ConversionEventOrBuilder.java | 130 + .../v1alpha/CreateConversionEventRequest.java | 969 +++ ...CreateConversionEventRequestOrBuilder.java | 97 + .../v1alpha/CreateCustomDimensionRequest.java | 962 +++ ...CreateCustomDimensionRequestOrBuilder.java | 95 + .../v1alpha/CreateCustomMetricRequest.java | 956 +++ .../CreateCustomMetricRequestOrBuilder.java | 95 + ...reateMeasurementProtocolSecretRequest.java | 1008 +++ ...urementProtocolSecretRequestOrBuilder.java | 102 + .../admin/v1alpha/CustomDimension.java | 1696 +++++ .../admin/v1alpha/CustomDimensionName.java | 168 + .../v1alpha/CustomDimensionOrBuilder.java | 195 + .../analytics/admin/v1alpha/CustomMetric.java | 2075 ++++++ .../admin/v1alpha/CustomMetricName.java | 168 + .../admin/v1alpha/CustomMetricOrBuilder.java | 207 + .../v1alpha/DeleteConversionEventRequest.java | 672 ++ ...DeleteConversionEventRequestOrBuilder.java | 58 + ...eleteMeasurementProtocolSecretRequest.java | 700 ++ ...urementProtocolSecretRequestOrBuilder.java | 62 + .../v1alpha/GetConversionEventRequest.java | 668 ++ .../GetConversionEventRequestOrBuilder.java | 58 + .../v1alpha/GetCustomDimensionRequest.java | 661 ++ .../GetCustomDimensionRequestOrBuilder.java | 56 + .../admin/v1alpha/GetCustomMetricRequest.java | 658 ++ .../GetCustomMetricRequestOrBuilder.java | 56 + .../GetGoogleSignalsSettingsRequest.java | 670 ++ ...GoogleSignalsSettingsRequestOrBuilder.java | 56 + .../GetMeasurementProtocolSecretRequest.java | 693 ++ ...urementProtocolSecretRequestOrBuilder.java | 62 + .../admin/v1alpha/GoogleAdsLink.java | 24 +- .../admin/v1alpha/GoogleAdsLinkOrBuilder.java | 6 +- .../admin/v1alpha/GoogleSignalsConsent.java | 184 + .../admin/v1alpha/GoogleSignalsSettings.java | 983 +++ .../v1alpha/GoogleSignalsSettingsName.java | 169 + .../GoogleSignalsSettingsOrBuilder.java | 108 + .../admin/v1alpha/GoogleSignalsState.java | 181 + .../v1alpha/ListConversionEventsRequest.java | 962 +++ .../ListConversionEventsRequestOrBuilder.java | 102 + .../v1alpha/ListConversionEventsResponse.java | 1160 ++++ ...ListConversionEventsResponseOrBuilder.java | 105 + .../v1alpha/ListCustomDimensionsRequest.java | 955 +++ .../ListCustomDimensionsRequestOrBuilder.java | 100 + .../v1alpha/ListCustomDimensionsResponse.java | 1160 ++++ ...ListCustomDimensionsResponseOrBuilder.java | 105 + .../v1alpha/ListCustomMetricsRequest.java | 949 +++ .../ListCustomMetricsRequestOrBuilder.java | 100 + .../v1alpha/ListCustomMetricsResponse.java | 1152 ++++ .../ListCustomMetricsResponseOrBuilder.java | 104 + ...ListMeasurementProtocolSecretsRequest.java | 995 +++ ...rementProtocolSecretsRequestOrBuilder.java | 108 + ...istMeasurementProtocolSecretsResponse.java | 1238 ++++ ...ementProtocolSecretsResponseOrBuilder.java | 117 + .../v1alpha/MeasurementProtocolSecret.java | 1033 +++ .../MeasurementProtocolSecretName.java | 241 + .../MeasurementProtocolSecretOrBuilder.java | 110 + .../admin/v1alpha/ResourcesProto.java | 383 +- .../v1alpha/UpdateCustomDimensionRequest.java | 1052 +++ ...UpdateCustomDimensionRequestOrBuilder.java | 104 + .../v1alpha/UpdateCustomMetricRequest.java | 1046 +++ .../UpdateCustomMetricRequestOrBuilder.java | 104 + .../UpdateGoogleSignalsSettingsRequest.java | 1099 +++ ...GoogleSignalsSettingsRequestOrBuilder.java | 114 + ...pdateMeasurementProtocolSecretRequest.java | 1065 +++ ...urementProtocolSecretRequestOrBuilder.java | 102 + .../analytics/admin/v1alpha/UserLink.java | 56 +- .../admin/v1alpha/UserLinkOrBuilder.java | 16 +- .../admin/v1alpha/analytics_admin.proto | 569 ++ .../analytics/admin/v1alpha/resources.proto | 287 +- 88 files changed, 49481 insertions(+), 2291 deletions(-) create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventName.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionName.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricName.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsConsent.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettings.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsName.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsState.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponse.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponseOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponse.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponseOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponse.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponseOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponse.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponseOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequestOrBuilder.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequest.java create mode 100644 proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequestOrBuilder.java diff --git a/.github/generated-files-bot.yml b/.github/generated-files-bot.yml index 47c2ba13..c644a24e 100644 --- a/.github/generated-files-bot.yml +++ b/.github/generated-files-bot.yml @@ -9,3 +9,4 @@ ignoreAuthors: - 'renovate-bot' - 'yoshi-automation' - 'release-please[bot]' +- 'gcf-owl-bot[bot]' diff --git a/.kokoro/build.sh b/.kokoro/build.sh index 4d93f976..6774be95 100755 --- a/.kokoro/build.sh +++ b/.kokoro/build.sh @@ -23,8 +23,8 @@ cd ${scriptDir}/.. # include common functions source ${scriptDir}/common.sh -# Print out Java version -java -version +# Print out Maven & Java version +mvn -version echo ${JOB_TYPE} # attempt to install 3 times with exponential backoff (starting with 10 seconds) 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 95c10d12..67308dde 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 @@ -4840,6 +4840,698 @@ public final DataSharingSettings getDataSharingSettings(GetDataSharingSettingsRe return stub.getDataSharingSettingsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single "GA4" MeasurementProtocolSecret. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   MeasurementProtocolSecretName name =
+   *       MeasurementProtocolSecretName.of(
+   *           "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]");
+   *   MeasurementProtocolSecret response =
+   *       analyticsAdminServiceClient.getMeasurementProtocolSecret(name);
+   * }
+   * }
+ * + * @param name Required. The name of the measurement protocol secret to lookup. Format: + * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * Note: Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a + * parent. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MeasurementProtocolSecret getMeasurementProtocolSecret( + MeasurementProtocolSecretName name) { + GetMeasurementProtocolSecretRequest request = + GetMeasurementProtocolSecretRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getMeasurementProtocolSecret(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single "GA4" MeasurementProtocolSecret. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String name =
+   *       MeasurementProtocolSecretName.of(
+   *               "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+   *           .toString();
+   *   MeasurementProtocolSecret response =
+   *       analyticsAdminServiceClient.getMeasurementProtocolSecret(name);
+   * }
+   * }
+ * + * @param name Required. The name of the measurement protocol secret to lookup. Format: + * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * Note: Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a + * parent. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MeasurementProtocolSecret getMeasurementProtocolSecret(String name) { + GetMeasurementProtocolSecretRequest request = + GetMeasurementProtocolSecretRequest.newBuilder().setName(name).build(); + return getMeasurementProtocolSecret(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single "GA4" MeasurementProtocolSecret. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetMeasurementProtocolSecretRequest request =
+   *       GetMeasurementProtocolSecretRequest.newBuilder()
+   *           .setName(
+   *               MeasurementProtocolSecretName.of(
+   *                       "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+   *                   .toString())
+   *           .build();
+   *   MeasurementProtocolSecret response =
+   *       analyticsAdminServiceClient.getMeasurementProtocolSecret(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 MeasurementProtocolSecret getMeasurementProtocolSecret( + GetMeasurementProtocolSecretRequest request) { + return getMeasurementProtocolSecretCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single "GA4" MeasurementProtocolSecret. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetMeasurementProtocolSecretRequest request =
+   *       GetMeasurementProtocolSecretRequest.newBuilder()
+   *           .setName(
+   *               MeasurementProtocolSecretName.of(
+   *                       "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.getMeasurementProtocolSecretCallable().futureCall(request);
+   *   // Do something.
+   *   MeasurementProtocolSecret response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getMeasurementProtocolSecretCallable() { + return stub.getMeasurementProtocolSecretCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns child MeasurementProtocolSecrets under the specified parent Property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   WebDataStreamName parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]");
+   *   for (MeasurementProtocolSecret element :
+   *       analyticsAdminServiceClient.listMeasurementProtocolSecrets(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the parent stream. Any type of stream + * (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. Format: + * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets( + WebDataStreamName parent) { + ListMeasurementProtocolSecretsRequest request = + ListMeasurementProtocolSecretsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listMeasurementProtocolSecrets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns child MeasurementProtocolSecrets under the specified parent Property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String parent =
+   *       MeasurementProtocolSecretName.of(
+   *               "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+   *           .toString();
+   *   for (MeasurementProtocolSecret element :
+   *       analyticsAdminServiceClient.listMeasurementProtocolSecrets(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the parent stream. Any type of stream + * (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. Format: + * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets( + String parent) { + ListMeasurementProtocolSecretsRequest request = + ListMeasurementProtocolSecretsRequest.newBuilder().setParent(parent).build(); + return listMeasurementProtocolSecrets(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns child MeasurementProtocolSecrets under the specified parent Property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListMeasurementProtocolSecretsRequest request =
+   *       ListMeasurementProtocolSecretsRequest.newBuilder()
+   *           .setParent(
+   *               MeasurementProtocolSecretName.of(
+   *                       "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (MeasurementProtocolSecret element :
+   *       analyticsAdminServiceClient.listMeasurementProtocolSecrets(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 ListMeasurementProtocolSecretsPagedResponse listMeasurementProtocolSecrets( + ListMeasurementProtocolSecretsRequest request) { + return listMeasurementProtocolSecretsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns child MeasurementProtocolSecrets under the specified parent Property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListMeasurementProtocolSecretsRequest request =
+   *       ListMeasurementProtocolSecretsRequest.newBuilder()
+   *           .setParent(
+   *               MeasurementProtocolSecretName.of(
+   *                       "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+   *                   .toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient
+   *           .listMeasurementProtocolSecretsPagedCallable()
+   *           .futureCall(request);
+   *   // Do something.
+   *   for (MeasurementProtocolSecret element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsPagedResponse> + listMeasurementProtocolSecretsPagedCallable() { + return stub.listMeasurementProtocolSecretsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns child MeasurementProtocolSecrets under the specified parent Property. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   WebDataStreamName parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]");
+   *   MeasurementProtocolSecret measurementProtocolSecret =
+   *       MeasurementProtocolSecret.newBuilder().build();
+   *   MeasurementProtocolSecret response =
+   *       analyticsAdminServiceClient.createMeasurementProtocolSecret(
+   *           parent, measurementProtocolSecret);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this secret will be created. Any type of + * stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. Format: + * properties/{property}/webDataStreams/{webDataStream} + * @param measurementProtocolSecret Required. The measurement protocol secret to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MeasurementProtocolSecret createMeasurementProtocolSecret( + WebDataStreamName parent, MeasurementProtocolSecret measurementProtocolSecret) { + CreateMeasurementProtocolSecretRequest request = + CreateMeasurementProtocolSecretRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setMeasurementProtocolSecret(measurementProtocolSecret) + .build(); + return createMeasurementProtocolSecret(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a measurement protocol secret. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String parent =
+   *       MeasurementProtocolSecretName.of(
+   *               "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+   *           .toString();
+   *   MeasurementProtocolSecret measurementProtocolSecret =
+   *       MeasurementProtocolSecret.newBuilder().build();
+   *   MeasurementProtocolSecret response =
+   *       analyticsAdminServiceClient.createMeasurementProtocolSecret(
+   *           parent, measurementProtocolSecret);
+   * }
+   * }
+ * + * @param parent Required. The parent resource where this secret will be created. Any type of + * stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a parent. Format: + * properties/{property}/webDataStreams/{webDataStream} + * @param measurementProtocolSecret Required. The measurement protocol secret to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MeasurementProtocolSecret createMeasurementProtocolSecret( + String parent, MeasurementProtocolSecret measurementProtocolSecret) { + CreateMeasurementProtocolSecretRequest request = + CreateMeasurementProtocolSecretRequest.newBuilder() + .setParent(parent) + .setMeasurementProtocolSecret(measurementProtocolSecret) + .build(); + return createMeasurementProtocolSecret(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a measurement protocol secret. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CreateMeasurementProtocolSecretRequest request =
+   *       CreateMeasurementProtocolSecretRequest.newBuilder()
+   *           .setParent(
+   *               MeasurementProtocolSecretName.of(
+   *                       "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+   *                   .toString())
+   *           .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
+   *           .build();
+   *   MeasurementProtocolSecret response =
+   *       analyticsAdminServiceClient.createMeasurementProtocolSecret(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 MeasurementProtocolSecret createMeasurementProtocolSecret( + CreateMeasurementProtocolSecretRequest request) { + return createMeasurementProtocolSecretCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a measurement protocol secret. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CreateMeasurementProtocolSecretRequest request =
+   *       CreateMeasurementProtocolSecretRequest.newBuilder()
+   *           .setParent(
+   *               MeasurementProtocolSecretName.of(
+   *                       "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+   *                   .toString())
+   *           .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.createMeasurementProtocolSecretCallable().futureCall(request);
+   *   // Do something.
+   *   MeasurementProtocolSecret response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createMeasurementProtocolSecretCallable() { + return stub.createMeasurementProtocolSecretCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes target MeasurementProtocolSecret. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   MeasurementProtocolSecretName name =
+   *       MeasurementProtocolSecretName.of(
+   *           "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]");
+   *   analyticsAdminServiceClient.deleteMeasurementProtocolSecret(name);
+   * }
+   * }
+ * + * @param name Required. The name of the MeasurementProtocolSecret to delete. Format: + * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * Note: Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a + * parent. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteMeasurementProtocolSecret(MeasurementProtocolSecretName name) { + DeleteMeasurementProtocolSecretRequest request = + DeleteMeasurementProtocolSecretRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteMeasurementProtocolSecret(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes target MeasurementProtocolSecret. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String name =
+   *       MeasurementProtocolSecretName.of(
+   *               "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+   *           .toString();
+   *   analyticsAdminServiceClient.deleteMeasurementProtocolSecret(name);
+   * }
+   * }
+ * + * @param name Required. The name of the MeasurementProtocolSecret to delete. Format: + * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + * Note: Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) may be a + * parent. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteMeasurementProtocolSecret(String name) { + DeleteMeasurementProtocolSecretRequest request = + DeleteMeasurementProtocolSecretRequest.newBuilder().setName(name).build(); + deleteMeasurementProtocolSecret(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes target MeasurementProtocolSecret. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DeleteMeasurementProtocolSecretRequest request =
+   *       DeleteMeasurementProtocolSecretRequest.newBuilder()
+   *           .setName(
+   *               MeasurementProtocolSecretName.of(
+   *                       "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+   *                   .toString())
+   *           .build();
+   *   analyticsAdminServiceClient.deleteMeasurementProtocolSecret(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 deleteMeasurementProtocolSecret( + DeleteMeasurementProtocolSecretRequest request) { + deleteMeasurementProtocolSecretCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes target MeasurementProtocolSecret. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DeleteMeasurementProtocolSecretRequest request =
+   *       DeleteMeasurementProtocolSecretRequest.newBuilder()
+   *           .setName(
+   *               MeasurementProtocolSecretName.of(
+   *                       "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]")
+   *                   .toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.deleteMeasurementProtocolSecretCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + deleteMeasurementProtocolSecretCallable() { + return stub.deleteMeasurementProtocolSecretCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a measurement protocol secret. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   MeasurementProtocolSecret measurementProtocolSecret =
+   *       MeasurementProtocolSecret.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   MeasurementProtocolSecret response =
+   *       analyticsAdminServiceClient.updateMeasurementProtocolSecret(
+   *           measurementProtocolSecret, updateMask);
+   * }
+   * }
+ * + * @param measurementProtocolSecret Required. The measurement protocol secret to update. + * @param updateMask The list of fields to be updated. Omitted fields will not be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final MeasurementProtocolSecret updateMeasurementProtocolSecret( + MeasurementProtocolSecret measurementProtocolSecret, FieldMask updateMask) { + UpdateMeasurementProtocolSecretRequest request = + UpdateMeasurementProtocolSecretRequest.newBuilder() + .setMeasurementProtocolSecret(measurementProtocolSecret) + .setUpdateMask(updateMask) + .build(); + return updateMeasurementProtocolSecret(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a measurement protocol secret. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   UpdateMeasurementProtocolSecretRequest request =
+   *       UpdateMeasurementProtocolSecretRequest.newBuilder()
+   *           .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   MeasurementProtocolSecret response =
+   *       analyticsAdminServiceClient.updateMeasurementProtocolSecret(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 MeasurementProtocolSecret updateMeasurementProtocolSecret( + UpdateMeasurementProtocolSecretRequest request) { + return updateMeasurementProtocolSecretCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a measurement protocol secret. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   UpdateMeasurementProtocolSecretRequest request =
+   *       UpdateMeasurementProtocolSecretRequest.newBuilder()
+   *           .setMeasurementProtocolSecret(MeasurementProtocolSecret.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.updateMeasurementProtocolSecretCallable().futureCall(request);
+   *   // Do something.
+   *   MeasurementProtocolSecret response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateMeasurementProtocolSecretCallable() { + return stub.updateMeasurementProtocolSecretCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches through all changes to an account or its children given the specified set of filters. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   SearchChangeHistoryEventsRequest request =
+   *       SearchChangeHistoryEventsRequest.newBuilder()
+   *           .setAccount(AccountName.of("[ACCOUNT]").toString())
+   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
+   *           .addAllResourceType(new ArrayList())
+   *           .addAllAction(new ArrayList())
+   *           .addAllActorEmail(new ArrayList())
+   *           .setEarliestChangeTime(Timestamp.newBuilder().build())
+   *           .setLatestChangeTime(Timestamp.newBuilder().build())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (ChangeHistoryEvent element :
+   *       analyticsAdminServiceClient.searchChangeHistoryEvents(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 SearchChangeHistoryEventsPagedResponse searchChangeHistoryEvents( + SearchChangeHistoryEventsRequest request) { + return searchChangeHistoryEventsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Searches through all changes to an account or its children given the specified set of filters. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   SearchChangeHistoryEventsRequest request =
+   *       SearchChangeHistoryEventsRequest.newBuilder()
+   *           .setAccount(AccountName.of("[ACCOUNT]").toString())
+   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
+   *           .addAllResourceType(new ArrayList())
+   *           .addAllAction(new ArrayList())
+   *           .addAllActorEmail(new ArrayList())
+   *           .setEarliestChangeTime(Timestamp.newBuilder().build())
+   *           .setLatestChangeTime(Timestamp.newBuilder().build())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.searchChangeHistoryEventsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ChangeHistoryEvent element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable< + SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsPagedResponse> + searchChangeHistoryEventsPagedCallable() { + return stub.searchChangeHistoryEventsPagedCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Searches through all changes to an account or its children given the specified set of filters. @@ -4849,109 +5541,1767 @@ public final DataSharingSettings getDataSharingSettings(GetDataSharingSettingsRe *
{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   SearchChangeHistoryEventsRequest request =
-   *       SearchChangeHistoryEventsRequest.newBuilder()
-   *           .setAccount(AccountName.of("[ACCOUNT]").toString())
-   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
-   *           .addAllResourceType(new ArrayList())
-   *           .addAllAction(new ArrayList())
-   *           .addAllActorEmail(new ArrayList())
-   *           .setEarliestChangeTime(Timestamp.newBuilder().build())
-   *           .setLatestChangeTime(Timestamp.newBuilder().build())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
-   *           .build();
-   *   for (ChangeHistoryEvent element :
-   *       analyticsAdminServiceClient.searchChangeHistoryEvents(request).iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
+   *   SearchChangeHistoryEventsRequest request =
+   *       SearchChangeHistoryEventsRequest.newBuilder()
+   *           .setAccount(AccountName.of("[ACCOUNT]").toString())
+   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
+   *           .addAllResourceType(new ArrayList())
+   *           .addAllAction(new ArrayList())
+   *           .addAllActorEmail(new ArrayList())
+   *           .setEarliestChangeTime(Timestamp.newBuilder().build())
+   *           .setLatestChangeTime(Timestamp.newBuilder().build())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     SearchChangeHistoryEventsResponse response =
+   *         analyticsAdminServiceClient.searchChangeHistoryEventsCallable().call(request);
+   *     for (ChangeHistoryEvent element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + searchChangeHistoryEventsCallable() { + return stub.searchChangeHistoryEventsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for Google Signals settings for a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GoogleSignalsSettingsName name = GoogleSignalsSettingsName.of("[PROPERTY]");
+   *   GoogleSignalsSettings response = analyticsAdminServiceClient.getGoogleSignalsSettings(name);
+   * }
+   * }
+ * + * @param name Required. The name of the google signals settings to retrieve. Format: + * properties/{property}/googleSignalsSettings + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GoogleSignalsSettings getGoogleSignalsSettings(GoogleSignalsSettingsName name) { + GetGoogleSignalsSettingsRequest request = + GetGoogleSignalsSettingsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getGoogleSignalsSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for Google Signals settings for a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String name = GoogleSignalsSettingsName.of("[PROPERTY]").toString();
+   *   GoogleSignalsSettings response = analyticsAdminServiceClient.getGoogleSignalsSettings(name);
+   * }
+   * }
+ * + * @param name Required. The name of the google signals settings to retrieve. Format: + * properties/{property}/googleSignalsSettings + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GoogleSignalsSettings getGoogleSignalsSettings(String name) { + GetGoogleSignalsSettingsRequest request = + GetGoogleSignalsSettingsRequest.newBuilder().setName(name).build(); + return getGoogleSignalsSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for Google Signals settings for a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetGoogleSignalsSettingsRequest request =
+   *       GetGoogleSignalsSettingsRequest.newBuilder()
+   *           .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString())
+   *           .build();
+   *   GoogleSignalsSettings response =
+   *       analyticsAdminServiceClient.getGoogleSignalsSettings(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 GoogleSignalsSettings getGoogleSignalsSettings( + GetGoogleSignalsSettingsRequest request) { + return getGoogleSignalsSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for Google Signals settings for a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetGoogleSignalsSettingsRequest request =
+   *       GetGoogleSignalsSettingsRequest.newBuilder()
+   *           .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.getGoogleSignalsSettingsCallable().futureCall(request);
+   *   // Do something.
+   *   GoogleSignalsSettings response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getGoogleSignalsSettingsCallable() { + return stub.getGoogleSignalsSettingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates Google Signals settings for a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GoogleSignalsSettings googleSignalsSettings = GoogleSignalsSettings.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   GoogleSignalsSettings response =
+   *       analyticsAdminServiceClient.updateGoogleSignalsSettings(
+   *           googleSignalsSettings, updateMask);
+   * }
+   * }
+ * + * @param googleSignalsSettings 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 GoogleSignalsSettings updateGoogleSignalsSettings( + GoogleSignalsSettings googleSignalsSettings, FieldMask updateMask) { + UpdateGoogleSignalsSettingsRequest request = + UpdateGoogleSignalsSettingsRequest.newBuilder() + .setGoogleSignalsSettings(googleSignalsSettings) + .setUpdateMask(updateMask) + .build(); + return updateGoogleSignalsSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates Google Signals settings for a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   UpdateGoogleSignalsSettingsRequest request =
+   *       UpdateGoogleSignalsSettingsRequest.newBuilder()
+   *           .setGoogleSignalsSettings(GoogleSignalsSettings.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   GoogleSignalsSettings response =
+   *       analyticsAdminServiceClient.updateGoogleSignalsSettings(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 GoogleSignalsSettings updateGoogleSignalsSettings( + UpdateGoogleSignalsSettingsRequest request) { + return updateGoogleSignalsSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates Google Signals settings for a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   UpdateGoogleSignalsSettingsRequest request =
+   *       UpdateGoogleSignalsSettingsRequest.newBuilder()
+   *           .setGoogleSignalsSettings(GoogleSignalsSettings.newBuilder().build())
+   *           .setUpdateMask(FieldMask.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.updateGoogleSignalsSettingsCallable().futureCall(request);
+   *   // Do something.
+   *   GoogleSignalsSettings response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + updateGoogleSignalsSettingsCallable() { + return stub.updateGoogleSignalsSettingsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a conversion event with the specified attributes. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   ConversionEvent conversionEvent = ConversionEvent.newBuilder().build();
+   *   ConversionEvent response =
+   *       analyticsAdminServiceClient.createConversionEvent(parent, conversionEvent);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the parent property where this conversion event + * will be created. Format: properties/123 + * @param conversionEvent Required. The conversion event to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ConversionEvent createConversionEvent( + PropertyName parent, ConversionEvent conversionEvent) { + CreateConversionEventRequest request = + CreateConversionEventRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setConversionEvent(conversionEvent) + .build(); + return createConversionEvent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a conversion event with the specified attributes. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String parent = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString();
+   *   ConversionEvent conversionEvent = ConversionEvent.newBuilder().build();
+   *   ConversionEvent response =
+   *       analyticsAdminServiceClient.createConversionEvent(parent, conversionEvent);
+   * }
+   * }
+ * + * @param parent Required. The resource name of the parent property where this conversion event + * will be created. Format: properties/123 + * @param conversionEvent Required. The conversion event to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ConversionEvent createConversionEvent( + String parent, ConversionEvent conversionEvent) { + CreateConversionEventRequest request = + CreateConversionEventRequest.newBuilder() + .setParent(parent) + .setConversionEvent(conversionEvent) + .build(); + return createConversionEvent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a conversion event with the specified attributes. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CreateConversionEventRequest request =
+   *       CreateConversionEventRequest.newBuilder()
+   *           .setConversionEvent(ConversionEvent.newBuilder().build())
+   *           .setParent(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
+   *           .build();
+   *   ConversionEvent response = analyticsAdminServiceClient.createConversionEvent(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 ConversionEvent createConversionEvent(CreateConversionEventRequest request) { + return createConversionEventCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a conversion event with the specified attributes. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CreateConversionEventRequest request =
+   *       CreateConversionEventRequest.newBuilder()
+   *           .setConversionEvent(ConversionEvent.newBuilder().build())
+   *           .setParent(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.createConversionEventCallable().futureCall(request);
+   *   // Do something.
+   *   ConversionEvent response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + createConversionEventCallable() { + return stub.createConversionEventCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single conversion event. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]");
+   *   ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the conversion event to retrieve. Format: + * properties/{property}/conversionEvents/{conversion_event} Example: + * "properties/123/conversionEvents/456" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ConversionEvent getConversionEvent(ConversionEventName name) { + GetConversionEventRequest request = + GetConversionEventRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getConversionEvent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single conversion event. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString();
+   *   ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the conversion event to retrieve. Format: + * properties/{property}/conversionEvents/{conversion_event} Example: + * "properties/123/conversionEvents/456" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ConversionEvent getConversionEvent(String name) { + GetConversionEventRequest request = + GetConversionEventRequest.newBuilder().setName(name).build(); + return getConversionEvent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single conversion event. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetConversionEventRequest request =
+   *       GetConversionEventRequest.newBuilder()
+   *           .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
+   *           .build();
+   *   ConversionEvent response = analyticsAdminServiceClient.getConversionEvent(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 ConversionEvent getConversionEvent(GetConversionEventRequest request) { + return getConversionEventCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Retrieve a single conversion event. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetConversionEventRequest request =
+   *       GetConversionEventRequest.newBuilder()
+   *           .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.getConversionEventCallable().futureCall(request);
+   *   // Do something.
+   *   ConversionEvent response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getConversionEventCallable() { + return stub.getConversionEventCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a conversion event in a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]");
+   *   analyticsAdminServiceClient.deleteConversionEvent(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the conversion event to delete. Format: + * properties/{property}/conversionEvents/{conversion_event} Example: + * "properties/123/conversionEvents/456" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteConversionEvent(ConversionEventName name) { + DeleteConversionEventRequest request = + DeleteConversionEventRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + deleteConversionEvent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a conversion event in a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString();
+   *   analyticsAdminServiceClient.deleteConversionEvent(name);
+   * }
+   * }
+ * + * @param name Required. The resource name of the conversion event to delete. Format: + * properties/{property}/conversionEvents/{conversion_event} Example: + * "properties/123/conversionEvents/456" + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void deleteConversionEvent(String name) { + DeleteConversionEventRequest request = + DeleteConversionEventRequest.newBuilder().setName(name).build(); + deleteConversionEvent(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a conversion event in a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DeleteConversionEventRequest request =
+   *       DeleteConversionEventRequest.newBuilder()
+   *           .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
+   *           .build();
+   *   analyticsAdminServiceClient.deleteConversionEvent(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 deleteConversionEvent(DeleteConversionEventRequest request) { + deleteConversionEventCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes a conversion event in a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   DeleteConversionEventRequest request =
+   *       DeleteConversionEventRequest.newBuilder()
+   *           .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.deleteConversionEventCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable deleteConversionEventCallable() { + return stub.deleteConversionEventCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of conversion events in the specified parent property. + * + *

Returns an empty list if no conversion events are found. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   for (ConversionEvent element :
+   *       analyticsAdminServiceClient.listConversionEvents(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the parent property. Example: 'properties/123' + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListConversionEventsPagedResponse listConversionEvents(PropertyName parent) { + ListConversionEventsRequest request = + ListConversionEventsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listConversionEvents(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of conversion events in the specified parent property. + * + *

Returns an empty list if no conversion events are found. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String parent = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString();
+   *   for (ConversionEvent element :
+   *       analyticsAdminServiceClient.listConversionEvents(parent).iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ * + * @param parent Required. The resource name of the parent property. Example: 'properties/123' + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListConversionEventsPagedResponse listConversionEvents(String parent) { + ListConversionEventsRequest request = + ListConversionEventsRequest.newBuilder().setParent(parent).build(); + return listConversionEvents(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of conversion events in the specified parent property. + * + *

Returns an empty list if no conversion events are found. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListConversionEventsRequest request =
+   *       ListConversionEventsRequest.newBuilder()
+   *           .setParent(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (ConversionEvent element :
+   *       analyticsAdminServiceClient.listConversionEvents(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 ListConversionEventsPagedResponse listConversionEvents( + ListConversionEventsRequest request) { + return listConversionEventsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of conversion events in the specified parent property. + * + *

Returns an empty list if no conversion events are found. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListConversionEventsRequest request =
+   *       ListConversionEventsRequest.newBuilder()
+   *           .setParent(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.listConversionEventsPagedCallable().futureCall(request);
+   *   // Do something.
+   *   for (ConversionEvent element : future.get().iterateAll()) {
+   *     // doThingsWith(element);
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listConversionEventsPagedCallable() { + return stub.listConversionEventsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns a list of conversion events in the specified parent property. + * + *

Returns an empty list if no conversion events are found. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListConversionEventsRequest request =
+   *       ListConversionEventsRequest.newBuilder()
+   *           .setParent(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListConversionEventsResponse response =
+   *         analyticsAdminServiceClient.listConversionEventsCallable().call(request);
+   *     for (ConversionEvent element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listConversionEventsCallable() { + return stub.listConversionEventsCallable(); + } + + // 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(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Archives a CustomDimension on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CustomDimensionName name = CustomDimensionName.of("[PROPERTY]");
+   *   analyticsAdminServiceClient.archiveCustomDimension(name);
+   * }
+   * }
+ * + * @param name Required. The name of the CustomDimension to archive. Example format: + * properties/1234/customDimensions/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void archiveCustomDimension(CustomDimensionName name) { + ArchiveCustomDimensionRequest request = + ArchiveCustomDimensionRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + archiveCustomDimension(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Archives a CustomDimension on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String name = CustomDimensionName.of("[PROPERTY]").toString();
+   *   analyticsAdminServiceClient.archiveCustomDimension(name);
+   * }
+   * }
+ * + * @param name Required. The name of the CustomDimension to archive. Example format: + * properties/1234/customDimensions/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void archiveCustomDimension(String name) { + ArchiveCustomDimensionRequest request = + ArchiveCustomDimensionRequest.newBuilder().setName(name).build(); + archiveCustomDimension(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Archives a CustomDimension on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ArchiveCustomDimensionRequest request =
+   *       ArchiveCustomDimensionRequest.newBuilder()
+   *           .setName(CustomDimensionName.of("[PROPERTY]").toString())
+   *           .build();
+   *   analyticsAdminServiceClient.archiveCustomDimension(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 archiveCustomDimension(ArchiveCustomDimensionRequest request) { + archiveCustomDimensionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Archives a CustomDimension on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ArchiveCustomDimensionRequest request =
+   *       ArchiveCustomDimensionRequest.newBuilder()
+   *           .setName(CustomDimensionName.of("[PROPERTY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.archiveCustomDimensionCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + archiveCustomDimensionCallable() { + return stub.archiveCustomDimensionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single CustomDimension. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetCustomDimensionRequest request =
+   *       GetCustomDimensionRequest.newBuilder()
+   *           .setName(CustomDimensionName.of("[PROPERTY]").toString())
+   *           .build();
+   *   CustomDimension response = analyticsAdminServiceClient.getCustomDimension(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 getCustomDimension(GetCustomDimensionRequest request) { + return getCustomDimensionCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single CustomDimension. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetCustomDimensionRequest request =
+   *       GetCustomDimensionRequest.newBuilder()
+   *           .setName(CustomDimensionName.of("[PROPERTY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.getCustomDimensionCallable().futureCall(request);
+   *   // Do something.
+   *   CustomDimension response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getCustomDimensionCallable() { + return stub.getCustomDimensionCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a CustomMetric. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CreateCustomMetricRequest request =
+   *       CreateCustomMetricRequest.newBuilder()
+   *           .setParent(CustomMetricName.of("[PROPERTY]").toString())
+   *           .setCustomMetric(CustomMetric.newBuilder().build())
+   *           .build();
+   *   CustomMetric response = analyticsAdminServiceClient.createCustomMetric(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 CustomMetric createCustomMetric(CreateCustomMetricRequest request) { + return createCustomMetricCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a CustomMetric. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CustomMetric customMetric = CustomMetric.newBuilder().build();
+   *   FieldMask updateMask = FieldMask.newBuilder().build();
+   *   CustomMetric response =
+   *       analyticsAdminServiceClient.updateCustomMetric(customMetric, updateMask);
+   * }
+   * }
+ * + * @param customMetric The CustomMetric 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 CustomMetric updateCustomMetric(CustomMetric customMetric, FieldMask updateMask) { + UpdateCustomMetricRequest request = + UpdateCustomMetricRequest.newBuilder() + .setCustomMetric(customMetric) + .setUpdateMask(updateMask) + .build(); + return updateCustomMetric(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates a CustomMetric on a property. + * + *

Sample code: + * + *

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

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   PropertyName parent = PropertyName.of("[PROPERTY]");
+   *   for (CustomMetric element :
+   *       analyticsAdminServiceClient.listCustomMetrics(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 ListCustomMetricsPagedResponse listCustomMetrics(PropertyName parent) { + ListCustomMetricsRequest request = + ListCustomMetricsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCustomMetrics(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CustomMetrics on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String parent = CustomMetricName.of("[PROPERTY]").toString();
+   *   for (CustomMetric element :
+   *       analyticsAdminServiceClient.listCustomMetrics(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 ListCustomMetricsPagedResponse listCustomMetrics(String parent) { + ListCustomMetricsRequest request = + ListCustomMetricsRequest.newBuilder().setParent(parent).build(); + return listCustomMetrics(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CustomMetrics on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListCustomMetricsRequest request =
+   *       ListCustomMetricsRequest.newBuilder()
+   *           .setParent(CustomMetricName.of("[PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   for (CustomMetric element :
+   *       analyticsAdminServiceClient.listCustomMetrics(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 ListCustomMetricsPagedResponse listCustomMetrics(ListCustomMetricsRequest request) { + return listCustomMetricsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists CustomMetrics on a property. + * + *

Sample code: + * + *

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

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ListCustomMetricsRequest request =
+   *       ListCustomMetricsRequest.newBuilder()
+   *           .setParent(CustomMetricName.of("[PROPERTY]").toString())
+   *           .setPageSize(883849137)
+   *           .setPageToken("pageToken873572522")
+   *           .build();
+   *   while (true) {
+   *     ListCustomMetricsResponse response =
+   *         analyticsAdminServiceClient.listCustomMetricsCallable().call(request);
+   *     for (CustomMetric element : response.getResponsesList()) {
+   *       // doThingsWith(element);
+   *     }
+   *     String nextPageToken = response.getNextPageToken();
+   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
+   *       request = request.toBuilder().setPageToken(nextPageToken).build();
+   *     } else {
+   *       break;
+   *     }
+   *   }
+   * }
+   * }
+ */ + public final UnaryCallable + listCustomMetricsCallable() { + return stub.listCustomMetricsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Archives a CustomMetric on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CustomMetricName name = CustomMetricName.of("[PROPERTY]");
+   *   analyticsAdminServiceClient.archiveCustomMetric(name);
+   * }
+   * }
+ * + * @param name Required. The name of the CustomMetric to archive. Example format: + * properties/1234/customMetrics/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void archiveCustomMetric(CustomMetricName name) { + ArchiveCustomMetricRequest request = + ArchiveCustomMetricRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + archiveCustomMetric(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Archives a CustomMetric on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String name = CustomMetricName.of("[PROPERTY]").toString();
+   *   analyticsAdminServiceClient.archiveCustomMetric(name);
+   * }
+   * }
+ * + * @param name Required. The name of the CustomMetric to archive. Example format: + * properties/1234/customMetrics/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void archiveCustomMetric(String name) { + ArchiveCustomMetricRequest request = + ArchiveCustomMetricRequest.newBuilder().setName(name).build(); + archiveCustomMetric(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Archives a CustomMetric on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ArchiveCustomMetricRequest request =
+   *       ArchiveCustomMetricRequest.newBuilder()
+   *           .setName(CustomMetricName.of("[PROPERTY]").toString())
+   *           .build();
+   *   analyticsAdminServiceClient.archiveCustomMetric(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 archiveCustomMetric(ArchiveCustomMetricRequest request) { + archiveCustomMetricCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Archives a CustomMetric on a property. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   ArchiveCustomMetricRequest request =
+   *       ArchiveCustomMetricRequest.newBuilder()
+   *           .setName(CustomMetricName.of("[PROPERTY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.archiveCustomMetricCallable().futureCall(request);
+   *   // Do something.
+   *   future.get();
+   * }
+   * }
+ */ + public final UnaryCallable archiveCustomMetricCallable() { + return stub.archiveCustomMetricCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single CustomMetric. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   CustomMetricName name = CustomMetricName.of("[PROPERTY]");
+   *   CustomMetric response = analyticsAdminServiceClient.getCustomMetric(name);
    * }
    * }
* - * @param request The request object containing all of the parameters for the API call. + * @param name Required. The name of the CustomMetric to get. Example format: + * properties/1234/customMetrics/5678 * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ - public final SearchChangeHistoryEventsPagedResponse searchChangeHistoryEvents( - SearchChangeHistoryEventsRequest request) { - return searchChangeHistoryEventsPagedCallable().call(request); + public final CustomMetric getCustomMetric(CustomMetricName name) { + GetCustomMetricRequest request = + GetCustomMetricRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getCustomMetric(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches through all changes to an account or its children given the specified set of filters. + * Lookup for a single CustomMetric. * *

Sample code: * *

{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   SearchChangeHistoryEventsRequest request =
-   *       SearchChangeHistoryEventsRequest.newBuilder()
-   *           .setAccount(AccountName.of("[ACCOUNT]").toString())
-   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
-   *           .addAllResourceType(new ArrayList())
-   *           .addAllAction(new ArrayList())
-   *           .addAllActorEmail(new ArrayList())
-   *           .setEarliestChangeTime(Timestamp.newBuilder().build())
-   *           .setLatestChangeTime(Timestamp.newBuilder().build())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
+   *   String name = CustomMetricName.of("[PROPERTY]").toString();
+   *   CustomMetric response = analyticsAdminServiceClient.getCustomMetric(name);
+   * }
+   * }
+ * + * @param name Required. The name of the CustomMetric to get. Example format: + * properties/1234/customMetrics/5678 + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CustomMetric getCustomMetric(String name) { + GetCustomMetricRequest request = GetCustomMetricRequest.newBuilder().setName(name).build(); + return getCustomMetric(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lookup for a single CustomMetric. + * + *

Sample code: + * + *

{@code
+   * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetCustomMetricRequest request =
+   *       GetCustomMetricRequest.newBuilder()
+   *           .setName(CustomMetricName.of("[PROPERTY]").toString())
    *           .build();
-   *   ApiFuture future =
-   *       analyticsAdminServiceClient.searchChangeHistoryEventsPagedCallable().futureCall(request);
-   *   // Do something.
-   *   for (ChangeHistoryEvent element : future.get().iterateAll()) {
-   *     // doThingsWith(element);
-   *   }
+   *   CustomMetric response = analyticsAdminServiceClient.getCustomMetric(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 UnaryCallable< - SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsPagedResponse> - searchChangeHistoryEventsPagedCallable() { - return stub.searchChangeHistoryEventsPagedCallable(); + public final CustomMetric getCustomMetric(GetCustomMetricRequest request) { + return getCustomMetricCallable().call(request); } // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Searches through all changes to an account or its children given the specified set of filters. + * Lookup for a single CustomMetric. * *

Sample code: * *

{@code
    * try (AnalyticsAdminServiceClient analyticsAdminServiceClient =
    *     AnalyticsAdminServiceClient.create()) {
-   *   SearchChangeHistoryEventsRequest request =
-   *       SearchChangeHistoryEventsRequest.newBuilder()
-   *           .setAccount(AccountName.of("[ACCOUNT]").toString())
-   *           .setProperty(PropertyName.of("[PROPERTY]").toString())
-   *           .addAllResourceType(new ArrayList())
-   *           .addAllAction(new ArrayList())
-   *           .addAllActorEmail(new ArrayList())
-   *           .setEarliestChangeTime(Timestamp.newBuilder().build())
-   *           .setLatestChangeTime(Timestamp.newBuilder().build())
-   *           .setPageSize(883849137)
-   *           .setPageToken("pageToken873572522")
+   *   GetCustomMetricRequest request =
+   *       GetCustomMetricRequest.newBuilder()
+   *           .setName(CustomMetricName.of("[PROPERTY]").toString())
    *           .build();
-   *   while (true) {
-   *     SearchChangeHistoryEventsResponse response =
-   *         analyticsAdminServiceClient.searchChangeHistoryEventsCallable().call(request);
-   *     for (ChangeHistoryEvent element : response.getResponsesList()) {
-   *       // doThingsWith(element);
-   *     }
-   *     String nextPageToken = response.getNextPageToken();
-   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
-   *       request = request.toBuilder().setPageToken(nextPageToken).build();
-   *     } else {
-   *       break;
-   *     }
-   *   }
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.getCustomMetricCallable().futureCall(request);
+   *   // Do something.
+   *   CustomMetric response = future.get();
    * }
    * }
*/ - public final UnaryCallable - searchChangeHistoryEventsCallable() { - return stub.searchChangeHistoryEventsCallable(); + public final UnaryCallable getCustomMetricCallable() { + return stub.getCustomMetricCallable(); } @Override @@ -5842,6 +8192,110 @@ protected ListGoogleAdsLinksFixedSizeCollection createCollection( } } + public static class ListMeasurementProtocolSecretsPagedResponse + extends AbstractPagedListResponse< + ListMeasurementProtocolSecretsRequest, + ListMeasurementProtocolSecretsResponse, + MeasurementProtocolSecret, + ListMeasurementProtocolSecretsPage, + ListMeasurementProtocolSecretsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + ListMeasurementProtocolSecretsRequest, + ListMeasurementProtocolSecretsResponse, + MeasurementProtocolSecret> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListMeasurementProtocolSecretsPage.createEmptyPage() + .createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction< + ListMeasurementProtocolSecretsPage, ListMeasurementProtocolSecretsPagedResponse>() { + @Override + public ListMeasurementProtocolSecretsPagedResponse apply( + ListMeasurementProtocolSecretsPage input) { + return new ListMeasurementProtocolSecretsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListMeasurementProtocolSecretsPagedResponse(ListMeasurementProtocolSecretsPage page) { + super(page, ListMeasurementProtocolSecretsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListMeasurementProtocolSecretsPage + extends AbstractPage< + ListMeasurementProtocolSecretsRequest, + ListMeasurementProtocolSecretsResponse, + MeasurementProtocolSecret, + ListMeasurementProtocolSecretsPage> { + + private ListMeasurementProtocolSecretsPage( + PageContext< + ListMeasurementProtocolSecretsRequest, + ListMeasurementProtocolSecretsResponse, + MeasurementProtocolSecret> + context, + ListMeasurementProtocolSecretsResponse response) { + super(context, response); + } + + private static ListMeasurementProtocolSecretsPage createEmptyPage() { + return new ListMeasurementProtocolSecretsPage(null, null); + } + + @Override + protected ListMeasurementProtocolSecretsPage createPage( + PageContext< + ListMeasurementProtocolSecretsRequest, + ListMeasurementProtocolSecretsResponse, + MeasurementProtocolSecret> + context, + ListMeasurementProtocolSecretsResponse response) { + return new ListMeasurementProtocolSecretsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + ListMeasurementProtocolSecretsRequest, + ListMeasurementProtocolSecretsResponse, + MeasurementProtocolSecret> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListMeasurementProtocolSecretsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListMeasurementProtocolSecretsRequest, + ListMeasurementProtocolSecretsResponse, + MeasurementProtocolSecret, + ListMeasurementProtocolSecretsPage, + ListMeasurementProtocolSecretsFixedSizeCollection> { + + private ListMeasurementProtocolSecretsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListMeasurementProtocolSecretsFixedSizeCollection createEmptyCollection() { + return new ListMeasurementProtocolSecretsFixedSizeCollection(null, 0); + } + + @Override + protected ListMeasurementProtocolSecretsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListMeasurementProtocolSecretsFixedSizeCollection(pages, collectionSize); + } + } + public static class SearchChangeHistoryEventsPagedResponse extends AbstractPagedListResponse< SearchChangeHistoryEventsRequest, @@ -5943,4 +8397,267 @@ protected SearchChangeHistoryEventsFixedSizeCollection createCollection( return new SearchChangeHistoryEventsFixedSizeCollection(pages, collectionSize); } } + + public static class ListConversionEventsPagedResponse + extends AbstractPagedListResponse< + ListConversionEventsRequest, + ListConversionEventsResponse, + ConversionEvent, + ListConversionEventsPage, + ListConversionEventsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListConversionEventsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListConversionEventsPagedResponse apply(ListConversionEventsPage input) { + return new ListConversionEventsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListConversionEventsPagedResponse(ListConversionEventsPage page) { + super(page, ListConversionEventsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListConversionEventsPage + extends AbstractPage< + ListConversionEventsRequest, + ListConversionEventsResponse, + ConversionEvent, + ListConversionEventsPage> { + + private ListConversionEventsPage( + PageContext + context, + ListConversionEventsResponse response) { + super(context, response); + } + + private static ListConversionEventsPage createEmptyPage() { + return new ListConversionEventsPage(null, null); + } + + @Override + protected ListConversionEventsPage createPage( + PageContext + context, + ListConversionEventsResponse response) { + return new ListConversionEventsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListConversionEventsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListConversionEventsRequest, + ListConversionEventsResponse, + ConversionEvent, + ListConversionEventsPage, + ListConversionEventsFixedSizeCollection> { + + private ListConversionEventsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListConversionEventsFixedSizeCollection createEmptyCollection() { + return new ListConversionEventsFixedSizeCollection(null, 0); + } + + @Override + protected ListConversionEventsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListConversionEventsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListCustomDimensionsPagedResponse + extends AbstractPagedListResponse< + ListCustomDimensionsRequest, + ListCustomDimensionsResponse, + CustomDimension, + ListCustomDimensionsPage, + ListCustomDimensionsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListCustomDimensionsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListCustomDimensionsPagedResponse apply(ListCustomDimensionsPage input) { + return new ListCustomDimensionsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListCustomDimensionsPagedResponse(ListCustomDimensionsPage page) { + super(page, ListCustomDimensionsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListCustomDimensionsPage + extends AbstractPage< + ListCustomDimensionsRequest, + ListCustomDimensionsResponse, + CustomDimension, + ListCustomDimensionsPage> { + + private ListCustomDimensionsPage( + PageContext + context, + ListCustomDimensionsResponse response) { + super(context, response); + } + + private static ListCustomDimensionsPage createEmptyPage() { + return new ListCustomDimensionsPage(null, null); + } + + @Override + protected ListCustomDimensionsPage createPage( + PageContext + context, + ListCustomDimensionsResponse response) { + return new ListCustomDimensionsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListCustomDimensionsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListCustomDimensionsRequest, + ListCustomDimensionsResponse, + CustomDimension, + ListCustomDimensionsPage, + ListCustomDimensionsFixedSizeCollection> { + + private ListCustomDimensionsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListCustomDimensionsFixedSizeCollection createEmptyCollection() { + return new ListCustomDimensionsFixedSizeCollection(null, 0); + } + + @Override + protected ListCustomDimensionsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListCustomDimensionsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListCustomMetricsPagedResponse + extends AbstractPagedListResponse< + ListCustomMetricsRequest, + ListCustomMetricsResponse, + CustomMetric, + ListCustomMetricsPage, + ListCustomMetricsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListCustomMetricsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + new ApiFunction() { + @Override + public ListCustomMetricsPagedResponse apply(ListCustomMetricsPage input) { + return new ListCustomMetricsPagedResponse(input); + } + }, + MoreExecutors.directExecutor()); + } + + private ListCustomMetricsPagedResponse(ListCustomMetricsPage page) { + super(page, ListCustomMetricsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListCustomMetricsPage + extends AbstractPage< + ListCustomMetricsRequest, + ListCustomMetricsResponse, + CustomMetric, + ListCustomMetricsPage> { + + private ListCustomMetricsPage( + PageContext context, + ListCustomMetricsResponse response) { + super(context, response); + } + + private static ListCustomMetricsPage createEmptyPage() { + return new ListCustomMetricsPage(null, null); + } + + @Override + protected ListCustomMetricsPage createPage( + PageContext context, + ListCustomMetricsResponse response) { + return new ListCustomMetricsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListCustomMetricsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListCustomMetricsRequest, + ListCustomMetricsResponse, + CustomMetric, + ListCustomMetricsPage, + ListCustomMetricsFixedSizeCollection> { + + private ListCustomMetricsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListCustomMetricsFixedSizeCollection createEmptyCollection() { + return new ListCustomMetricsFixedSizeCollection(null, 0); + } + + @Override + protected ListCustomMetricsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListCustomMetricsFixedSizeCollection(pages, collectionSize); + } + } } 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 338d76cb..e1c8d581 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 @@ -20,9 +20,13 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAndroidAppDataStreamsPagedResponse; +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.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse; @@ -359,6 +363,44 @@ public UnaryCallSettings deleteGoogleAdsLinkS return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getDataSharingSettingsSettings(); } + /** Returns the object with the settings used for calls to getMeasurementProtocolSecret. */ + public UnaryCallSettings + getMeasurementProtocolSecretSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .getMeasurementProtocolSecretSettings(); + } + + /** Returns the object with the settings used for calls to listMeasurementProtocolSecrets. */ + public PagedCallSettings< + ListMeasurementProtocolSecretsRequest, + ListMeasurementProtocolSecretsResponse, + ListMeasurementProtocolSecretsPagedResponse> + listMeasurementProtocolSecretsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .listMeasurementProtocolSecretsSettings(); + } + + /** Returns the object with the settings used for calls to createMeasurementProtocolSecret. */ + public UnaryCallSettings + createMeasurementProtocolSecretSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .createMeasurementProtocolSecretSettings(); + } + + /** Returns the object with the settings used for calls to deleteMeasurementProtocolSecret. */ + public UnaryCallSettings + deleteMeasurementProtocolSecretSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .deleteMeasurementProtocolSecretSettings(); + } + + /** Returns the object with the settings used for calls to updateMeasurementProtocolSecret. */ + public UnaryCallSettings + updateMeasurementProtocolSecretSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .updateMeasurementProtocolSecretSettings(); + } + /** Returns the object with the settings used for calls to searchChangeHistoryEvents. */ public PagedCallSettings< SearchChangeHistoryEventsRequest, @@ -369,6 +411,105 @@ public UnaryCallSettings deleteGoogleAdsLinkS .searchChangeHistoryEventsSettings(); } + /** Returns the object with the settings used for calls to getGoogleSignalsSettings. */ + public UnaryCallSettings + getGoogleSignalsSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .getGoogleSignalsSettingsSettings(); + } + + /** Returns the object with the settings used for calls to updateGoogleSignalsSettings. */ + public UnaryCallSettings + updateGoogleSignalsSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .updateGoogleSignalsSettingsSettings(); + } + + /** Returns the object with the settings used for calls to createConversionEvent. */ + public UnaryCallSettings + createConversionEventSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createConversionEventSettings(); + } + + /** Returns the object with the settings used for calls to getConversionEvent. */ + public UnaryCallSettings + getConversionEventSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getConversionEventSettings(); + } + + /** Returns the object with the settings used for calls to deleteConversionEvent. */ + public UnaryCallSettings deleteConversionEventSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).deleteConversionEventSettings(); + } + + /** Returns the object with the settings used for calls to listConversionEvents. */ + public PagedCallSettings< + ListConversionEventsRequest, + ListConversionEventsResponse, + ListConversionEventsPagedResponse> + listConversionEventsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listConversionEventsSettings(); + } + + /** Returns the object with the settings used for calls to createCustomDimension. */ + public UnaryCallSettings + createCustomDimensionSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createCustomDimensionSettings(); + } + + /** Returns the object with the settings used for calls to updateCustomDimension. */ + public UnaryCallSettings + updateCustomDimensionSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateCustomDimensionSettings(); + } + + /** Returns the object with the settings used for calls to listCustomDimensions. */ + public PagedCallSettings< + ListCustomDimensionsRequest, + ListCustomDimensionsResponse, + ListCustomDimensionsPagedResponse> + listCustomDimensionsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listCustomDimensionsSettings(); + } + + /** Returns the object with the settings used for calls to archiveCustomDimension. */ + public UnaryCallSettings archiveCustomDimensionSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).archiveCustomDimensionSettings(); + } + + /** Returns the object with the settings used for calls to getCustomDimension. */ + public UnaryCallSettings + getCustomDimensionSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getCustomDimensionSettings(); + } + + /** Returns the object with the settings used for calls to createCustomMetric. */ + public UnaryCallSettings createCustomMetricSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).createCustomMetricSettings(); + } + + /** Returns the object with the settings used for calls to updateCustomMetric. */ + public UnaryCallSettings updateCustomMetricSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).updateCustomMetricSettings(); + } + + /** Returns the object with the settings used for calls to listCustomMetrics. */ + public PagedCallSettings< + ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> + listCustomMetricsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).listCustomMetricsSettings(); + } + + /** Returns the object with the settings used for calls to archiveCustomMetric. */ + public UnaryCallSettings archiveCustomMetricSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).archiveCustomMetricSettings(); + } + + /** Returns the object with the settings used for calls to getCustomMetric. */ + public UnaryCallSettings getCustomMetricSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()).getCustomMetricSettings(); + } + public static final AnalyticsAdminServiceSettings create(AnalyticsAdminServiceStubSettings stub) throws IOException { return new AnalyticsAdminServiceSettings.Builder(stub.toBuilder()).build(); @@ -751,6 +892,41 @@ public UnaryCallSettings.Builder deleteUserLinkSet return getStubSettingsBuilder().getDataSharingSettingsSettings(); } + /** Returns the builder for the settings used for calls to getMeasurementProtocolSecret. */ + public UnaryCallSettings.Builder + getMeasurementProtocolSecretSettings() { + return getStubSettingsBuilder().getMeasurementProtocolSecretSettings(); + } + + /** Returns the builder for the settings used for calls to listMeasurementProtocolSecrets. */ + public PagedCallSettings.Builder< + ListMeasurementProtocolSecretsRequest, + ListMeasurementProtocolSecretsResponse, + ListMeasurementProtocolSecretsPagedResponse> + listMeasurementProtocolSecretsSettings() { + return getStubSettingsBuilder().listMeasurementProtocolSecretsSettings(); + } + + /** Returns the builder for the settings used for calls to createMeasurementProtocolSecret. */ + public UnaryCallSettings.Builder< + CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> + createMeasurementProtocolSecretSettings() { + return getStubSettingsBuilder().createMeasurementProtocolSecretSettings(); + } + + /** Returns the builder for the settings used for calls to deleteMeasurementProtocolSecret. */ + public UnaryCallSettings.Builder + deleteMeasurementProtocolSecretSettings() { + return getStubSettingsBuilder().deleteMeasurementProtocolSecretSettings(); + } + + /** Returns the builder for the settings used for calls to updateMeasurementProtocolSecret. */ + public UnaryCallSettings.Builder< + UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> + updateMeasurementProtocolSecretSettings() { + return getStubSettingsBuilder().updateMeasurementProtocolSecretSettings(); + } + /** Returns the builder for the settings used for calls to searchChangeHistoryEvents. */ public PagedCallSettings.Builder< SearchChangeHistoryEventsRequest, @@ -760,6 +936,109 @@ public UnaryCallSettings.Builder deleteUserLinkSet return getStubSettingsBuilder().searchChangeHistoryEventsSettings(); } + /** Returns the builder for the settings used for calls to getGoogleSignalsSettings. */ + public UnaryCallSettings.Builder + getGoogleSignalsSettingsSettings() { + return getStubSettingsBuilder().getGoogleSignalsSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to updateGoogleSignalsSettings. */ + public UnaryCallSettings.Builder + updateGoogleSignalsSettingsSettings() { + return getStubSettingsBuilder().updateGoogleSignalsSettingsSettings(); + } + + /** Returns the builder for the settings used for calls to createConversionEvent. */ + public UnaryCallSettings.Builder + createConversionEventSettings() { + return getStubSettingsBuilder().createConversionEventSettings(); + } + + /** Returns the builder for the settings used for calls to getConversionEvent. */ + public UnaryCallSettings.Builder + getConversionEventSettings() { + return getStubSettingsBuilder().getConversionEventSettings(); + } + + /** Returns the builder for the settings used for calls to deleteConversionEvent. */ + public UnaryCallSettings.Builder + deleteConversionEventSettings() { + return getStubSettingsBuilder().deleteConversionEventSettings(); + } + + /** Returns the builder for the settings used for calls to listConversionEvents. */ + public PagedCallSettings.Builder< + ListConversionEventsRequest, + ListConversionEventsResponse, + ListConversionEventsPagedResponse> + listConversionEventsSettings() { + return getStubSettingsBuilder().listConversionEventsSettings(); + } + + /** Returns the builder for the settings used for calls to createCustomDimension. */ + public UnaryCallSettings.Builder + createCustomDimensionSettings() { + return getStubSettingsBuilder().createCustomDimensionSettings(); + } + + /** Returns the builder for the settings used for calls to updateCustomDimension. */ + public UnaryCallSettings.Builder + updateCustomDimensionSettings() { + return getStubSettingsBuilder().updateCustomDimensionSettings(); + } + + /** Returns the builder for the settings used for calls to listCustomDimensions. */ + public PagedCallSettings.Builder< + ListCustomDimensionsRequest, + ListCustomDimensionsResponse, + ListCustomDimensionsPagedResponse> + listCustomDimensionsSettings() { + return getStubSettingsBuilder().listCustomDimensionsSettings(); + } + + /** Returns the builder for the settings used for calls to archiveCustomDimension. */ + public UnaryCallSettings.Builder + archiveCustomDimensionSettings() { + return getStubSettingsBuilder().archiveCustomDimensionSettings(); + } + + /** Returns the builder for the settings used for calls to getCustomDimension. */ + public UnaryCallSettings.Builder + getCustomDimensionSettings() { + return getStubSettingsBuilder().getCustomDimensionSettings(); + } + + /** Returns the builder for the settings used for calls to createCustomMetric. */ + public UnaryCallSettings.Builder + createCustomMetricSettings() { + return getStubSettingsBuilder().createCustomMetricSettings(); + } + + /** Returns the builder for the settings used for calls to updateCustomMetric. */ + public UnaryCallSettings.Builder + updateCustomMetricSettings() { + return getStubSettingsBuilder().updateCustomMetricSettings(); + } + + /** Returns the builder for the settings used for calls to listCustomMetrics. */ + public PagedCallSettings.Builder< + ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> + listCustomMetricsSettings() { + return getStubSettingsBuilder().listCustomMetricsSettings(); + } + + /** Returns the builder for the settings used for calls to archiveCustomMetric. */ + public UnaryCallSettings.Builder + archiveCustomMetricSettings() { + return getStubSettingsBuilder().archiveCustomMetricSettings(); + } + + /** Returns the builder for the settings used for calls to getCustomMetric. */ + public UnaryCallSettings.Builder + getCustomMetricSettings() { + return getStubSettingsBuilder().getCustomMetricSettings(); + } + @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 88ed5eb4..fe921e8b 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,12 @@ "grpc": { "libraryClient": "AnalyticsAdminServiceClient", "rpcs": { + "ArchiveCustomDimension": { + "methods": ["archiveCustomDimension", "archiveCustomDimension", "archiveCustomDimension", "archiveCustomDimensionCallable"] + }, + "ArchiveCustomMetric": { + "methods": ["archiveCustomMetric", "archiveCustomMetric", "archiveCustomMetric", "archiveCustomMetricCallable"] + }, "AuditUserLinks": { "methods": ["auditUserLinks", "auditUserLinksPagedCallable", "auditUserLinksCallable"] }, @@ -25,12 +31,24 @@ "BatchUpdateUserLinks": { "methods": ["batchUpdateUserLinks", "batchUpdateUserLinksCallable"] }, + "CreateConversionEvent": { + "methods": ["createConversionEvent", "createConversionEvent", "createConversionEvent", "createConversionEventCallable"] + }, + "CreateCustomDimension": { + "methods": ["createCustomDimension", "createCustomDimension", "createCustomDimension", "createCustomDimensionCallable"] + }, + "CreateCustomMetric": { + "methods": ["createCustomMetric", "createCustomMetric", "createCustomMetric", "createCustomMetricCallable"] + }, "CreateFirebaseLink": { "methods": ["createFirebaseLink", "createFirebaseLink", "createFirebaseLink", "createFirebaseLinkCallable"] }, "CreateGoogleAdsLink": { "methods": ["createGoogleAdsLink", "createGoogleAdsLink", "createGoogleAdsLink", "createGoogleAdsLinkCallable"] }, + "CreateMeasurementProtocolSecret": { + "methods": ["createMeasurementProtocolSecret", "createMeasurementProtocolSecret", "createMeasurementProtocolSecret", "createMeasurementProtocolSecretCallable"] + }, "CreateProperty": { "methods": ["createProperty", "createProperty", "createPropertyCallable"] }, @@ -46,6 +64,9 @@ "DeleteAndroidAppDataStream": { "methods": ["deleteAndroidAppDataStream", "deleteAndroidAppDataStream", "deleteAndroidAppDataStream", "deleteAndroidAppDataStreamCallable"] }, + "DeleteConversionEvent": { + "methods": ["deleteConversionEvent", "deleteConversionEvent", "deleteConversionEvent", "deleteConversionEventCallable"] + }, "DeleteFirebaseLink": { "methods": ["deleteFirebaseLink", "deleteFirebaseLink", "deleteFirebaseLink", "deleteFirebaseLinkCallable"] }, @@ -55,6 +76,9 @@ "DeleteIosAppDataStream": { "methods": ["deleteIosAppDataStream", "deleteIosAppDataStream", "deleteIosAppDataStream", "deleteIosAppDataStreamCallable"] }, + "DeleteMeasurementProtocolSecret": { + "methods": ["deleteMeasurementProtocolSecret", "deleteMeasurementProtocolSecret", "deleteMeasurementProtocolSecret", "deleteMeasurementProtocolSecretCallable"] + }, "DeleteProperty": { "methods": ["deleteProperty", "deleteProperty", "deleteProperty", "deletePropertyCallable"] }, @@ -70,6 +94,15 @@ "GetAndroidAppDataStream": { "methods": ["getAndroidAppDataStream", "getAndroidAppDataStream", "getAndroidAppDataStream", "getAndroidAppDataStreamCallable"] }, + "GetConversionEvent": { + "methods": ["getConversionEvent", "getConversionEvent", "getConversionEvent", "getConversionEventCallable"] + }, + "GetCustomDimension": { + "methods": ["getCustomDimension", "getCustomDimension", "getCustomDimension", "getCustomDimensionCallable"] + }, + "GetCustomMetric": { + "methods": ["getCustomMetric", "getCustomMetric", "getCustomMetric", "getCustomMetricCallable"] + }, "GetDataSharingSettings": { "methods": ["getDataSharingSettings", "getDataSharingSettings", "getDataSharingSettings", "getDataSharingSettingsCallable"] }, @@ -79,9 +112,15 @@ "GetGlobalSiteTag": { "methods": ["getGlobalSiteTag", "getGlobalSiteTag", "getGlobalSiteTag", "getGlobalSiteTagCallable"] }, + "GetGoogleSignalsSettings": { + "methods": ["getGoogleSignalsSettings", "getGoogleSignalsSettings", "getGoogleSignalsSettings", "getGoogleSignalsSettingsCallable"] + }, "GetIosAppDataStream": { "methods": ["getIosAppDataStream", "getIosAppDataStream", "getIosAppDataStream", "getIosAppDataStreamCallable"] }, + "GetMeasurementProtocolSecret": { + "methods": ["getMeasurementProtocolSecret", "getMeasurementProtocolSecret", "getMeasurementProtocolSecret", "getMeasurementProtocolSecretCallable"] + }, "GetProperty": { "methods": ["getProperty", "getProperty", "getProperty", "getPropertyCallable"] }, @@ -100,6 +139,15 @@ "ListAndroidAppDataStreams": { "methods": ["listAndroidAppDataStreams", "listAndroidAppDataStreams", "listAndroidAppDataStreams", "listAndroidAppDataStreamsPagedCallable", "listAndroidAppDataStreamsCallable"] }, + "ListConversionEvents": { + "methods": ["listConversionEvents", "listConversionEvents", "listConversionEvents", "listConversionEventsPagedCallable", "listConversionEventsCallable"] + }, + "ListCustomDimensions": { + "methods": ["listCustomDimensions", "listCustomDimensions", "listCustomDimensions", "listCustomDimensionsPagedCallable", "listCustomDimensionsCallable"] + }, + "ListCustomMetrics": { + "methods": ["listCustomMetrics", "listCustomMetrics", "listCustomMetrics", "listCustomMetricsPagedCallable", "listCustomMetricsCallable"] + }, "ListFirebaseLinks": { "methods": ["listFirebaseLinks", "listFirebaseLinks", "listFirebaseLinks", "listFirebaseLinksPagedCallable", "listFirebaseLinksCallable"] }, @@ -109,6 +157,9 @@ "ListIosAppDataStreams": { "methods": ["listIosAppDataStreams", "listIosAppDataStreams", "listIosAppDataStreams", "listIosAppDataStreamsPagedCallable", "listIosAppDataStreamsCallable"] }, + "ListMeasurementProtocolSecrets": { + "methods": ["listMeasurementProtocolSecrets", "listMeasurementProtocolSecrets", "listMeasurementProtocolSecrets", "listMeasurementProtocolSecretsPagedCallable", "listMeasurementProtocolSecretsCallable"] + }, "ListProperties": { "methods": ["listProperties", "listPropertiesPagedCallable", "listPropertiesCallable"] }, @@ -130,6 +181,12 @@ "UpdateAndroidAppDataStream": { "methods": ["updateAndroidAppDataStream", "updateAndroidAppDataStream", "updateAndroidAppDataStreamCallable"] }, + "UpdateCustomDimension": { + "methods": ["updateCustomDimension", "updateCustomDimension", "updateCustomDimensionCallable"] + }, + "UpdateCustomMetric": { + "methods": ["updateCustomMetric", "updateCustomMetric", "updateCustomMetricCallable"] + }, "UpdateEnhancedMeasurementSettings": { "methods": ["updateEnhancedMeasurementSettings", "updateEnhancedMeasurementSettings", "updateEnhancedMeasurementSettingsCallable"] }, @@ -139,9 +196,15 @@ "UpdateGoogleAdsLink": { "methods": ["updateGoogleAdsLink", "updateGoogleAdsLink", "updateGoogleAdsLinkCallable"] }, + "UpdateGoogleSignalsSettings": { + "methods": ["updateGoogleSignalsSettings", "updateGoogleSignalsSettings", "updateGoogleSignalsSettingsCallable"] + }, "UpdateIosAppDataStream": { "methods": ["updateIosAppDataStream", "updateIosAppDataStream", "updateIosAppDataStreamCallable"] }, + "UpdateMeasurementProtocolSecret": { + "methods": ["updateMeasurementProtocolSecret", "updateMeasurementProtocolSecret", "updateMeasurementProtocolSecretCallable"] + }, "UpdateProperty": { "methods": ["updateProperty", "updateProperty", "updatePropertyCallable"] }, 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 6cbc9925..84390ca3 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 @@ -20,9 +20,13 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAndroidAppDataStreamsPagedResponse; +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.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse; @@ -30,6 +34,8 @@ import com.google.analytics.admin.v1alpha.Account; import com.google.analytics.admin.v1alpha.AndroidAppDataStream; +import com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; +import com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; import com.google.analytics.admin.v1alpha.AuditUserLinksRequest; import com.google.analytics.admin.v1alpha.AuditUserLinksResponse; import com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; @@ -39,17 +45,26 @@ 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.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.CreateFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; +import com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.CreatePropertyRequest; import com.google.analytics.admin.v1alpha.CreateUserLinkRequest; 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.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.DeleteFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.DeletePropertyRequest; import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; import com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest; @@ -57,15 +72,21 @@ import com.google.analytics.admin.v1alpha.FirebaseLink; import com.google.analytics.admin.v1alpha.GetAccountRequest; import com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest; +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.GetDataSharingSettingsRequest; import com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest; import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; +import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.GetPropertyRequest; import com.google.analytics.admin.v1alpha.GetUserLinkRequest; import com.google.analytics.admin.v1alpha.GetWebDataStreamRequest; import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; +import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; import com.google.analytics.admin.v1alpha.IosAppDataStream; import com.google.analytics.admin.v1alpha.ListAccountSummariesRequest; import com.google.analytics.admin.v1alpha.ListAccountSummariesResponse; @@ -73,18 +94,27 @@ import com.google.analytics.admin.v1alpha.ListAccountsResponse; import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest; import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse; +import com.google.analytics.admin.v1alpha.ListConversionEventsRequest; +import com.google.analytics.admin.v1alpha.ListConversionEventsResponse; +import com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest; +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.ListFirebaseLinksRequest; import com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse; import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse; import com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest; import com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse; +import com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest; +import com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse; import com.google.analytics.admin.v1alpha.ListPropertiesRequest; import com.google.analytics.admin.v1alpha.ListPropertiesResponse; import com.google.analytics.admin.v1alpha.ListUserLinksRequest; import com.google.analytics.admin.v1alpha.ListUserLinksResponse; import com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest; import com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse; +import com.google.analytics.admin.v1alpha.MeasurementProtocolSecret; import com.google.analytics.admin.v1alpha.Property; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; @@ -92,10 +122,14 @@ import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; 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.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; +import com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.UpdatePropertyRequest; import com.google.analytics.admin.v1alpha.UpdateUserLinkRequest; import com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest; @@ -373,6 +407,44 @@ public UnaryCallable deleteGoogleAdsLinkCalla throw new UnsupportedOperationException("Not implemented: getDataSharingSettingsCallable()"); } + public UnaryCallable + getMeasurementProtocolSecretCallable() { + throw new UnsupportedOperationException( + "Not implemented: getMeasurementProtocolSecretCallable()"); + } + + public UnaryCallable< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsPagedResponse> + listMeasurementProtocolSecretsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMeasurementProtocolSecretsPagedCallable()"); + } + + public UnaryCallable< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> + listMeasurementProtocolSecretsCallable() { + throw new UnsupportedOperationException( + "Not implemented: listMeasurementProtocolSecretsCallable()"); + } + + public UnaryCallable + createMeasurementProtocolSecretCallable() { + throw new UnsupportedOperationException( + "Not implemented: createMeasurementProtocolSecretCallable()"); + } + + public UnaryCallable + deleteMeasurementProtocolSecretCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteMeasurementProtocolSecretCallable()"); + } + + public UnaryCallable + updateMeasurementProtocolSecretCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateMeasurementProtocolSecretCallable()"); + } + public UnaryCallable searchChangeHistoryEventsPagedCallable() { throw new UnsupportedOperationException( @@ -384,6 +456,94 @@ public UnaryCallable deleteGoogleAdsLinkCalla throw new UnsupportedOperationException("Not implemented: searchChangeHistoryEventsCallable()"); } + public UnaryCallable + getGoogleSignalsSettingsCallable() { + throw new UnsupportedOperationException("Not implemented: getGoogleSignalsSettingsCallable()"); + } + + public UnaryCallable + updateGoogleSignalsSettingsCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateGoogleSignalsSettingsCallable()"); + } + + public UnaryCallable + createConversionEventCallable() { + throw new UnsupportedOperationException("Not implemented: createConversionEventCallable()"); + } + + public UnaryCallable getConversionEventCallable() { + throw new UnsupportedOperationException("Not implemented: getConversionEventCallable()"); + } + + public UnaryCallable deleteConversionEventCallable() { + throw new UnsupportedOperationException("Not implemented: deleteConversionEventCallable()"); + } + + public UnaryCallable + listConversionEventsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listConversionEventsPagedCallable()"); + } + + public UnaryCallable + listConversionEventsCallable() { + throw new UnsupportedOperationException("Not implemented: listConversionEventsCallable()"); + } + + public UnaryCallable + createCustomDimensionCallable() { + throw new UnsupportedOperationException("Not implemented: createCustomDimensionCallable()"); + } + + public UnaryCallable + updateCustomDimensionCallable() { + throw new UnsupportedOperationException("Not implemented: updateCustomDimensionCallable()"); + } + + public UnaryCallable + listCustomDimensionsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listCustomDimensionsPagedCallable()"); + } + + public UnaryCallable + listCustomDimensionsCallable() { + throw new UnsupportedOperationException("Not implemented: listCustomDimensionsCallable()"); + } + + public UnaryCallable archiveCustomDimensionCallable() { + throw new UnsupportedOperationException("Not implemented: archiveCustomDimensionCallable()"); + } + + public UnaryCallable getCustomDimensionCallable() { + throw new UnsupportedOperationException("Not implemented: getCustomDimensionCallable()"); + } + + public UnaryCallable createCustomMetricCallable() { + throw new UnsupportedOperationException("Not implemented: createCustomMetricCallable()"); + } + + public UnaryCallable updateCustomMetricCallable() { + throw new UnsupportedOperationException("Not implemented: updateCustomMetricCallable()"); + } + + public UnaryCallable + listCustomMetricsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listCustomMetricsPagedCallable()"); + } + + public UnaryCallable + listCustomMetricsCallable() { + throw new UnsupportedOperationException("Not implemented: listCustomMetricsCallable()"); + } + + public UnaryCallable archiveCustomMetricCallable() { + throw new UnsupportedOperationException("Not implemented: archiveCustomMetricCallable()"); + } + + public UnaryCallable getCustomMetricCallable() { + throw new UnsupportedOperationException("Not implemented: getCustomMetricCallable()"); + } + @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 9b332f58..47306a1c 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 @@ -20,9 +20,13 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAndroidAppDataStreamsPagedResponse; +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.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse; @@ -31,6 +35,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.ArchiveCustomDimensionRequest; +import com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; import com.google.analytics.admin.v1alpha.AuditUserLink; import com.google.analytics.admin.v1alpha.AuditUserLinksRequest; import com.google.analytics.admin.v1alpha.AuditUserLinksResponse; @@ -42,17 +48,26 @@ import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest; import com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse; 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.CreateFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; +import com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.CreatePropertyRequest; import com.google.analytics.admin.v1alpha.CreateUserLinkRequest; 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.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.DeleteFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.DeletePropertyRequest; import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; import com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest; @@ -60,15 +75,21 @@ import com.google.analytics.admin.v1alpha.FirebaseLink; import com.google.analytics.admin.v1alpha.GetAccountRequest; import com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest; +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.GetDataSharingSettingsRequest; import com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest; import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; +import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.GetPropertyRequest; import com.google.analytics.admin.v1alpha.GetUserLinkRequest; import com.google.analytics.admin.v1alpha.GetWebDataStreamRequest; import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; +import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; import com.google.analytics.admin.v1alpha.IosAppDataStream; import com.google.analytics.admin.v1alpha.ListAccountSummariesRequest; import com.google.analytics.admin.v1alpha.ListAccountSummariesResponse; @@ -76,18 +97,27 @@ import com.google.analytics.admin.v1alpha.ListAccountsResponse; import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest; import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse; +import com.google.analytics.admin.v1alpha.ListConversionEventsRequest; +import com.google.analytics.admin.v1alpha.ListConversionEventsResponse; +import com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest; +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.ListFirebaseLinksRequest; import com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse; import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse; import com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest; import com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse; +import com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest; +import com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse; import com.google.analytics.admin.v1alpha.ListPropertiesRequest; import com.google.analytics.admin.v1alpha.ListPropertiesResponse; import com.google.analytics.admin.v1alpha.ListUserLinksRequest; import com.google.analytics.admin.v1alpha.ListUserLinksResponse; import com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest; import com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse; +import com.google.analytics.admin.v1alpha.MeasurementProtocolSecret; import com.google.analytics.admin.v1alpha.Property; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; @@ -95,10 +125,14 @@ import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; 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.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; +import com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.UpdatePropertyRequest; import com.google.analytics.admin.v1alpha.UpdateUserLinkRequest; import com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest; @@ -276,11 +310,61 @@ public class AnalyticsAdminServiceStubSettings listGoogleAdsLinksSettings; private final UnaryCallSettings getDataSharingSettingsSettings; + private final UnaryCallSettings + getMeasurementProtocolSecretSettings; + private final PagedCallSettings< + ListMeasurementProtocolSecretsRequest, + ListMeasurementProtocolSecretsResponse, + ListMeasurementProtocolSecretsPagedResponse> + listMeasurementProtocolSecretsSettings; + private final UnaryCallSettings + createMeasurementProtocolSecretSettings; + private final UnaryCallSettings + deleteMeasurementProtocolSecretSettings; + private final UnaryCallSettings + updateMeasurementProtocolSecretSettings; private final PagedCallSettings< SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse, SearchChangeHistoryEventsPagedResponse> searchChangeHistoryEventsSettings; + private final UnaryCallSettings + getGoogleSignalsSettingsSettings; + private final UnaryCallSettings + updateGoogleSignalsSettingsSettings; + private final UnaryCallSettings + createConversionEventSettings; + private final UnaryCallSettings + getConversionEventSettings; + private final UnaryCallSettings + deleteConversionEventSettings; + private final PagedCallSettings< + ListConversionEventsRequest, + ListConversionEventsResponse, + ListConversionEventsPagedResponse> + listConversionEventsSettings; + private final UnaryCallSettings + createCustomDimensionSettings; + private final UnaryCallSettings + updateCustomDimensionSettings; + private final PagedCallSettings< + ListCustomDimensionsRequest, + ListCustomDimensionsResponse, + ListCustomDimensionsPagedResponse> + listCustomDimensionsSettings; + private final UnaryCallSettings + archiveCustomDimensionSettings; + private final UnaryCallSettings + getCustomDimensionSettings; + private final UnaryCallSettings + createCustomMetricSettings; + private final UnaryCallSettings + updateCustomMetricSettings; + private final PagedCallSettings< + ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> + listCustomMetricsSettings; + private final UnaryCallSettings archiveCustomMetricSettings; + private final UnaryCallSettings getCustomMetricSettings; private static final PagedListDescriptor LIST_ACCOUNTS_PAGE_STR_DESC = @@ -677,6 +761,55 @@ public Iterable extractResources(ListGoogleAdsLinksResponse paylo } }; + private static final PagedListDescriptor< + ListMeasurementProtocolSecretsRequest, + ListMeasurementProtocolSecretsResponse, + MeasurementProtocolSecret> + LIST_MEASUREMENT_PROTOCOL_SECRETS_PAGE_STR_DESC = + new PagedListDescriptor< + ListMeasurementProtocolSecretsRequest, + ListMeasurementProtocolSecretsResponse, + MeasurementProtocolSecret>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListMeasurementProtocolSecretsRequest injectToken( + ListMeasurementProtocolSecretsRequest payload, String token) { + return ListMeasurementProtocolSecretsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public ListMeasurementProtocolSecretsRequest injectPageSize( + ListMeasurementProtocolSecretsRequest payload, int pageSize) { + return ListMeasurementProtocolSecretsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(ListMeasurementProtocolSecretsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListMeasurementProtocolSecretsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListMeasurementProtocolSecretsResponse payload) { + return payload.getMeasurementProtocolSecretsList() == null + ? ImmutableList.of() + : payload.getMeasurementProtocolSecretsList(); + } + }; + private static final PagedListDescriptor< SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse, ChangeHistoryEvent> SEARCH_CHANGE_HISTORY_EVENTS_PAGE_STR_DESC = @@ -724,6 +857,128 @@ public Iterable extractResources( } }; + private static final PagedListDescriptor< + ListConversionEventsRequest, ListConversionEventsResponse, ConversionEvent> + LIST_CONVERSION_EVENTS_PAGE_STR_DESC = + new PagedListDescriptor< + ListConversionEventsRequest, ListConversionEventsResponse, ConversionEvent>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListConversionEventsRequest injectToken( + ListConversionEventsRequest payload, String token) { + return ListConversionEventsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListConversionEventsRequest injectPageSize( + ListConversionEventsRequest payload, int pageSize) { + return ListConversionEventsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListConversionEventsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListConversionEventsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListConversionEventsResponse payload) { + return payload.getConversionEventsList() == null + ? ImmutableList.of() + : payload.getConversionEventsList(); + } + }; + + private static final PagedListDescriptor< + ListCustomDimensionsRequest, ListCustomDimensionsResponse, CustomDimension> + LIST_CUSTOM_DIMENSIONS_PAGE_STR_DESC = + new PagedListDescriptor< + ListCustomDimensionsRequest, ListCustomDimensionsResponse, CustomDimension>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListCustomDimensionsRequest injectToken( + ListCustomDimensionsRequest payload, String token) { + return ListCustomDimensionsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListCustomDimensionsRequest injectPageSize( + ListCustomDimensionsRequest payload, int pageSize) { + return ListCustomDimensionsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListCustomDimensionsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListCustomDimensionsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListCustomDimensionsResponse payload) { + return payload.getCustomDimensionsList() == null + ? ImmutableList.of() + : payload.getCustomDimensionsList(); + } + }; + + private static final PagedListDescriptor< + ListCustomMetricsRequest, ListCustomMetricsResponse, CustomMetric> + LIST_CUSTOM_METRICS_PAGE_STR_DESC = + new PagedListDescriptor< + ListCustomMetricsRequest, ListCustomMetricsResponse, CustomMetric>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListCustomMetricsRequest injectToken( + ListCustomMetricsRequest payload, String token) { + return ListCustomMetricsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListCustomMetricsRequest injectPageSize( + ListCustomMetricsRequest payload, int pageSize) { + return ListCustomMetricsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListCustomMetricsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListCustomMetricsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListCustomMetricsResponse payload) { + return payload.getCustomMetricsList() == null + ? ImmutableList.of() + : payload.getCustomMetricsList(); + } + }; + private static final PagedListResponseFactory< ListAccountsRequest, ListAccountsResponse, ListAccountsPagedResponse> LIST_ACCOUNTS_PAGE_STR_FACT = @@ -932,6 +1187,39 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListMeasurementProtocolSecretsRequest, + ListMeasurementProtocolSecretsResponse, + ListMeasurementProtocolSecretsPagedResponse> + LIST_MEASUREMENT_PROTOCOL_SECRETS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListMeasurementProtocolSecretsRequest, + ListMeasurementProtocolSecretsResponse, + ListMeasurementProtocolSecretsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable< + ListMeasurementProtocolSecretsRequest, + ListMeasurementProtocolSecretsResponse> + callable, + ListMeasurementProtocolSecretsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListMeasurementProtocolSecretsRequest, + ListMeasurementProtocolSecretsResponse, + MeasurementProtocolSecret> + pageContext = + PageContext.create( + callable, + LIST_MEASUREMENT_PROTOCOL_SECRETS_PAGE_STR_DESC, + request, + context); + return ListMeasurementProtocolSecretsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse, @@ -960,6 +1248,75 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + ListConversionEventsRequest, + ListConversionEventsResponse, + ListConversionEventsPagedResponse> + LIST_CONVERSION_EVENTS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListConversionEventsRequest, + ListConversionEventsResponse, + ListConversionEventsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListConversionEventsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListConversionEventsRequest, ListConversionEventsResponse, ConversionEvent> + pageContext = + PageContext.create( + callable, LIST_CONVERSION_EVENTS_PAGE_STR_DESC, request, context); + return ListConversionEventsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListCustomDimensionsRequest, + ListCustomDimensionsResponse, + ListCustomDimensionsPagedResponse> + LIST_CUSTOM_DIMENSIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListCustomDimensionsRequest, + ListCustomDimensionsResponse, + ListCustomDimensionsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListCustomDimensionsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListCustomDimensionsRequest, ListCustomDimensionsResponse, CustomDimension> + pageContext = + PageContext.create( + callable, LIST_CUSTOM_DIMENSIONS_PAGE_STR_DESC, request, context); + return ListCustomDimensionsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> + LIST_CUSTOM_METRICS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListCustomMetricsRequest, + ListCustomMetricsResponse, + ListCustomMetricsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListCustomMetricsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_CUSTOM_METRICS_PAGE_STR_DESC, request, context); + return ListCustomMetricsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + /** Returns the object with the settings used for calls to getAccount. */ public UnaryCallSettings getAccountSettings() { return getAccountSettings; @@ -1230,6 +1587,39 @@ public UnaryCallSettings deleteGoogleAdsLinkS return getDataSharingSettingsSettings; } + /** Returns the object with the settings used for calls to getMeasurementProtocolSecret. */ + public UnaryCallSettings + getMeasurementProtocolSecretSettings() { + return getMeasurementProtocolSecretSettings; + } + + /** Returns the object with the settings used for calls to listMeasurementProtocolSecrets. */ + public PagedCallSettings< + ListMeasurementProtocolSecretsRequest, + ListMeasurementProtocolSecretsResponse, + ListMeasurementProtocolSecretsPagedResponse> + listMeasurementProtocolSecretsSettings() { + return listMeasurementProtocolSecretsSettings; + } + + /** Returns the object with the settings used for calls to createMeasurementProtocolSecret. */ + public UnaryCallSettings + createMeasurementProtocolSecretSettings() { + return createMeasurementProtocolSecretSettings; + } + + /** Returns the object with the settings used for calls to deleteMeasurementProtocolSecret. */ + public UnaryCallSettings + deleteMeasurementProtocolSecretSettings() { + return deleteMeasurementProtocolSecretSettings; + } + + /** Returns the object with the settings used for calls to updateMeasurementProtocolSecret. */ + public UnaryCallSettings + updateMeasurementProtocolSecretSettings() { + return updateMeasurementProtocolSecretSettings; + } + /** Returns the object with the settings used for calls to searchChangeHistoryEvents. */ public PagedCallSettings< SearchChangeHistoryEventsRequest, @@ -1239,6 +1629,103 @@ public UnaryCallSettings deleteGoogleAdsLinkS return searchChangeHistoryEventsSettings; } + /** Returns the object with the settings used for calls to getGoogleSignalsSettings. */ + public UnaryCallSettings + getGoogleSignalsSettingsSettings() { + return getGoogleSignalsSettingsSettings; + } + + /** Returns the object with the settings used for calls to updateGoogleSignalsSettings. */ + public UnaryCallSettings + updateGoogleSignalsSettingsSettings() { + return updateGoogleSignalsSettingsSettings; + } + + /** Returns the object with the settings used for calls to createConversionEvent. */ + public UnaryCallSettings + createConversionEventSettings() { + return createConversionEventSettings; + } + + /** Returns the object with the settings used for calls to getConversionEvent. */ + public UnaryCallSettings + getConversionEventSettings() { + return getConversionEventSettings; + } + + /** Returns the object with the settings used for calls to deleteConversionEvent. */ + public UnaryCallSettings deleteConversionEventSettings() { + return deleteConversionEventSettings; + } + + /** Returns the object with the settings used for calls to listConversionEvents. */ + public PagedCallSettings< + ListConversionEventsRequest, + ListConversionEventsResponse, + ListConversionEventsPagedResponse> + listConversionEventsSettings() { + return listConversionEventsSettings; + } + + /** Returns the object with the settings used for calls to createCustomDimension. */ + public UnaryCallSettings + createCustomDimensionSettings() { + return createCustomDimensionSettings; + } + + /** Returns the object with the settings used for calls to updateCustomDimension. */ + public UnaryCallSettings + updateCustomDimensionSettings() { + return updateCustomDimensionSettings; + } + + /** Returns the object with the settings used for calls to listCustomDimensions. */ + public PagedCallSettings< + ListCustomDimensionsRequest, + ListCustomDimensionsResponse, + ListCustomDimensionsPagedResponse> + listCustomDimensionsSettings() { + return listCustomDimensionsSettings; + } + + /** Returns the object with the settings used for calls to archiveCustomDimension. */ + public UnaryCallSettings archiveCustomDimensionSettings() { + return archiveCustomDimensionSettings; + } + + /** Returns the object with the settings used for calls to getCustomDimension. */ + public UnaryCallSettings + getCustomDimensionSettings() { + return getCustomDimensionSettings; + } + + /** Returns the object with the settings used for calls to createCustomMetric. */ + public UnaryCallSettings createCustomMetricSettings() { + return createCustomMetricSettings; + } + + /** Returns the object with the settings used for calls to updateCustomMetric. */ + public UnaryCallSettings updateCustomMetricSettings() { + return updateCustomMetricSettings; + } + + /** Returns the object with the settings used for calls to listCustomMetrics. */ + public PagedCallSettings< + ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> + listCustomMetricsSettings() { + return listCustomMetricsSettings; + } + + /** Returns the object with the settings used for calls to archiveCustomMetric. */ + public UnaryCallSettings archiveCustomMetricSettings() { + return archiveCustomMetricSettings; + } + + /** Returns the object with the settings used for calls to getCustomMetric. */ + public UnaryCallSettings getCustomMetricSettings() { + return getCustomMetricSettings; + } + @BetaApi("A restructuring of stub classes is planned, so this may break in the future") public AnalyticsAdminServiceStub createStub() throws IOException { if (getTransportChannelProvider() @@ -1358,7 +1845,34 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx deleteGoogleAdsLinkSettings = settingsBuilder.deleteGoogleAdsLinkSettings().build(); listGoogleAdsLinksSettings = settingsBuilder.listGoogleAdsLinksSettings().build(); getDataSharingSettingsSettings = settingsBuilder.getDataSharingSettingsSettings().build(); + getMeasurementProtocolSecretSettings = + settingsBuilder.getMeasurementProtocolSecretSettings().build(); + listMeasurementProtocolSecretsSettings = + settingsBuilder.listMeasurementProtocolSecretsSettings().build(); + createMeasurementProtocolSecretSettings = + settingsBuilder.createMeasurementProtocolSecretSettings().build(); + deleteMeasurementProtocolSecretSettings = + settingsBuilder.deleteMeasurementProtocolSecretSettings().build(); + updateMeasurementProtocolSecretSettings = + settingsBuilder.updateMeasurementProtocolSecretSettings().build(); searchChangeHistoryEventsSettings = settingsBuilder.searchChangeHistoryEventsSettings().build(); + getGoogleSignalsSettingsSettings = settingsBuilder.getGoogleSignalsSettingsSettings().build(); + updateGoogleSignalsSettingsSettings = + settingsBuilder.updateGoogleSignalsSettingsSettings().build(); + createConversionEventSettings = settingsBuilder.createConversionEventSettings().build(); + getConversionEventSettings = settingsBuilder.getConversionEventSettings().build(); + deleteConversionEventSettings = settingsBuilder.deleteConversionEventSettings().build(); + listConversionEventsSettings = settingsBuilder.listConversionEventsSettings().build(); + createCustomDimensionSettings = settingsBuilder.createCustomDimensionSettings().build(); + updateCustomDimensionSettings = settingsBuilder.updateCustomDimensionSettings().build(); + listCustomDimensionsSettings = settingsBuilder.listCustomDimensionsSettings().build(); + archiveCustomDimensionSettings = settingsBuilder.archiveCustomDimensionSettings().build(); + getCustomDimensionSettings = settingsBuilder.getCustomDimensionSettings().build(); + createCustomMetricSettings = settingsBuilder.createCustomMetricSettings().build(); + updateCustomMetricSettings = settingsBuilder.updateCustomMetricSettings().build(); + listCustomMetricsSettings = settingsBuilder.listCustomMetricsSettings().build(); + archiveCustomMetricSettings = settingsBuilder.archiveCustomMetricSettings().build(); + getCustomMetricSettings = settingsBuilder.getCustomMetricSettings().build(); } /** Builder for AnalyticsAdminServiceStubSettings. */ @@ -1467,11 +1981,67 @@ public static class Builder listGoogleAdsLinksSettings; private final UnaryCallSettings.Builder getDataSharingSettingsSettings; + private final UnaryCallSettings.Builder< + GetMeasurementProtocolSecretRequest, MeasurementProtocolSecret> + getMeasurementProtocolSecretSettings; + private final PagedCallSettings.Builder< + ListMeasurementProtocolSecretsRequest, + ListMeasurementProtocolSecretsResponse, + ListMeasurementProtocolSecretsPagedResponse> + listMeasurementProtocolSecretsSettings; + private final UnaryCallSettings.Builder< + CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> + createMeasurementProtocolSecretSettings; + private final UnaryCallSettings.Builder + deleteMeasurementProtocolSecretSettings; + private final UnaryCallSettings.Builder< + UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> + updateMeasurementProtocolSecretSettings; private final PagedCallSettings.Builder< SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse, SearchChangeHistoryEventsPagedResponse> searchChangeHistoryEventsSettings; + private final UnaryCallSettings.Builder + getGoogleSignalsSettingsSettings; + private final UnaryCallSettings.Builder< + UpdateGoogleSignalsSettingsRequest, GoogleSignalsSettings> + updateGoogleSignalsSettingsSettings; + private final UnaryCallSettings.Builder + createConversionEventSettings; + private final UnaryCallSettings.Builder + getConversionEventSettings; + private final UnaryCallSettings.Builder + deleteConversionEventSettings; + private final PagedCallSettings.Builder< + ListConversionEventsRequest, + ListConversionEventsResponse, + ListConversionEventsPagedResponse> + listConversionEventsSettings; + private final UnaryCallSettings.Builder + createCustomDimensionSettings; + private final UnaryCallSettings.Builder + updateCustomDimensionSettings; + private final PagedCallSettings.Builder< + ListCustomDimensionsRequest, + ListCustomDimensionsResponse, + ListCustomDimensionsPagedResponse> + listCustomDimensionsSettings; + private final UnaryCallSettings.Builder + archiveCustomDimensionSettings; + private final UnaryCallSettings.Builder + getCustomDimensionSettings; + private final UnaryCallSettings.Builder + createCustomMetricSettings; + private final UnaryCallSettings.Builder + updateCustomMetricSettings; + private final PagedCallSettings.Builder< + ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> + listCustomMetricsSettings; + private final UnaryCallSettings.Builder + archiveCustomMetricSettings; + private final UnaryCallSettings.Builder + getCustomMetricSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -1573,8 +2143,32 @@ protected Builder(ClientContext clientContext) { listGoogleAdsLinksSettings = PagedCallSettings.newBuilder(LIST_GOOGLE_ADS_LINKS_PAGE_STR_FACT); getDataSharingSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getMeasurementProtocolSecretSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listMeasurementProtocolSecretsSettings = + PagedCallSettings.newBuilder(LIST_MEASUREMENT_PROTOCOL_SECRETS_PAGE_STR_FACT); + createMeasurementProtocolSecretSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteMeasurementProtocolSecretSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateMeasurementProtocolSecretSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); searchChangeHistoryEventsSettings = PagedCallSettings.newBuilder(SEARCH_CHANGE_HISTORY_EVENTS_PAGE_STR_FACT); + getGoogleSignalsSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateGoogleSignalsSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createConversionEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getConversionEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteConversionEventSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listConversionEventsSettings = + PagedCallSettings.newBuilder(LIST_CONVERSION_EVENTS_PAGE_STR_FACT); + createCustomDimensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateCustomDimensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listCustomDimensionsSettings = + PagedCallSettings.newBuilder(LIST_CUSTOM_DIMENSIONS_PAGE_STR_FACT); + archiveCustomDimensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getCustomDimensionSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createCustomMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateCustomMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + listCustomMetricsSettings = PagedCallSettings.newBuilder(LIST_CUSTOM_METRICS_PAGE_STR_FACT); + archiveCustomMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getCustomMetricSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -1624,7 +2218,28 @@ protected Builder(ClientContext clientContext) { deleteGoogleAdsLinkSettings, listGoogleAdsLinksSettings, getDataSharingSettingsSettings, - searchChangeHistoryEventsSettings); + getMeasurementProtocolSecretSettings, + listMeasurementProtocolSecretsSettings, + createMeasurementProtocolSecretSettings, + deleteMeasurementProtocolSecretSettings, + updateMeasurementProtocolSecretSettings, + searchChangeHistoryEventsSettings, + getGoogleSignalsSettingsSettings, + updateGoogleSignalsSettingsSettings, + createConversionEventSettings, + getConversionEventSettings, + deleteConversionEventSettings, + listConversionEventsSettings, + createCustomDimensionSettings, + updateCustomDimensionSettings, + listCustomDimensionsSettings, + archiveCustomDimensionSettings, + getCustomDimensionSettings, + createCustomMetricSettings, + updateCustomMetricSettings, + listCustomMetricsSettings, + archiveCustomMetricSettings, + getCustomMetricSettings); initDefaults(this); } @@ -1679,7 +2294,34 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { deleteGoogleAdsLinkSettings = settings.deleteGoogleAdsLinkSettings.toBuilder(); listGoogleAdsLinksSettings = settings.listGoogleAdsLinksSettings.toBuilder(); getDataSharingSettingsSettings = settings.getDataSharingSettingsSettings.toBuilder(); + getMeasurementProtocolSecretSettings = + settings.getMeasurementProtocolSecretSettings.toBuilder(); + listMeasurementProtocolSecretsSettings = + settings.listMeasurementProtocolSecretsSettings.toBuilder(); + createMeasurementProtocolSecretSettings = + settings.createMeasurementProtocolSecretSettings.toBuilder(); + deleteMeasurementProtocolSecretSettings = + settings.deleteMeasurementProtocolSecretSettings.toBuilder(); + updateMeasurementProtocolSecretSettings = + settings.updateMeasurementProtocolSecretSettings.toBuilder(); searchChangeHistoryEventsSettings = settings.searchChangeHistoryEventsSettings.toBuilder(); + getGoogleSignalsSettingsSettings = settings.getGoogleSignalsSettingsSettings.toBuilder(); + updateGoogleSignalsSettingsSettings = + settings.updateGoogleSignalsSettingsSettings.toBuilder(); + createConversionEventSettings = settings.createConversionEventSettings.toBuilder(); + getConversionEventSettings = settings.getConversionEventSettings.toBuilder(); + deleteConversionEventSettings = settings.deleteConversionEventSettings.toBuilder(); + listConversionEventsSettings = settings.listConversionEventsSettings.toBuilder(); + createCustomDimensionSettings = settings.createCustomDimensionSettings.toBuilder(); + updateCustomDimensionSettings = settings.updateCustomDimensionSettings.toBuilder(); + listCustomDimensionsSettings = settings.listCustomDimensionsSettings.toBuilder(); + archiveCustomDimensionSettings = settings.archiveCustomDimensionSettings.toBuilder(); + getCustomDimensionSettings = settings.getCustomDimensionSettings.toBuilder(); + createCustomMetricSettings = settings.createCustomMetricSettings.toBuilder(); + updateCustomMetricSettings = settings.updateCustomMetricSettings.toBuilder(); + listCustomMetricsSettings = settings.listCustomMetricsSettings.toBuilder(); + archiveCustomMetricSettings = settings.archiveCustomMetricSettings.toBuilder(); + getCustomMetricSettings = settings.getCustomMetricSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -1729,7 +2371,28 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { deleteGoogleAdsLinkSettings, listGoogleAdsLinksSettings, getDataSharingSettingsSettings, - searchChangeHistoryEventsSettings); + getMeasurementProtocolSecretSettings, + listMeasurementProtocolSecretsSettings, + createMeasurementProtocolSecretSettings, + deleteMeasurementProtocolSecretSettings, + updateMeasurementProtocolSecretSettings, + searchChangeHistoryEventsSettings, + getGoogleSignalsSettingsSettings, + updateGoogleSignalsSettingsSettings, + createConversionEventSettings, + getConversionEventSettings, + deleteConversionEventSettings, + listConversionEventsSettings, + createCustomDimensionSettings, + updateCustomDimensionSettings, + listCustomDimensionsSettings, + archiveCustomDimensionSettings, + getCustomDimensionSettings, + createCustomMetricSettings, + updateCustomMetricSettings, + listCustomMetricsSettings, + archiveCustomMetricSettings, + getCustomMetricSettings); } private static Builder createDefault() { @@ -1974,11 +2637,116 @@ 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 + .getMeasurementProtocolSecretSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listMeasurementProtocolSecretsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createMeasurementProtocolSecretSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteMeasurementProtocolSecretSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateMeasurementProtocolSecretSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .searchChangeHistoryEventsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .getGoogleSignalsSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateGoogleSignalsSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createConversionEventSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getConversionEventSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .deleteConversionEventSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listConversionEventsSettings() + .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")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateCustomDimensionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listCustomDimensionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .archiveCustomDimensionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getCustomDimensionSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createCustomMetricSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateCustomMetricSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .listCustomMetricsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .archiveCustomMetricSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .getCustomMetricSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + return builder; } @@ -2281,6 +3049,41 @@ public UnaryCallSettings.Builder deleteUserLinkSet return getDataSharingSettingsSettings; } + /** Returns the builder for the settings used for calls to getMeasurementProtocolSecret. */ + public UnaryCallSettings.Builder + getMeasurementProtocolSecretSettings() { + return getMeasurementProtocolSecretSettings; + } + + /** Returns the builder for the settings used for calls to listMeasurementProtocolSecrets. */ + public PagedCallSettings.Builder< + ListMeasurementProtocolSecretsRequest, + ListMeasurementProtocolSecretsResponse, + ListMeasurementProtocolSecretsPagedResponse> + listMeasurementProtocolSecretsSettings() { + return listMeasurementProtocolSecretsSettings; + } + + /** Returns the builder for the settings used for calls to createMeasurementProtocolSecret. */ + public UnaryCallSettings.Builder< + CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> + createMeasurementProtocolSecretSettings() { + return createMeasurementProtocolSecretSettings; + } + + /** Returns the builder for the settings used for calls to deleteMeasurementProtocolSecret. */ + public UnaryCallSettings.Builder + deleteMeasurementProtocolSecretSettings() { + return deleteMeasurementProtocolSecretSettings; + } + + /** Returns the builder for the settings used for calls to updateMeasurementProtocolSecret. */ + public UnaryCallSettings.Builder< + UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> + updateMeasurementProtocolSecretSettings() { + return updateMeasurementProtocolSecretSettings; + } + /** Returns the builder for the settings used for calls to searchChangeHistoryEvents. */ public PagedCallSettings.Builder< SearchChangeHistoryEventsRequest, @@ -2290,6 +3093,109 @@ public UnaryCallSettings.Builder deleteUserLinkSet return searchChangeHistoryEventsSettings; } + /** Returns the builder for the settings used for calls to getGoogleSignalsSettings. */ + public UnaryCallSettings.Builder + getGoogleSignalsSettingsSettings() { + return getGoogleSignalsSettingsSettings; + } + + /** Returns the builder for the settings used for calls to updateGoogleSignalsSettings. */ + public UnaryCallSettings.Builder + updateGoogleSignalsSettingsSettings() { + return updateGoogleSignalsSettingsSettings; + } + + /** Returns the builder for the settings used for calls to createConversionEvent. */ + public UnaryCallSettings.Builder + createConversionEventSettings() { + return createConversionEventSettings; + } + + /** Returns the builder for the settings used for calls to getConversionEvent. */ + public UnaryCallSettings.Builder + getConversionEventSettings() { + return getConversionEventSettings; + } + + /** Returns the builder for the settings used for calls to deleteConversionEvent. */ + public UnaryCallSettings.Builder + deleteConversionEventSettings() { + return deleteConversionEventSettings; + } + + /** Returns the builder for the settings used for calls to listConversionEvents. */ + public PagedCallSettings.Builder< + ListConversionEventsRequest, + ListConversionEventsResponse, + ListConversionEventsPagedResponse> + listConversionEventsSettings() { + return listConversionEventsSettings; + } + + /** Returns the builder for the settings used for calls to createCustomDimension. */ + public UnaryCallSettings.Builder + createCustomDimensionSettings() { + return createCustomDimensionSettings; + } + + /** Returns the builder for the settings used for calls to updateCustomDimension. */ + public UnaryCallSettings.Builder + updateCustomDimensionSettings() { + return updateCustomDimensionSettings; + } + + /** Returns the builder for the settings used for calls to listCustomDimensions. */ + public PagedCallSettings.Builder< + ListCustomDimensionsRequest, + ListCustomDimensionsResponse, + ListCustomDimensionsPagedResponse> + listCustomDimensionsSettings() { + return listCustomDimensionsSettings; + } + + /** Returns the builder for the settings used for calls to archiveCustomDimension. */ + public UnaryCallSettings.Builder + archiveCustomDimensionSettings() { + return archiveCustomDimensionSettings; + } + + /** Returns the builder for the settings used for calls to getCustomDimension. */ + public UnaryCallSettings.Builder + getCustomDimensionSettings() { + return getCustomDimensionSettings; + } + + /** Returns the builder for the settings used for calls to createCustomMetric. */ + public UnaryCallSettings.Builder + createCustomMetricSettings() { + return createCustomMetricSettings; + } + + /** Returns the builder for the settings used for calls to updateCustomMetric. */ + public UnaryCallSettings.Builder + updateCustomMetricSettings() { + return updateCustomMetricSettings; + } + + /** Returns the builder for the settings used for calls to listCustomMetrics. */ + public PagedCallSettings.Builder< + ListCustomMetricsRequest, ListCustomMetricsResponse, ListCustomMetricsPagedResponse> + listCustomMetricsSettings() { + return listCustomMetricsSettings; + } + + /** Returns the builder for the settings used for calls to archiveCustomMetric. */ + public UnaryCallSettings.Builder + archiveCustomMetricSettings() { + return archiveCustomMetricSettings; + } + + /** Returns the builder for the settings used for calls to getCustomMetric. */ + public UnaryCallSettings.Builder + getCustomMetricSettings() { + return getCustomMetricSettings; + } + @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 e45350d0..15e4c2d0 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 @@ -20,9 +20,13 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAndroidAppDataStreamsPagedResponse; +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.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse; @@ -30,6 +34,8 @@ import com.google.analytics.admin.v1alpha.Account; import com.google.analytics.admin.v1alpha.AndroidAppDataStream; +import com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest; +import com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest; import com.google.analytics.admin.v1alpha.AuditUserLinksRequest; import com.google.analytics.admin.v1alpha.AuditUserLinksResponse; import com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest; @@ -39,17 +45,26 @@ 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.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.CreateFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest; +import com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.CreatePropertyRequest; import com.google.analytics.admin.v1alpha.CreateUserLinkRequest; 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.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.DeleteFirebaseLinkRequest; import com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest; import com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.DeletePropertyRequest; import com.google.analytics.admin.v1alpha.DeleteUserLinkRequest; import com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest; @@ -57,15 +72,21 @@ import com.google.analytics.admin.v1alpha.FirebaseLink; import com.google.analytics.admin.v1alpha.GetAccountRequest; import com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest; +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.GetDataSharingSettingsRequest; import com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest; import com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest; +import com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest; import com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest; +import com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.GetPropertyRequest; import com.google.analytics.admin.v1alpha.GetUserLinkRequest; import com.google.analytics.admin.v1alpha.GetWebDataStreamRequest; import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; +import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; import com.google.analytics.admin.v1alpha.IosAppDataStream; import com.google.analytics.admin.v1alpha.ListAccountSummariesRequest; import com.google.analytics.admin.v1alpha.ListAccountSummariesResponse; @@ -73,18 +94,27 @@ import com.google.analytics.admin.v1alpha.ListAccountsResponse; import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest; import com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse; +import com.google.analytics.admin.v1alpha.ListConversionEventsRequest; +import com.google.analytics.admin.v1alpha.ListConversionEventsResponse; +import com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest; +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.ListFirebaseLinksRequest; import com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse; import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest; import com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse; import com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest; import com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse; +import com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest; +import com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse; import com.google.analytics.admin.v1alpha.ListPropertiesRequest; import com.google.analytics.admin.v1alpha.ListPropertiesResponse; import com.google.analytics.admin.v1alpha.ListUserLinksRequest; import com.google.analytics.admin.v1alpha.ListUserLinksResponse; import com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest; import com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse; +import com.google.analytics.admin.v1alpha.MeasurementProtocolSecret; import com.google.analytics.admin.v1alpha.Property; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest; import com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse; @@ -92,10 +122,14 @@ import com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse; import com.google.analytics.admin.v1alpha.UpdateAccountRequest; 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.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; +import com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest; import com.google.analytics.admin.v1alpha.UpdatePropertyRequest; import com.google.analytics.admin.v1alpha.UpdateUserLinkRequest; import com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest; @@ -649,6 +683,78 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { ProtoUtils.marshaller(DataSharingSettings.getDefaultInstance())) .build(); + private static final MethodDescriptor< + GetMeasurementProtocolSecretRequest, MeasurementProtocolSecret> + getMeasurementProtocolSecretMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetMeasurementProtocolSecret") + .setRequestMarshaller( + ProtoUtils.marshaller(GetMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(MeasurementProtocolSecret.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> + listMeasurementProtocolSecretsMethodDescriptor = + MethodDescriptor + . + newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListMeasurementProtocolSecrets") + .setRequestMarshaller( + ProtoUtils.marshaller(ListMeasurementProtocolSecretsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller( + ListMeasurementProtocolSecretsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + CreateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> + createMeasurementProtocolSecretMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateMeasurementProtocolSecret") + .setRequestMarshaller( + ProtoUtils.marshaller( + CreateMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(MeasurementProtocolSecret.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteMeasurementProtocolSecretMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteMeasurementProtocolSecret") + .setRequestMarshaller( + ProtoUtils.marshaller( + DeleteMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor< + UpdateMeasurementProtocolSecretRequest, MeasurementProtocolSecret> + updateMeasurementProtocolSecretMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateMeasurementProtocolSecret") + .setRequestMarshaller( + ProtoUtils.marshaller( + UpdateMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(MeasurementProtocolSecret.getDefaultInstance())) + .build(); + private static final MethodDescriptor< SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsResponse> searchChangeHistoryEventsMethodDescriptor = @@ -663,6 +769,187 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { ProtoUtils.marshaller(SearchChangeHistoryEventsResponse.getDefaultInstance())) .build(); + private static final MethodDescriptor + getGoogleSignalsSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetGoogleSignalsSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(GetGoogleSignalsSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GoogleSignalsSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateGoogleSignalsSettingsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateGoogleSignalsSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateGoogleSignalsSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GoogleSignalsSettings.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createConversionEventMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateConversionEvent") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateConversionEventRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ConversionEvent.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getConversionEventMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetConversionEvent") + .setRequestMarshaller( + ProtoUtils.marshaller(GetConversionEventRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(ConversionEvent.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + deleteConversionEventMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/DeleteConversionEvent") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteConversionEventRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listConversionEventsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListConversionEvents") + .setRequestMarshaller( + ProtoUtils.marshaller(ListConversionEventsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListConversionEventsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createCustomDimensionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomDimension") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateCustomDimensionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CustomDimension.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateCustomDimensionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomDimension") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateCustomDimensionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CustomDimension.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listCustomDimensionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomDimensions") + .setRequestMarshaller( + ProtoUtils.marshaller(ListCustomDimensionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListCustomDimensionsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + archiveCustomDimensionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomDimension") + .setRequestMarshaller( + ProtoUtils.marshaller(ArchiveCustomDimensionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getCustomDimensionMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomDimension") + .setRequestMarshaller( + ProtoUtils.marshaller(GetCustomDimensionRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CustomDimension.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + createCustomMetricMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/CreateCustomMetric") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateCustomMetricRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CustomMetric.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + updateCustomMetricMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/UpdateCustomMetric") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateCustomMetricRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CustomMetric.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + listCustomMetricsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ListCustomMetrics") + .setRequestMarshaller( + ProtoUtils.marshaller(ListCustomMetricsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListCustomMetricsResponse.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + archiveCustomMetricMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/ArchiveCustomMetric") + .setRequestMarshaller( + ProtoUtils.marshaller(ArchiveCustomMetricRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) + .build(); + + private static final MethodDescriptor + getCustomMetricMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetCustomMetric") + .setRequestMarshaller( + ProtoUtils.marshaller(GetCustomMetricRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(CustomMetric.getDefaultInstance())) + .build(); + private final UnaryCallable getAccountCallable; private final UnaryCallable listAccountsCallable; private final UnaryCallable @@ -752,11 +1039,57 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { listGoogleAdsLinksPagedCallable; private final UnaryCallable getDataSharingSettingsCallable; + private final UnaryCallable + getMeasurementProtocolSecretCallable; + private final UnaryCallable< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> + listMeasurementProtocolSecretsCallable; + private final UnaryCallable< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsPagedResponse> + listMeasurementProtocolSecretsPagedCallable; + private final UnaryCallable + createMeasurementProtocolSecretCallable; + private final UnaryCallable + deleteMeasurementProtocolSecretCallable; + private final UnaryCallable + updateMeasurementProtocolSecretCallable; private final UnaryCallable searchChangeHistoryEventsCallable; private final UnaryCallable< SearchChangeHistoryEventsRequest, SearchChangeHistoryEventsPagedResponse> searchChangeHistoryEventsPagedCallable; + private final UnaryCallable + getGoogleSignalsSettingsCallable; + private final UnaryCallable + updateGoogleSignalsSettingsCallable; + private final UnaryCallable + createConversionEventCallable; + private final UnaryCallable + getConversionEventCallable; + private final UnaryCallable deleteConversionEventCallable; + private final UnaryCallable + listConversionEventsCallable; + private final UnaryCallable + listConversionEventsPagedCallable; + private final UnaryCallable + createCustomDimensionCallable; + private final UnaryCallable + updateCustomDimensionCallable; + private final UnaryCallable + listCustomDimensionsCallable; + private final UnaryCallable + listCustomDimensionsPagedCallable; + private final UnaryCallable archiveCustomDimensionCallable; + private final UnaryCallable + getCustomDimensionCallable; + private final UnaryCallable createCustomMetricCallable; + private final UnaryCallable updateCustomMetricCallable; + private final UnaryCallable + listCustomMetricsCallable; + private final UnaryCallable + listCustomMetricsPagedCallable; + private final UnaryCallable archiveCustomMetricCallable; + private final UnaryCallable getCustomMetricCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -1399,6 +1732,88 @@ public Map extract(GetDataSharingSettingsRequest request) { } }) .build(); + GrpcCallSettings + getMeasurementProtocolSecretTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getMeasurementProtocolSecretMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract( + GetMeasurementProtocolSecretRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + listMeasurementProtocolSecretsTransportSettings = + GrpcCallSettings + . + newBuilder() + .setMethodDescriptor(listMeasurementProtocolSecretsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract( + ListMeasurementProtocolSecretsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + createMeasurementProtocolSecretTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(createMeasurementProtocolSecretMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract( + CreateMeasurementProtocolSecretRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + deleteMeasurementProtocolSecretTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteMeasurementProtocolSecretMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract( + DeleteMeasurementProtocolSecretRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + updateMeasurementProtocolSecretTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(updateMeasurementProtocolSecretMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract( + UpdateMeasurementProtocolSecretRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "measurement_protocol_secret.name", + String.valueOf(request.getMeasurementProtocolSecret().getName())); + return params.build(); + } + }) + .build(); GrpcCallSettings searchChangeHistoryEventsTransportSettings = GrpcCallSettings @@ -1414,6 +1829,230 @@ public Map extract(SearchChangeHistoryEventsRequest request) { } }) .build(); + GrpcCallSettings + getGoogleSignalsSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getGoogleSignalsSettingsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetGoogleSignalsSettingsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + updateGoogleSignalsSettingsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateGoogleSignalsSettingsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract( + UpdateGoogleSignalsSettingsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "google_signals_settings.name", + String.valueOf(request.getGoogleSignalsSettings().getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + createConversionEventTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createConversionEventMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CreateConversionEventRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + getConversionEventTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getConversionEventMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetConversionEventRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings deleteConversionEventTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteConversionEventMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(DeleteConversionEventRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + listConversionEventsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listConversionEventsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListConversionEventsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + createCustomDimensionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createCustomDimensionMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CreateCustomDimensionRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + updateCustomDimensionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateCustomDimensionMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateCustomDimensionRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "custom_dimension.name", + String.valueOf(request.getCustomDimension().getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + listCustomDimensionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listCustomDimensionsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListCustomDimensionsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings archiveCustomDimensionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(archiveCustomDimensionMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ArchiveCustomDimensionRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + getCustomDimensionTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getCustomDimensionMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetCustomDimensionRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings createCustomMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createCustomMetricMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(CreateCustomMetricRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings updateCustomMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateCustomMetricMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(UpdateCustomMetricRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put( + "custom_metric.name", String.valueOf(request.getCustomMetric().getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings + listCustomMetricsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listCustomMetricsMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ListCustomMetricsRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("parent", String.valueOf(request.getParent())); + return params.build(); + } + }) + .build(); + GrpcCallSettings archiveCustomMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(archiveCustomMetricMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(ArchiveCustomMetricRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); + GrpcCallSettings getCustomMetricTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getCustomMetricMethodDescriptor) + .setParamsExtractor( + new RequestParamsExtractor() { + @Override + public Map extract(GetCustomMetricRequest request) { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + } + }) + .build(); this.getAccountCallable = callableFactory.createUnaryCallable( @@ -1653,6 +2292,36 @@ public Map extract(SearchChangeHistoryEventsRequest request) { getDataSharingSettingsTransportSettings, settings.getDataSharingSettingsSettings(), clientContext); + this.getMeasurementProtocolSecretCallable = + callableFactory.createUnaryCallable( + getMeasurementProtocolSecretTransportSettings, + settings.getMeasurementProtocolSecretSettings(), + clientContext); + this.listMeasurementProtocolSecretsCallable = + callableFactory.createUnaryCallable( + listMeasurementProtocolSecretsTransportSettings, + settings.listMeasurementProtocolSecretsSettings(), + clientContext); + this.listMeasurementProtocolSecretsPagedCallable = + callableFactory.createPagedCallable( + listMeasurementProtocolSecretsTransportSettings, + settings.listMeasurementProtocolSecretsSettings(), + clientContext); + this.createMeasurementProtocolSecretCallable = + callableFactory.createUnaryCallable( + createMeasurementProtocolSecretTransportSettings, + settings.createMeasurementProtocolSecretSettings(), + clientContext); + this.deleteMeasurementProtocolSecretCallable = + callableFactory.createUnaryCallable( + deleteMeasurementProtocolSecretTransportSettings, + settings.deleteMeasurementProtocolSecretSettings(), + clientContext); + this.updateMeasurementProtocolSecretCallable = + callableFactory.createUnaryCallable( + updateMeasurementProtocolSecretTransportSettings, + settings.updateMeasurementProtocolSecretSettings(), + clientContext); this.searchChangeHistoryEventsCallable = callableFactory.createUnaryCallable( searchChangeHistoryEventsTransportSettings, @@ -1663,6 +2332,99 @@ public Map extract(SearchChangeHistoryEventsRequest request) { searchChangeHistoryEventsTransportSettings, settings.searchChangeHistoryEventsSettings(), clientContext); + this.getGoogleSignalsSettingsCallable = + callableFactory.createUnaryCallable( + getGoogleSignalsSettingsTransportSettings, + settings.getGoogleSignalsSettingsSettings(), + clientContext); + this.updateGoogleSignalsSettingsCallable = + callableFactory.createUnaryCallable( + updateGoogleSignalsSettingsTransportSettings, + settings.updateGoogleSignalsSettingsSettings(), + clientContext); + this.createConversionEventCallable = + callableFactory.createUnaryCallable( + createConversionEventTransportSettings, + settings.createConversionEventSettings(), + clientContext); + this.getConversionEventCallable = + callableFactory.createUnaryCallable( + getConversionEventTransportSettings, + settings.getConversionEventSettings(), + clientContext); + this.deleteConversionEventCallable = + callableFactory.createUnaryCallable( + deleteConversionEventTransportSettings, + settings.deleteConversionEventSettings(), + clientContext); + this.listConversionEventsCallable = + callableFactory.createUnaryCallable( + listConversionEventsTransportSettings, + settings.listConversionEventsSettings(), + clientContext); + this.listConversionEventsPagedCallable = + callableFactory.createPagedCallable( + listConversionEventsTransportSettings, + settings.listConversionEventsSettings(), + clientContext); + this.createCustomDimensionCallable = + callableFactory.createUnaryCallable( + createCustomDimensionTransportSettings, + settings.createCustomDimensionSettings(), + clientContext); + this.updateCustomDimensionCallable = + callableFactory.createUnaryCallable( + updateCustomDimensionTransportSettings, + settings.updateCustomDimensionSettings(), + clientContext); + this.listCustomDimensionsCallable = + callableFactory.createUnaryCallable( + listCustomDimensionsTransportSettings, + settings.listCustomDimensionsSettings(), + clientContext); + this.listCustomDimensionsPagedCallable = + callableFactory.createPagedCallable( + listCustomDimensionsTransportSettings, + settings.listCustomDimensionsSettings(), + clientContext); + this.archiveCustomDimensionCallable = + callableFactory.createUnaryCallable( + archiveCustomDimensionTransportSettings, + settings.archiveCustomDimensionSettings(), + clientContext); + this.getCustomDimensionCallable = + callableFactory.createUnaryCallable( + getCustomDimensionTransportSettings, + settings.getCustomDimensionSettings(), + clientContext); + this.createCustomMetricCallable = + callableFactory.createUnaryCallable( + createCustomMetricTransportSettings, + settings.createCustomMetricSettings(), + clientContext); + this.updateCustomMetricCallable = + callableFactory.createUnaryCallable( + updateCustomMetricTransportSettings, + settings.updateCustomMetricSettings(), + clientContext); + this.listCustomMetricsCallable = + callableFactory.createUnaryCallable( + listCustomMetricsTransportSettings, + settings.listCustomMetricsSettings(), + clientContext); + this.listCustomMetricsPagedCallable = + callableFactory.createPagedCallable( + listCustomMetricsTransportSettings, + settings.listCustomMetricsSettings(), + clientContext); + this.archiveCustomMetricCallable = + callableFactory.createUnaryCallable( + archiveCustomMetricTransportSettings, + settings.archiveCustomMetricSettings(), + clientContext); + this.getCustomMetricCallable = + callableFactory.createUnaryCallable( + getCustomMetricTransportSettings, settings.getCustomMetricSettings(), clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -1978,6 +2740,44 @@ public UnaryCallable deleteGoogleAdsLinkCalla return getDataSharingSettingsCallable; } + @Override + public UnaryCallable + getMeasurementProtocolSecretCallable() { + return getMeasurementProtocolSecretCallable; + } + + @Override + public UnaryCallable< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsResponse> + listMeasurementProtocolSecretsCallable() { + return listMeasurementProtocolSecretsCallable; + } + + @Override + public UnaryCallable< + ListMeasurementProtocolSecretsRequest, ListMeasurementProtocolSecretsPagedResponse> + listMeasurementProtocolSecretsPagedCallable() { + return listMeasurementProtocolSecretsPagedCallable; + } + + @Override + public UnaryCallable + createMeasurementProtocolSecretCallable() { + return createMeasurementProtocolSecretCallable; + } + + @Override + public UnaryCallable + deleteMeasurementProtocolSecretCallable() { + return deleteMeasurementProtocolSecretCallable; + } + + @Override + public UnaryCallable + updateMeasurementProtocolSecretCallable() { + return updateMeasurementProtocolSecretCallable; + } + @Override public UnaryCallable searchChangeHistoryEventsCallable() { @@ -1990,6 +2790,112 @@ public UnaryCallable deleteGoogleAdsLinkCalla return searchChangeHistoryEventsPagedCallable; } + @Override + public UnaryCallable + getGoogleSignalsSettingsCallable() { + return getGoogleSignalsSettingsCallable; + } + + @Override + public UnaryCallable + updateGoogleSignalsSettingsCallable() { + return updateGoogleSignalsSettingsCallable; + } + + @Override + public UnaryCallable + createConversionEventCallable() { + return createConversionEventCallable; + } + + @Override + public UnaryCallable getConversionEventCallable() { + return getConversionEventCallable; + } + + @Override + public UnaryCallable deleteConversionEventCallable() { + return deleteConversionEventCallable; + } + + @Override + public UnaryCallable + listConversionEventsCallable() { + return listConversionEventsCallable; + } + + @Override + public UnaryCallable + listConversionEventsPagedCallable() { + return listConversionEventsPagedCallable; + } + + @Override + public UnaryCallable + createCustomDimensionCallable() { + return createCustomDimensionCallable; + } + + @Override + public UnaryCallable + updateCustomDimensionCallable() { + return updateCustomDimensionCallable; + } + + @Override + public UnaryCallable + listCustomDimensionsCallable() { + return listCustomDimensionsCallable; + } + + @Override + public UnaryCallable + listCustomDimensionsPagedCallable() { + return listCustomDimensionsPagedCallable; + } + + @Override + public UnaryCallable archiveCustomDimensionCallable() { + return archiveCustomDimensionCallable; + } + + @Override + public UnaryCallable getCustomDimensionCallable() { + return getCustomDimensionCallable; + } + + @Override + public UnaryCallable createCustomMetricCallable() { + return createCustomMetricCallable; + } + + @Override + public UnaryCallable updateCustomMetricCallable() { + return updateCustomMetricCallable; + } + + @Override + public UnaryCallable + listCustomMetricsCallable() { + return listCustomMetricsCallable; + } + + @Override + public UnaryCallable + listCustomMetricsPagedCallable() { + return listCustomMetricsPagedCallable; + } + + @Override + public UnaryCallable archiveCustomMetricCallable() { + return archiveCustomMetricCallable; + } + + @Override + public UnaryCallable getCustomMetricCallable() { + return getCustomMetricCallable; + } + @Override public final void close() { shutdown(); 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 0fb73c80..83b3cc3e 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 @@ -20,9 +20,13 @@ import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountSummariesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAccountsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListAndroidAppDataStreamsPagedResponse; +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.ListFirebaseLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListGoogleAdsLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListIosAppDataStreamsPagedResponse; +import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListMeasurementProtocolSecretsPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListPropertiesPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListUserLinksPagedResponse; import static com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient.ListWebDataStreamsPagedResponse; @@ -3385,51 +3389,1533 @@ public void getDataSharingSettingsExceptionTest2() throws Exception { } } + @Test + public void getMeasurementProtocolSecretTest() throws Exception { + MeasurementProtocolSecret expectedResponse = + MeasurementProtocolSecret.newBuilder() + .setName( + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + .toString()) + .setDisplayName("displayName1714148973") + .setSecretValue("secretValue-2044460895") + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + MeasurementProtocolSecretName name = + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + + MeasurementProtocolSecret actualResponse = client.getMeasurementProtocolSecret(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMeasurementProtocolSecretRequest actualRequest = + ((GetMeasurementProtocolSecretRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMeasurementProtocolSecretExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + MeasurementProtocolSecretName name = + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + client.getMeasurementProtocolSecret(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getMeasurementProtocolSecretTest2() throws Exception { + MeasurementProtocolSecret expectedResponse = + MeasurementProtocolSecret.newBuilder() + .setName( + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + .toString()) + .setDisplayName("displayName1714148973") + .setSecretValue("secretValue-2044460895") + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + MeasurementProtocolSecret actualResponse = client.getMeasurementProtocolSecret(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetMeasurementProtocolSecretRequest actualRequest = + ((GetMeasurementProtocolSecretRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getMeasurementProtocolSecretExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getMeasurementProtocolSecret(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMeasurementProtocolSecretsTest() throws Exception { + MeasurementProtocolSecret responsesElement = MeasurementProtocolSecret.newBuilder().build(); + ListMeasurementProtocolSecretsResponse expectedResponse = + ListMeasurementProtocolSecretsResponse.newBuilder() + .setNextPageToken("") + .addAllMeasurementProtocolSecrets(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + WebDataStreamName parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); + + ListMeasurementProtocolSecretsPagedResponse pagedListResponse = + client.listMeasurementProtocolSecrets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getMeasurementProtocolSecretsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMeasurementProtocolSecretsRequest actualRequest = + ((ListMeasurementProtocolSecretsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMeasurementProtocolSecretsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + WebDataStreamName parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); + client.listMeasurementProtocolSecrets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listMeasurementProtocolSecretsTest2() throws Exception { + MeasurementProtocolSecret responsesElement = MeasurementProtocolSecret.newBuilder().build(); + ListMeasurementProtocolSecretsResponse expectedResponse = + ListMeasurementProtocolSecretsResponse.newBuilder() + .setNextPageToken("") + .addAllMeasurementProtocolSecrets(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListMeasurementProtocolSecretsPagedResponse pagedListResponse = + client.listMeasurementProtocolSecrets(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals( + expectedResponse.getMeasurementProtocolSecretsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListMeasurementProtocolSecretsRequest actualRequest = + ((ListMeasurementProtocolSecretsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listMeasurementProtocolSecretsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listMeasurementProtocolSecrets(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMeasurementProtocolSecretTest() throws Exception { + MeasurementProtocolSecret expectedResponse = + MeasurementProtocolSecret.newBuilder() + .setName( + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + .toString()) + .setDisplayName("displayName1714148973") + .setSecretValue("secretValue-2044460895") + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + WebDataStreamName parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); + MeasurementProtocolSecret measurementProtocolSecret = + MeasurementProtocolSecret.newBuilder().build(); + + MeasurementProtocolSecret actualResponse = + client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMeasurementProtocolSecretRequest actualRequest = + ((CreateMeasurementProtocolSecretRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(measurementProtocolSecret, actualRequest.getMeasurementProtocolSecret()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMeasurementProtocolSecretExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + WebDataStreamName parent = WebDataStreamName.of("[PROPERTY]", "[WEB_DATA_STREAM]"); + MeasurementProtocolSecret measurementProtocolSecret = + MeasurementProtocolSecret.newBuilder().build(); + client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createMeasurementProtocolSecretTest2() throws Exception { + MeasurementProtocolSecret expectedResponse = + MeasurementProtocolSecret.newBuilder() + .setName( + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + .toString()) + .setDisplayName("displayName1714148973") + .setSecretValue("secretValue-2044460895") + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + MeasurementProtocolSecret measurementProtocolSecret = + MeasurementProtocolSecret.newBuilder().build(); + + MeasurementProtocolSecret actualResponse = + client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateMeasurementProtocolSecretRequest actualRequest = + ((CreateMeasurementProtocolSecretRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(measurementProtocolSecret, actualRequest.getMeasurementProtocolSecret()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createMeasurementProtocolSecretExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + MeasurementProtocolSecret measurementProtocolSecret = + MeasurementProtocolSecret.newBuilder().build(); + client.createMeasurementProtocolSecret(parent, measurementProtocolSecret); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteMeasurementProtocolSecretTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + MeasurementProtocolSecretName name = + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + + client.deleteMeasurementProtocolSecret(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMeasurementProtocolSecretRequest actualRequest = + ((DeleteMeasurementProtocolSecretRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMeasurementProtocolSecretExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + MeasurementProtocolSecretName name = + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]"); + client.deleteMeasurementProtocolSecret(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteMeasurementProtocolSecretTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteMeasurementProtocolSecret(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteMeasurementProtocolSecretRequest actualRequest = + ((DeleteMeasurementProtocolSecretRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteMeasurementProtocolSecretExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.deleteMeasurementProtocolSecret(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateMeasurementProtocolSecretTest() throws Exception { + MeasurementProtocolSecret expectedResponse = + MeasurementProtocolSecret.newBuilder() + .setName( + MeasurementProtocolSecretName.of( + "[PROPERTY]", "[WEB_DATA_STREAM]", "[MEASUREMENT_PROTOCOL_SECRET]") + .toString()) + .setDisplayName("displayName1714148973") + .setSecretValue("secretValue-2044460895") + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + MeasurementProtocolSecret measurementProtocolSecret = + MeasurementProtocolSecret.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + MeasurementProtocolSecret actualResponse = + client.updateMeasurementProtocolSecret(measurementProtocolSecret, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateMeasurementProtocolSecretRequest actualRequest = + ((UpdateMeasurementProtocolSecretRequest) actualRequests.get(0)); + + Assert.assertEquals(measurementProtocolSecret, actualRequest.getMeasurementProtocolSecret()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateMeasurementProtocolSecretExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + MeasurementProtocolSecret measurementProtocolSecret = + MeasurementProtocolSecret.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateMeasurementProtocolSecret(measurementProtocolSecret, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void searchChangeHistoryEventsTest() throws Exception { ChangeHistoryEvent responsesElement = ChangeHistoryEvent.newBuilder().build(); SearchChangeHistoryEventsResponse expectedResponse = SearchChangeHistoryEventsResponse.newBuilder() .setNextPageToken("") - .addAllChangeHistoryEvents(Arrays.asList(responsesElement)) + .addAllChangeHistoryEvents(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + SearchChangeHistoryEventsRequest request = + SearchChangeHistoryEventsRequest.newBuilder() + .setAccount(AccountName.of("[ACCOUNT]").toString()) + .setProperty(PropertyName.of("[PROPERTY]").toString()) + .addAllResourceType(new ArrayList()) + .addAllAction(new ArrayList()) + .addAllActorEmail(new ArrayList()) + .setEarliestChangeTime(Timestamp.newBuilder().build()) + .setLatestChangeTime(Timestamp.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + SearchChangeHistoryEventsPagedResponse pagedListResponse = + client.searchChangeHistoryEvents(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getChangeHistoryEventsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchChangeHistoryEventsRequest actualRequest = + ((SearchChangeHistoryEventsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getAccount(), actualRequest.getAccount()); + Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); + Assert.assertEquals(request.getResourceTypeList(), actualRequest.getResourceTypeList()); + Assert.assertEquals(request.getActionList(), actualRequest.getActionList()); + Assert.assertEquals(request.getActorEmailList(), actualRequest.getActorEmailList()); + Assert.assertEquals(request.getEarliestChangeTime(), actualRequest.getEarliestChangeTime()); + Assert.assertEquals(request.getLatestChangeTime(), actualRequest.getLatestChangeTime()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchChangeHistoryEventsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + SearchChangeHistoryEventsRequest request = + SearchChangeHistoryEventsRequest.newBuilder() + .setAccount(AccountName.of("[ACCOUNT]").toString()) + .setProperty(PropertyName.of("[PROPERTY]").toString()) + .addAllResourceType(new ArrayList()) + .addAllAction(new ArrayList()) + .addAllActorEmail(new ArrayList()) + .setEarliestChangeTime(Timestamp.newBuilder().build()) + .setLatestChangeTime(Timestamp.newBuilder().build()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.searchChangeHistoryEvents(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGoogleSignalsSettingsTest() throws Exception { + GoogleSignalsSettings expectedResponse = + GoogleSignalsSettings.newBuilder() + .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) + .setState(GoogleSignalsState.forNumber(0)) + .setConsent(GoogleSignalsConsent.forNumber(0)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + GoogleSignalsSettingsName name = GoogleSignalsSettingsName.of("[PROPERTY]"); + + GoogleSignalsSettings actualResponse = client.getGoogleSignalsSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGoogleSignalsSettingsRequest actualRequest = + ((GetGoogleSignalsSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGoogleSignalsSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + GoogleSignalsSettingsName name = GoogleSignalsSettingsName.of("[PROPERTY]"); + client.getGoogleSignalsSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getGoogleSignalsSettingsTest2() throws Exception { + GoogleSignalsSettings expectedResponse = + GoogleSignalsSettings.newBuilder() + .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) + .setState(GoogleSignalsState.forNumber(0)) + .setConsent(GoogleSignalsConsent.forNumber(0)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + GoogleSignalsSettings actualResponse = client.getGoogleSignalsSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetGoogleSignalsSettingsRequest actualRequest = + ((GetGoogleSignalsSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getGoogleSignalsSettingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getGoogleSignalsSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateGoogleSignalsSettingsTest() throws Exception { + GoogleSignalsSettings expectedResponse = + GoogleSignalsSettings.newBuilder() + .setName(GoogleSignalsSettingsName.of("[PROPERTY]").toString()) + .setState(GoogleSignalsState.forNumber(0)) + .setConsent(GoogleSignalsConsent.forNumber(0)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + GoogleSignalsSettings googleSignalsSettings = GoogleSignalsSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + GoogleSignalsSettings actualResponse = + client.updateGoogleSignalsSettings(googleSignalsSettings, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateGoogleSignalsSettingsRequest actualRequest = + ((UpdateGoogleSignalsSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(googleSignalsSettings, actualRequest.getGoogleSignalsSettings()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateGoogleSignalsSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + GoogleSignalsSettings googleSignalsSettings = GoogleSignalsSettings.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateGoogleSignalsSettings(googleSignalsSettings, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createConversionEventTest() throws Exception { + ConversionEvent expectedResponse = + ConversionEvent.newBuilder() + .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setIsDeletable(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); + + ConversionEvent actualResponse = client.createConversionEvent(parent, conversionEvent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateConversionEventRequest actualRequest = + ((CreateConversionEventRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(conversionEvent, actualRequest.getConversionEvent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createConversionEventExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); + client.createConversionEvent(parent, conversionEvent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createConversionEventTest2() throws Exception { + ConversionEvent expectedResponse = + ConversionEvent.newBuilder() + .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setIsDeletable(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); + + ConversionEvent actualResponse = client.createConversionEvent(parent, conversionEvent); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateConversionEventRequest actualRequest = + ((CreateConversionEventRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(conversionEvent, actualRequest.getConversionEvent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createConversionEventExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + ConversionEvent conversionEvent = ConversionEvent.newBuilder().build(); + client.createConversionEvent(parent, conversionEvent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConversionEventTest() throws Exception { + ConversionEvent expectedResponse = + ConversionEvent.newBuilder() + .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setIsDeletable(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); + + ConversionEvent actualResponse = client.getConversionEvent(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetConversionEventRequest actualRequest = ((GetConversionEventRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getConversionEventExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); + client.getConversionEvent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getConversionEventTest2() throws Exception { + ConversionEvent expectedResponse = + ConversionEvent.newBuilder() + .setName(ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]").toString()) + .setEventName("eventName31228997") + .setCreateTime(Timestamp.newBuilder().build()) + .setIsDeletable(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + ConversionEvent actualResponse = client.getConversionEvent(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetConversionEventRequest actualRequest = ((GetConversionEventRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getConversionEventExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getConversionEvent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteConversionEventTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); + + client.deleteConversionEvent(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteConversionEventRequest actualRequest = + ((DeleteConversionEventRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteConversionEventExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + ConversionEventName name = ConversionEventName.of("[PROPERTY]", "[CONVERSION_EVENT]"); + client.deleteConversionEvent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void deleteConversionEventTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.deleteConversionEvent(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteConversionEventRequest actualRequest = + ((DeleteConversionEventRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteConversionEventExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.deleteConversionEvent(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConversionEventsTest() throws Exception { + ConversionEvent responsesElement = ConversionEvent.newBuilder().build(); + ListConversionEventsResponse expectedResponse = + ListConversionEventsResponse.newBuilder() + .setNextPageToken("") + .addAllConversionEvents(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + PropertyName parent = PropertyName.of("[PROPERTY]"); + + ListConversionEventsPagedResponse pagedListResponse = client.listConversionEvents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConversionEventsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListConversionEventsRequest actualRequest = + ((ListConversionEventsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listConversionEventsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listConversionEvents(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listConversionEventsTest2() throws Exception { + ConversionEvent responsesElement = ConversionEvent.newBuilder().build(); + ListConversionEventsResponse expectedResponse = + ListConversionEventsResponse.newBuilder() + .setNextPageToken("") + .addAllConversionEvents(Arrays.asList(responsesElement)) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListConversionEventsPagedResponse pagedListResponse = client.listConversionEvents(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getConversionEventsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListConversionEventsRequest actualRequest = + ((ListConversionEventsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listConversionEventsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listConversionEvents(parent); + 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. + } + } + + @Test + public void createCustomMetricTest2() throws Exception { + CustomMetric expectedResponse = + CustomMetric.newBuilder() + .setName(CustomMetricName.of("[PROPERTY]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + 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, actualRequest.getParent()); + Assert.assertEquals(customMetric, actualRequest.getCustomMetric()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCustomMetricExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String parent = "parent-995424086"; + CustomMetric customMetric = CustomMetric.newBuilder().build(); + client.createCustomMetric(parent, customMetric); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateCustomMetricTest() throws Exception { + CustomMetric expectedResponse = + CustomMetric.newBuilder() + .setName(CustomMetricName.of("[PROPERTY]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + CustomMetric customMetric = CustomMetric.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + CustomMetric actualResponse = client.updateCustomMetric(customMetric, updateMask); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateCustomMetricRequest actualRequest = ((UpdateCustomMetricRequest) actualRequests.get(0)); + + Assert.assertEquals(customMetric, actualRequest.getCustomMetric()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateCustomMetricExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + CustomMetric customMetric = CustomMetric.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateCustomMetric(customMetric, updateMask); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCustomMetricsTest() throws Exception { + CustomMetric responsesElement = CustomMetric.newBuilder().build(); + ListCustomMetricsResponse expectedResponse = + ListCustomMetricsResponse.newBuilder() + .setNextPageToken("") + .addAllCustomMetrics(Arrays.asList(responsesElement)) .build(); mockAnalyticsAdminService.addResponse(expectedResponse); - SearchChangeHistoryEventsRequest request = - SearchChangeHistoryEventsRequest.newBuilder() - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .addAllResourceType(new ArrayList()) - .addAllAction(new ArrayList()) - .addAllActorEmail(new ArrayList()) - .setEarliestChangeTime(Timestamp.newBuilder().build()) - .setLatestChangeTime(Timestamp.newBuilder().build()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") + PropertyName parent = PropertyName.of("[PROPERTY]"); + + ListCustomMetricsPagedResponse pagedListResponse = client.listCustomMetrics(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCustomMetricsList().get(0), resources.get(0)); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCustomMetricsRequest actualRequest = ((ListCustomMetricsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCustomMetricsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + PropertyName parent = PropertyName.of("[PROPERTY]"); + client.listCustomMetrics(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCustomMetricsTest2() throws Exception { + CustomMetric responsesElement = CustomMetric.newBuilder().build(); + ListCustomMetricsResponse expectedResponse = + ListCustomMetricsResponse.newBuilder() + .setNextPageToken("") + .addAllCustomMetrics(Arrays.asList(responsesElement)) .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); - SearchChangeHistoryEventsPagedResponse pagedListResponse = - client.searchChangeHistoryEvents(request); + String parent = "parent-995424086"; - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + ListCustomMetricsPagedResponse pagedListResponse = client.listCustomMetrics(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getChangeHistoryEventsList().get(0), resources.get(0)); + Assert.assertEquals(expectedResponse.getCustomMetricsList().get(0), resources.get(0)); List actualRequests = mockAnalyticsAdminService.getRequests(); Assert.assertEquals(1, actualRequests.size()); - SearchChangeHistoryEventsRequest actualRequest = - ((SearchChangeHistoryEventsRequest) actualRequests.get(0)); + ListCustomMetricsRequest actualRequest = ((ListCustomMetricsRequest) actualRequests.get(0)); - Assert.assertEquals(request.getAccount(), actualRequest.getAccount()); - Assert.assertEquals(request.getProperty(), actualRequest.getProperty()); - Assert.assertEquals(request.getResourceTypeList(), actualRequest.getResourceTypeList()); - Assert.assertEquals(request.getActionList(), actualRequest.getActionList()); - Assert.assertEquals(request.getActorEmailList(), actualRequest.getActorEmailList()); - Assert.assertEquals(request.getEarliestChangeTime(), actualRequest.getEarliestChangeTime()); - Assert.assertEquals(request.getLatestChangeTime(), actualRequest.getLatestChangeTime()); - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertEquals(parent, actualRequest.getParent()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -3437,24 +4923,163 @@ public void searchChangeHistoryEventsTest() throws Exception { } @Test - public void searchChangeHistoryEventsExceptionTest() throws Exception { + public void listCustomMetricsExceptionTest2() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockAnalyticsAdminService.addException(exception); try { - SearchChangeHistoryEventsRequest request = - SearchChangeHistoryEventsRequest.newBuilder() - .setAccount(AccountName.of("[ACCOUNT]").toString()) - .setProperty(PropertyName.of("[PROPERTY]").toString()) - .addAllResourceType(new ArrayList()) - .addAllAction(new ArrayList()) - .addAllActorEmail(new ArrayList()) - .setEarliestChangeTime(Timestamp.newBuilder().build()) - .setLatestChangeTime(Timestamp.newBuilder().build()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.searchChangeHistoryEvents(request); + String parent = "parent-995424086"; + client.listCustomMetrics(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void archiveCustomMetricTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + CustomMetricName name = CustomMetricName.of("[PROPERTY]"); + + client.archiveCustomMetric(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ArchiveCustomMetricRequest actualRequest = ((ArchiveCustomMetricRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void archiveCustomMetricExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + CustomMetricName name = CustomMetricName.of("[PROPERTY]"); + client.archiveCustomMetric(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void archiveCustomMetricTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + client.archiveCustomMetric(name); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ArchiveCustomMetricRequest actualRequest = ((ArchiveCustomMetricRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void archiveCustomMetricExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.archiveCustomMetric(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCustomMetricTest() throws Exception { + CustomMetric expectedResponse = + CustomMetric.newBuilder() + .setName(CustomMetricName.of("[PROPERTY]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + CustomMetricName name = CustomMetricName.of("[PROPERTY]"); + + CustomMetric actualResponse = client.getCustomMetric(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCustomMetricRequest actualRequest = ((GetCustomMetricRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCustomMetricExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + CustomMetricName name = CustomMetricName.of("[PROPERTY]"); + client.getCustomMetric(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getCustomMetricTest2() throws Exception { + CustomMetric expectedResponse = + CustomMetric.newBuilder() + .setName(CustomMetricName.of("[PROPERTY]").toString()) + .setParameterName("parameterName-379607596") + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + CustomMetric actualResponse = client.getCustomMetric(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetCustomMetricRequest actualRequest = ((GetCustomMetricRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getCustomMetricExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getCustomMetric(name); 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 8784c7e8..4e8e6f25 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 @@ -1035,6 +1035,115 @@ public void getDataSharingSettings( } } + @Override + public void getMeasurementProtocolSecret( + GetMeasurementProtocolSecretRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MeasurementProtocolSecret) { + requests.add(request); + responseObserver.onNext(((MeasurementProtocolSecret) 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 GetMeasurementProtocolSecret, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + MeasurementProtocolSecret.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listMeasurementProtocolSecrets( + ListMeasurementProtocolSecretsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListMeasurementProtocolSecretsResponse) { + requests.add(request); + responseObserver.onNext(((ListMeasurementProtocolSecretsResponse) 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 ListMeasurementProtocolSecrets, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListMeasurementProtocolSecretsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createMeasurementProtocolSecret( + CreateMeasurementProtocolSecretRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MeasurementProtocolSecret) { + requests.add(request); + responseObserver.onNext(((MeasurementProtocolSecret) 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 CreateMeasurementProtocolSecret, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + MeasurementProtocolSecret.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteMeasurementProtocolSecret( + DeleteMeasurementProtocolSecretRequest 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 DeleteMeasurementProtocolSecret, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateMeasurementProtocolSecret( + UpdateMeasurementProtocolSecretRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof MeasurementProtocolSecret) { + requests.add(request); + responseObserver.onNext(((MeasurementProtocolSecret) 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 UpdateMeasurementProtocolSecret, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + MeasurementProtocolSecret.class.getName(), + Exception.class.getName()))); + } + } + @Override public void searchChangeHistoryEvents( SearchChangeHistoryEventsRequest request, @@ -1056,4 +1165,345 @@ public void searchChangeHistoryEvents( Exception.class.getName()))); } } + + @Override + public void getGoogleSignalsSettings( + GetGoogleSignalsSettingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GoogleSignalsSettings) { + requests.add(request); + responseObserver.onNext(((GoogleSignalsSettings) 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 GetGoogleSignalsSettings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + GoogleSignalsSettings.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateGoogleSignalsSettings( + UpdateGoogleSignalsSettingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GoogleSignalsSettings) { + requests.add(request); + responseObserver.onNext(((GoogleSignalsSettings) 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 UpdateGoogleSignalsSettings, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + GoogleSignalsSettings.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createConversionEvent( + CreateConversionEventRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ConversionEvent) { + requests.add(request); + responseObserver.onNext(((ConversionEvent) 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 CreateConversionEvent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ConversionEvent.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getConversionEvent( + GetConversionEventRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ConversionEvent) { + requests.add(request); + responseObserver.onNext(((ConversionEvent) 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 GetConversionEvent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ConversionEvent.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteConversionEvent( + DeleteConversionEventRequest 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 DeleteConversionEvent, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listConversionEvents( + ListConversionEventsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListConversionEventsResponse) { + requests.add(request); + responseObserver.onNext(((ListConversionEventsResponse) 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 ListConversionEvents, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListConversionEventsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createCustomDimension( + CreateCustomDimensionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CustomDimension) { + requests.add(request); + responseObserver.onNext(((CustomDimension) 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 CreateCustomDimension, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CustomDimension.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateCustomDimension( + UpdateCustomDimensionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CustomDimension) { + requests.add(request); + responseObserver.onNext(((CustomDimension) 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 UpdateCustomDimension, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CustomDimension.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listCustomDimensions( + ListCustomDimensionsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListCustomDimensionsResponse) { + requests.add(request); + responseObserver.onNext(((ListCustomDimensionsResponse) 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 ListCustomDimensions, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListCustomDimensionsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void archiveCustomDimension( + ArchiveCustomDimensionRequest 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 ArchiveCustomDimension, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getCustomDimension( + GetCustomDimensionRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CustomDimension) { + requests.add(request); + responseObserver.onNext(((CustomDimension) 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 GetCustomDimension, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CustomDimension.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void createCustomMetric( + CreateCustomMetricRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CustomMetric) { + requests.add(request); + responseObserver.onNext(((CustomMetric) 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 CreateCustomMetric, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CustomMetric.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateCustomMetric( + UpdateCustomMetricRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CustomMetric) { + requests.add(request); + responseObserver.onNext(((CustomMetric) 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 UpdateCustomMetric, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CustomMetric.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listCustomMetrics( + ListCustomMetricsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListCustomMetricsResponse) { + requests.add(request); + responseObserver.onNext(((ListCustomMetricsResponse) 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 ListCustomMetrics, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListCustomMetricsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void archiveCustomMetric( + ArchiveCustomMetricRequest 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 ArchiveCustomMetric, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Empty.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getCustomMetric( + GetCustomMetricRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof CustomMetric) { + requests.add(request); + responseObserver.onNext(((CustomMetric) 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 GetCustomMetric, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + CustomMetric.class.getName(), + Exception.class.getName()))); + } + } } 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 e56b578d..23a55f59 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 @@ -2281,6 +2281,271 @@ private AnalyticsAdminServiceGrpc() {} return getGetDataSharingSettingsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getGetMeasurementProtocolSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetMeasurementProtocolSecret", + requestType = com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.class, + responseType = com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getGetMeasurementProtocolSecretMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getGetMeasurementProtocolSecretMethod; + if ((getGetMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getGetMeasurementProtocolSecretMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getGetMeasurementProtocolSecretMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetMeasurementProtocolSecretMethod = + getGetMeasurementProtocolSecretMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetMeasurementProtocolSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetMeasurementProtocolSecret")) + .build(); + } + } + } + return getGetMeasurementProtocolSecretMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse> + getListMeasurementProtocolSecretsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListMeasurementProtocolSecrets", + requestType = com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.class, + responseType = + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse> + getListMeasurementProtocolSecretsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse> + getListMeasurementProtocolSecretsMethod; + if ((getListMeasurementProtocolSecretsMethod = + AnalyticsAdminServiceGrpc.getListMeasurementProtocolSecretsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListMeasurementProtocolSecretsMethod = + AnalyticsAdminServiceGrpc.getListMeasurementProtocolSecretsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListMeasurementProtocolSecretsMethod = + getListMeasurementProtocolSecretsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListMeasurementProtocolSecrets")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .ListMeasurementProtocolSecretsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .ListMeasurementProtocolSecretsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "ListMeasurementProtocolSecrets")) + .build(); + } + } + } + return getListMeasurementProtocolSecretsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getCreateMeasurementProtocolSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateMeasurementProtocolSecret", + requestType = com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.class, + responseType = com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getCreateMeasurementProtocolSecretMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getCreateMeasurementProtocolSecretMethod; + if ((getCreateMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getCreateMeasurementProtocolSecretMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getCreateMeasurementProtocolSecretMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateMeasurementProtocolSecretMethod = + getCreateMeasurementProtocolSecretMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateMeasurementProtocolSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .CreateMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateMeasurementProtocolSecret")) + .build(); + } + } + } + return getCreateMeasurementProtocolSecretMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest, + com.google.protobuf.Empty> + getDeleteMeasurementProtocolSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteMeasurementProtocolSecret", + requestType = com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest, + com.google.protobuf.Empty> + getDeleteMeasurementProtocolSecretMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest, + com.google.protobuf.Empty> + getDeleteMeasurementProtocolSecretMethod; + if ((getDeleteMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getDeleteMeasurementProtocolSecretMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getDeleteMeasurementProtocolSecretMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteMeasurementProtocolSecretMethod = + getDeleteMeasurementProtocolSecretMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteMeasurementProtocolSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .DeleteMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "DeleteMeasurementProtocolSecret")) + .build(); + } + } + } + return getDeleteMeasurementProtocolSecretMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getUpdateMeasurementProtocolSecretMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateMeasurementProtocolSecret", + requestType = com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.class, + responseType = com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getUpdateMeasurementProtocolSecretMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getUpdateMeasurementProtocolSecretMethod; + if ((getUpdateMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getUpdateMeasurementProtocolSecretMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateMeasurementProtocolSecretMethod = + AnalyticsAdminServiceGrpc.getUpdateMeasurementProtocolSecretMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateMeasurementProtocolSecretMethod = + getUpdateMeasurementProtocolSecretMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateMeasurementProtocolSecret")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha + .UpdateMeasurementProtocolSecretRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateMeasurementProtocolSecret")) + .build(); + } + } + } + return getUpdateMeasurementProtocolSecretMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> @@ -2334,999 +2599,2117 @@ private AnalyticsAdminServiceGrpc() {} return getSearchChangeHistoryEventsMethod; } - /** 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 = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnalyticsAdminServiceStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceStub(channel, callOptions); - } - }; - return AnalyticsAdminServiceStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static AnalyticsAdminServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnalyticsAdminServiceBlockingStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceBlockingStub(channel, callOptions); - } - }; - return AnalyticsAdminServiceBlockingStub.newStub(factory, channel); - } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + getGetGoogleSignalsSettingsMethod; - /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ - public static AnalyticsAdminServiceFutureStub newFutureStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public AnalyticsAdminServiceFutureStub newStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceFutureStub(channel, callOptions); - } - }; - return AnalyticsAdminServiceFutureStub.newStub(factory, channel); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetGoogleSignalsSettings", + requestType = com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.GoogleSignalsSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + getGetGoogleSignalsSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + getGetGoogleSignalsSettingsMethod; + if ((getGetGoogleSignalsSettingsMethod = + AnalyticsAdminServiceGrpc.getGetGoogleSignalsSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetGoogleSignalsSettingsMethod = + AnalyticsAdminServiceGrpc.getGetGoogleSignalsSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetGoogleSignalsSettingsMethod = + getGetGoogleSignalsSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetGoogleSignalsSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetGoogleSignalsSettings")) + .build(); + } + } + } + return getGetGoogleSignalsSettingsMethod; } - /** - * - * - *
-   * Service Interface for the Analytics Admin API (GA4).
-   * 
- */ - public abstract static class AnalyticsAdminServiceImplBase implements io.grpc.BindableService { + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + getUpdateGoogleSignalsSettingsMethod; - /** - * - * - *
-     * Lookup for a single Account.
-     * 
- */ - public void getAccount( - com.google.analytics.admin.v1alpha.GetAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccountMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateGoogleSignalsSettings", + requestType = com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.GoogleSignalsSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + getUpdateGoogleSignalsSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + getUpdateGoogleSignalsSettingsMethod; + if ((getUpdateGoogleSignalsSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateGoogleSignalsSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getUpdateGoogleSignalsSettingsMethod = + AnalyticsAdminServiceGrpc.getUpdateGoogleSignalsSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getUpdateGoogleSignalsSettingsMethod = + getUpdateGoogleSignalsSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateGoogleSignalsSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "UpdateGoogleSignalsSettings")) + .build(); + } + } } + return getUpdateGoogleSignalsSettingsMethod; + } - /** - * - * - *
-     * Returns all accounts accessible by the caller.
-     * Note that these accounts might not currently have GA4 properties.
-     * Soft-deleted (ie: "trashed") accounts are excluded by default.
-     * Returns an empty list if no relevant accounts are found.
-     * 
- */ - public void listAccounts( - com.google.analytics.admin.v1alpha.ListAccountsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAccountsMethod(), responseObserver); - } - - /** - * - * - *
-     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted accounts.
-     * However, they can be restored using the Trash Can UI.
-     * If the accounts are not restored before the expiration time, the account
-     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
-     * UserLinks) will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found.
-     * 
- */ - public void deleteAccount( - com.google.analytics.admin.v1alpha.DeleteAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteAccountMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent> + getCreateConversionEventMethod; - /** - * - * - *
-     * Updates an account.
-     * 
- */ - public void updateAccount( - com.google.analytics.admin.v1alpha.UpdateAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateAccountMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateConversionEvent", + requestType = com.google.analytics.admin.v1alpha.CreateConversionEventRequest.class, + responseType = com.google.analytics.admin.v1alpha.ConversionEvent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent> + getCreateConversionEventMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent> + getCreateConversionEventMethod; + if ((getCreateConversionEventMethod = AnalyticsAdminServiceGrpc.getCreateConversionEventMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getCreateConversionEventMethod = + AnalyticsAdminServiceGrpc.getCreateConversionEventMethod) + == null) { + AnalyticsAdminServiceGrpc.getCreateConversionEventMethod = + getCreateConversionEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateConversionEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ConversionEvent + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "CreateConversionEvent")) + .build(); + } + } } + return getCreateConversionEventMethod; + } - /** - * - * - *
-     * Requests a ticket for creating an account.
-     * 
- */ - public void provisionAccountTicket( - com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request, - io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse> - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getProvisionAccountTicketMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent> + getGetConversionEventMethod; - /** - * - * - *
-     * Returns summaries of all accounts accessible by the caller.
-     * 
- */ - public void listAccountSummaries( - com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAccountSummariesMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetConversionEvent", + requestType = com.google.analytics.admin.v1alpha.GetConversionEventRequest.class, + responseType = com.google.analytics.admin.v1alpha.ConversionEvent.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent> + getGetConversionEventMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent> + getGetConversionEventMethod; + if ((getGetConversionEventMethod = AnalyticsAdminServiceGrpc.getGetConversionEventMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetConversionEventMethod = AnalyticsAdminServiceGrpc.getGetConversionEventMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetConversionEventMethod = + getGetConversionEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConversionEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetConversionEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ConversionEvent + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("GetConversionEvent")) + .build(); + } + } } + return getGetConversionEventMethod; + } - /** - * - * - *
-     * Lookup for a single "GA4" Property.
-     * 
- */ - public void getProperty( - com.google.analytics.admin.v1alpha.GetPropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetPropertyMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest, + com.google.protobuf.Empty> + getDeleteConversionEventMethod; - /** - * - * - *
-     * Returns child Properties under the specified parent Account.
-     * Only "GA4" properties will be returned.
-     * Properties will be excluded if the caller does not have access.
-     * Soft-deleted (ie: "trashed") properties are excluded by default.
-     * Returns an empty list if no relevant properties are found.
-     * 
- */ - public void listProperties( - com.google.analytics.admin.v1alpha.ListPropertiesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListPropertiesMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteConversionEvent", + requestType = com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest, + com.google.protobuf.Empty> + getDeleteConversionEventMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest, + com.google.protobuf.Empty> + getDeleteConversionEventMethod; + if ((getDeleteConversionEventMethod = AnalyticsAdminServiceGrpc.getDeleteConversionEventMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getDeleteConversionEventMethod = + AnalyticsAdminServiceGrpc.getDeleteConversionEventMethod) + == null) { + AnalyticsAdminServiceGrpc.getDeleteConversionEventMethod = + getDeleteConversionEventMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteConversionEvent")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "DeleteConversionEvent")) + .build(); + } + } } + return getDeleteConversionEventMethod; + } - /** - * - * - *
-     * Creates an "GA4" property with the specified location and attributes.
-     * 
- */ - public void createProperty( - com.google.analytics.admin.v1alpha.CreatePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreatePropertyMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListConversionEventsRequest, + com.google.analytics.admin.v1alpha.ListConversionEventsResponse> + getListConversionEventsMethod; - /** - * - * - *
-     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted properties.
-     * However, they can be restored using the Trash Can UI.
-     * If the properties are not restored before the expiration time, the Property
-     * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks)
-     * will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found, or is not an GA4 Property.
-     * 
- */ - public void deleteProperty( - com.google.analytics.admin.v1alpha.DeletePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeletePropertyMethod(), responseObserver); + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListConversionEvents", + requestType = com.google.analytics.admin.v1alpha.ListConversionEventsRequest.class, + responseType = com.google.analytics.admin.v1alpha.ListConversionEventsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListConversionEventsRequest, + com.google.analytics.admin.v1alpha.ListConversionEventsResponse> + getListConversionEventsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListConversionEventsRequest, + com.google.analytics.admin.v1alpha.ListConversionEventsResponse> + getListConversionEventsMethod; + if ((getListConversionEventsMethod = AnalyticsAdminServiceGrpc.getListConversionEventsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getListConversionEventsMethod = + AnalyticsAdminServiceGrpc.getListConversionEventsMethod) + == null) { + AnalyticsAdminServiceGrpc.getListConversionEventsMethod = + getListConversionEventsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListConversionEvents")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.ListConversionEventsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier("ListConversionEvents")) + .build(); + } + } } + return getListConversionEventsMethod; + } - /** - * - * - *
-     * Updates a property.
-     * 
- */ - public void updateProperty( - com.google.analytics.admin.v1alpha.UpdatePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdatePropertyMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getCreateCustomDimensionMethod; - /** - * - * - *
-     * Gets information about a user's link to an account or property.
-     * 
- */ - public void getUserLink( - com.google.analytics.admin.v1alpha.GetUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetUserLinkMethod(), responseObserver); + @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; + } - /** - * - * - *
-     * Gets information about multiple users' links to an account or property.
-     * 
- */ - public void batchGetUserLinks( - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchGetUserLinksMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getUpdateCustomDimensionMethod; - /** - * - * - *
-     * Lists all user links on an account or property.
-     * 
- */ - public void listUserLinks( - com.google.analytics.admin.v1alpha.ListUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListUserLinksMethod(), responseObserver); + @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; + } - /** - * - * - *
-     * Lists all user links on an account or property, including implicit ones
-     * that come from effective permissions granted by groups or organization
-     * admin roles.
-     * If a returned user link does not have direct permissions, they cannot
-     * be removed from the account or property directly with the DeleteUserLink
-     * command. They have to be removed from the group/etc that gives them
-     * permissions, which is currently only usable/discoverable in the GA or GMP
-     * UIs.
-     * 
- */ - public void auditUserLinks( - com.google.analytics.admin.v1alpha.AuditUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getAuditUserLinksMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest, + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse> + getListCustomDimensionsMethod; - /** - * - * - *
-     * Creates a user link on an account or property.
-     * If the user with the specified email already has permissions on the
-     * account or property, then the user's existing permissions will be unioned
-     * with the permissions specified in the new UserLink.
-     * 
- */ - public void createUserLink( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateUserLinkMethod(), responseObserver); + @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; + } - /** - * - * - *
-     * Creates information about multiple users' links to an account or property.
-     * This method is transactional. If any UserLink cannot be created, none of
-     * the UserLinks will be created.
-     * 
- */ - public void batchCreateUserLinks( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchCreateUserLinksMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, + com.google.protobuf.Empty> + getArchiveCustomDimensionMethod; - /** - * - * - *
-     * Updates a user link on an account or property.
-     * 
- */ - public void updateUserLink( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateUserLinkMethod(), responseObserver); + @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; + } - /** - * - * - *
-     * Updates information about multiple users' links to an account or property.
-     * 
- */ - public void batchUpdateUserLinks( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchUpdateUserLinksMethod(), responseObserver); - } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension> + getGetCustomDimensionMethod; - /** - * - * - *
-     * Deletes a user link on an account or property.
-     * 
- */ - public void deleteUserLink( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteUserLinkMethod(), responseObserver); + @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; + } - /** - * - * - *
-     * Deletes information about multiple users' links to an account or property.
+  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",
+      requestType = com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.class,
+      responseType = com.google.protobuf.Empty.class,
+      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
+  public static io.grpc.MethodDescriptor<
+          com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest, com.google.protobuf.Empty>
+      getArchiveCustomMetricMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest,
+            com.google.protobuf.Empty>
+        getArchiveCustomMetricMethod;
+    if ((getArchiveCustomMetricMethod = AnalyticsAdminServiceGrpc.getArchiveCustomMetricMethod)
+        == null) {
+      synchronized (AnalyticsAdminServiceGrpc.class) {
+        if ((getArchiveCustomMetricMethod = AnalyticsAdminServiceGrpc.getArchiveCustomMetricMethod)
+            == null) {
+          AnalyticsAdminServiceGrpc.getArchiveCustomMetricMethod =
+              getArchiveCustomMetricMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(
+                          generateFullMethodName(SERVICE_NAME, "ArchiveCustomMetric"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.protobuf.Empty.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new AnalyticsAdminServiceMethodDescriptorSupplier("ArchiveCustomMetric"))
+                      .build();
+        }
+      }
+    }
+    return getArchiveCustomMetricMethod;
+  }
+
+  private static volatile io.grpc.MethodDescriptor<
+          com.google.analytics.admin.v1alpha.GetCustomMetricRequest,
+          com.google.analytics.admin.v1alpha.CustomMetric>
+      getGetCustomMetricMethod;
+
+  @io.grpc.stub.annotations.RpcMethod(
+      fullMethodName = SERVICE_NAME + '/' + "GetCustomMetric",
+      requestType = com.google.analytics.admin.v1alpha.GetCustomMetricRequest.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.GetCustomMetricRequest,
+          com.google.analytics.admin.v1alpha.CustomMetric>
+      getGetCustomMetricMethod() {
+    io.grpc.MethodDescriptor<
+            com.google.analytics.admin.v1alpha.GetCustomMetricRequest,
+            com.google.analytics.admin.v1alpha.CustomMetric>
+        getGetCustomMetricMethod;
+    if ((getGetCustomMetricMethod = AnalyticsAdminServiceGrpc.getGetCustomMetricMethod) == null) {
+      synchronized (AnalyticsAdminServiceGrpc.class) {
+        if ((getGetCustomMetricMethod = AnalyticsAdminServiceGrpc.getGetCustomMetricMethod)
+            == null) {
+          AnalyticsAdminServiceGrpc.getGetCustomMetricMethod =
+              getGetCustomMetricMethod =
+                  io.grpc.MethodDescriptor
+                      .
+                          newBuilder()
+                      .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
+                      .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetCustomMetric"))
+                      .setSampledToLocalTracing(true)
+                      .setRequestMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.analytics.admin.v1alpha.GetCustomMetricRequest
+                                  .getDefaultInstance()))
+                      .setResponseMarshaller(
+                          io.grpc.protobuf.ProtoUtils.marshaller(
+                              com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()))
+                      .setSchemaDescriptor(
+                          new AnalyticsAdminServiceMethodDescriptorSupplier("GetCustomMetric"))
+                      .build();
+        }
+      }
+    }
+    return getGetCustomMetricMethod;
+  }
+
+  /** 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 =
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public AnalyticsAdminServiceStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new AnalyticsAdminServiceStub(channel, callOptions);
+          }
+        };
+    return AnalyticsAdminServiceStub.newStub(factory, channel);
+  }
+
+  /**
+   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
+   */
+  public static AnalyticsAdminServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
+    io.grpc.stub.AbstractStub.StubFactory factory =
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public AnalyticsAdminServiceBlockingStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new AnalyticsAdminServiceBlockingStub(channel, callOptions);
+          }
+        };
+    return AnalyticsAdminServiceBlockingStub.newStub(factory, channel);
+  }
+
+  /** Creates a new ListenableFuture-style stub that supports unary calls on the service */
+  public static AnalyticsAdminServiceFutureStub newFutureStub(io.grpc.Channel channel) {
+    io.grpc.stub.AbstractStub.StubFactory factory =
+        new io.grpc.stub.AbstractStub.StubFactory() {
+          @java.lang.Override
+          public AnalyticsAdminServiceFutureStub newStub(
+              io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
+            return new AnalyticsAdminServiceFutureStub(channel, callOptions);
+          }
+        };
+    return AnalyticsAdminServiceFutureStub.newStub(factory, channel);
+  }
+
+  /**
+   *
+   *
+   * 
+   * Service Interface for the Analytics Admin API (GA4).
+   * 
+ */ + public abstract static class AnalyticsAdminServiceImplBase implements io.grpc.BindableService { + + /** + * + * + *
+     * Lookup for a single Account.
      * 
*/ - public void batchDeleteUserLinks( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getBatchDeleteUserLinksMethod(), responseObserver); + public void getAccount( + com.google.analytics.admin.v1alpha.GetAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetAccountMethod(), responseObserver); } /** * * *
-     * Lookup for a single WebDataStream
+     * Returns all accounts accessible by the caller.
+     * Note that these accounts might not currently have GA4 properties.
+     * Soft-deleted (ie: "trashed") accounts are excluded by default.
+     * Returns an empty list if no relevant accounts are found.
      * 
*/ - public void getWebDataStream( - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request, - io.grpc.stub.StreamObserver + public void listAccounts( + com.google.analytics.admin.v1alpha.ListAccountsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetWebDataStreamMethod(), responseObserver); + getListAccountsMethod(), responseObserver); } /** * * *
-     * Deletes a web stream on a property.
+     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted accounts.
+     * However, they can be restored using the Trash Can UI.
+     * If the accounts are not restored before the expiration time, the account
+     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
+     * UserLinks) will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found.
      * 
*/ - public void deleteWebDataStream( - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request, + public void deleteAccount( + com.google.analytics.admin.v1alpha.DeleteAccountRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteWebDataStreamMethod(), responseObserver); + getDeleteAccountMethod(), responseObserver); } /** * * *
-     * Updates a web stream on a property.
+     * Updates an account.
      * 
*/ - public void updateWebDataStream( - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void updateAccount( + com.google.analytics.admin.v1alpha.UpdateAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateWebDataStreamMethod(), responseObserver); + getUpdateAccountMethod(), responseObserver); } /** * * *
-     * Creates a web stream with the specified location and attributes.
+     * Requests a ticket for creating an account.
      * 
*/ - public void createWebDataStream( - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request, - io.grpc.stub.StreamObserver + public void provisionAccountTicket( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateWebDataStreamMethod(), responseObserver); + getProvisionAccountTicketMethod(), responseObserver); } /** * * *
-     * Returns child web data streams under the specified parent property.
-     * Web data streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant web data streams are found.
+     * Returns summaries of all accounts accessible by the caller.
      * 
*/ - public void listWebDataStreams( - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request, - io.grpc.stub.StreamObserver + public void listAccountSummaries( + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListWebDataStreamsMethod(), responseObserver); + getListAccountSummariesMethod(), responseObserver); } /** * * *
-     * Lookup for a single IosAppDataStream
+     * Lookup for a single "GA4" Property.
      * 
*/ - public void getIosAppDataStream( - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void getProperty( + com.google.analytics.admin.v1alpha.GetPropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetIosAppDataStreamMethod(), responseObserver); + getGetPropertyMethod(), responseObserver); } /** * * *
-     * Deletes an iOS app stream on a property.
+     * Returns child Properties under the specified parent Account.
+     * Only "GA4" properties will be returned.
+     * Properties will be excluded if the caller does not have access.
+     * Soft-deleted (ie: "trashed") properties are excluded by default.
+     * Returns an empty list if no relevant properties are found.
      * 
*/ - public void deleteIosAppDataStream( - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void listProperties( + com.google.analytics.admin.v1alpha.ListPropertiesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteIosAppDataStreamMethod(), responseObserver); + getListPropertiesMethod(), responseObserver); } /** * * *
-     * Updates an iOS app stream on a property.
+     * Creates an "GA4" property with the specified location and attributes.
      * 
*/ - public void updateIosAppDataStream( - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void createProperty( + com.google.analytics.admin.v1alpha.CreatePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateIosAppDataStreamMethod(), responseObserver); + getCreatePropertyMethod(), responseObserver); } /** * * *
-     * Returns child iOS app data streams under the specified parent property.
-     * iOS app data streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant iOS app data streams are found.
+     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted properties.
+     * However, they can be restored using the Trash Can UI.
+     * If the properties are not restored before the expiration time, the Property
+     * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks)
+     * will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found, or is not an GA4 Property.
      * 
*/ - public void listIosAppDataStreams( - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request, - io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> - responseObserver) { + public void deleteProperty( + com.google.analytics.admin.v1alpha.DeletePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListIosAppDataStreamsMethod(), responseObserver); + getDeletePropertyMethod(), responseObserver); } /** * * *
-     * Lookup for a single AndroidAppDataStream
+     * Updates a property.
      * 
*/ - public void getAndroidAppDataStream( - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void updateProperty( + com.google.analytics.admin.v1alpha.UpdatePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetAndroidAppDataStreamMethod(), responseObserver); + getUpdatePropertyMethod(), responseObserver); } /** * * *
-     * Deletes an android app stream on a property.
+     * Gets information about a user's link to an account or property.
      * 
*/ - public void deleteAndroidAppDataStream( - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void getUserLink( + com.google.analytics.admin.v1alpha.GetUserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteAndroidAppDataStreamMethod(), responseObserver); + getGetUserLinkMethod(), responseObserver); } /** * * *
-     * Updates an android app stream on a property.
+     * Gets information about multiple users' links to an account or property.
      * 
*/ - public void updateAndroidAppDataStream( - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver + public void batchGetUserLinks( + com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateAndroidAppDataStreamMethod(), responseObserver); + getBatchGetUserLinksMethod(), responseObserver); } /** * * *
-     * Returns child android app streams under the specified parent property.
-     * Android app streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant android app streams are found.
+     * Lists all user links on an account or property.
      * 
*/ - public void listAndroidAppDataStreams( - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request, - io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> + public void listUserLinks( + com.google.analytics.admin.v1alpha.ListUserLinksRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListAndroidAppDataStreamsMethod(), responseObserver); + getListUserLinksMethod(), responseObserver); } /** * * *
-     * Returns the singleton enhanced measurement settings for this web stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
+     * Lists all user links on an account or property, including implicit ones
+     * that come from effective permissions granted by groups or organization
+     * admin roles.
+     * If a returned user link does not have direct permissions, they cannot
+     * be removed from the account or property directly with the DeleteUserLink
+     * command. They have to be removed from the group/etc that gives them
+     * permissions, which is currently only usable/discoverable in the GA or GMP
+     * UIs.
      * 
*/ - public void getEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request, - io.grpc.stub.StreamObserver + public void auditUserLinks( + com.google.analytics.admin.v1alpha.AuditUserLinksRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetEnhancedMeasurementSettingsMethod(), responseObserver); + getAuditUserLinksMethod(), responseObserver); } /** * * *
-     * Updates the singleton enhanced measurement settings for this web stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
+     * Creates a user link on an account or property.
+     * If the user with the specified email already has permissions on the
+     * account or property, then the user's existing permissions will be unioned
+     * with the permissions specified in the new UserLink.
      * 
*/ - public void updateEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void createUserLink( + com.google.analytics.admin.v1alpha.CreateUserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateEnhancedMeasurementSettingsMethod(), responseObserver); + getCreateUserLinkMethod(), responseObserver); } /** * * *
-     * Creates a FirebaseLink.
-     * Properties can have at most one FirebaseLink.
+     * Creates information about multiple users' links to an account or property.
+     * This method is transactional. If any UserLink cannot be created, none of
+     * the UserLinks will be created.
      * 
*/ - public void createFirebaseLink( - com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request, - io.grpc.stub.StreamObserver + public void batchCreateUserLinks( + com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateFirebaseLinkMethod(), responseObserver); + getBatchCreateUserLinksMethod(), responseObserver); } /** * * *
-     * Updates a FirebaseLink on a property
+     * Updates a user link on an account or property.
      * 
*/ - public void updateFirebaseLink( - com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void updateUserLink( + com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateFirebaseLinkMethod(), responseObserver); + getUpdateUserLinkMethod(), responseObserver); } /** * * *
-     * Deletes a FirebaseLink on a property
+     * Updates information about multiple users' links to an account or property.
      * 
*/ - public void deleteFirebaseLink( - com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void batchUpdateUserLinks( + com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteFirebaseLinkMethod(), responseObserver); + getBatchUpdateUserLinksMethod(), responseObserver); } /** * * *
-     * Lists FirebaseLinks on a property.
-     * Properties can have at most one FirebaseLink.
+     * Deletes a user link on an account or property.
      * 
*/ - public void listFirebaseLinks( - com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void deleteUserLink( + com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListFirebaseLinksMethod(), responseObserver); + getDeleteUserLinkMethod(), responseObserver); } /** * * *
-     * Returns the Site Tag for the specified web stream.
-     * Site Tags are immutable singletons.
+     * Deletes information about multiple users' links to an account or property.
      * 
*/ - public void getGlobalSiteTag( - com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void batchDeleteUserLinks( + com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetGlobalSiteTagMethod(), responseObserver); + getBatchDeleteUserLinksMethod(), responseObserver); } /** * * *
-     * Creates a GoogleAdsLink.
+     * Lookup for a single WebDataStream
      * 
*/ - public void createGoogleAdsLink( - com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver + public void getWebDataStream( + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getCreateGoogleAdsLinkMethod(), responseObserver); + getGetWebDataStreamMethod(), responseObserver); } /** * * *
-     * Updates a GoogleAdsLink on a property
+     * Deletes a web stream on a property.
      * 
*/ - public void updateGoogleAdsLink( - com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { + public void deleteWebDataStream( + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getUpdateGoogleAdsLinkMethod(), responseObserver); + getDeleteWebDataStreamMethod(), responseObserver); } /** * * *
-     * Deletes a GoogleAdsLink on a property
+     * Updates a web stream on a property.
      * 
*/ - public void deleteGoogleAdsLink( - com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { + public void updateWebDataStream( + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getDeleteGoogleAdsLinkMethod(), responseObserver); + getUpdateWebDataStreamMethod(), responseObserver); } /** * * *
-     * Lists GoogleAdsLinks on a property.
+     * Creates a web stream with the specified location and attributes.
      * 
*/ - public void listGoogleAdsLinks( - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request, - io.grpc.stub.StreamObserver + public void createWebDataStream( + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getListGoogleAdsLinksMethod(), responseObserver); + getCreateWebDataStreamMethod(), responseObserver); } /** * * *
-     * Get data sharing settings on an account.
-     * Data sharing settings are singletons.
+     * Returns child web data streams under the specified parent property.
+     * Web data streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant web data streams are found.
      * 
*/ - public void getDataSharingSettings( - com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request, - io.grpc.stub.StreamObserver + public void listWebDataStreams( + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request, + io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getGetDataSharingSettingsMethod(), responseObserver); + getListWebDataStreamsMethod(), responseObserver); } /** * * *
-     * Searches through all changes to an account or its children given the
-     * specified set of filters.
+     * Lookup for a single IosAppDataStream
      * 
*/ - public void searchChangeHistoryEvents( - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request, + public void getIosAppDataStream( + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetIosAppDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an iOS app stream on a property.
+     * 
+ */ + public void deleteIosAppDataStream( + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteIosAppDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an iOS app stream on a property.
+     * 
+ */ + public void updateIosAppDataStream( + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateIosAppDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns child iOS app data streams under the specified parent property.
+     * iOS app data streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant iOS app data streams are found.
+     * 
+ */ + public void listIosAppDataStreams( + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request, io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( - getSearchChangeHistoryEventsMethod(), responseObserver); + getListIosAppDataStreamsMethod(), responseObserver); } - @java.lang.Override - public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getGetAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetAccountRequest, - com.google.analytics.admin.v1alpha.Account>(this, METHODID_GET_ACCOUNT))) - .addMethod( - getListAccountsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListAccountsRequest, - com.google.analytics.admin.v1alpha.ListAccountsResponse>( - this, METHODID_LIST_ACCOUNTS))) - .addMethod( - getDeleteAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteAccountRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_ACCOUNT))) - .addMethod( - getUpdateAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateAccountRequest, - com.google.analytics.admin.v1alpha.Account>(this, METHODID_UPDATE_ACCOUNT))) - .addMethod( - getProvisionAccountTicketMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest, - com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse>( - this, METHODID_PROVISION_ACCOUNT_TICKET))) - .addMethod( - getListAccountSummariesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListAccountSummariesRequest, - com.google.analytics.admin.v1alpha.ListAccountSummariesResponse>( - this, METHODID_LIST_ACCOUNT_SUMMARIES))) - .addMethod( - getGetPropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetPropertyRequest, - com.google.analytics.admin.v1alpha.Property>(this, METHODID_GET_PROPERTY))) - .addMethod( - getListPropertiesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListPropertiesRequest, - com.google.analytics.admin.v1alpha.ListPropertiesResponse>( - this, METHODID_LIST_PROPERTIES))) - .addMethod( - getCreatePropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreatePropertyRequest, - com.google.analytics.admin.v1alpha.Property>(this, METHODID_CREATE_PROPERTY))) - .addMethod( - getDeletePropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeletePropertyRequest, - com.google.analytics.admin.v1alpha.Property>(this, METHODID_DELETE_PROPERTY))) - .addMethod( - getUpdatePropertyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdatePropertyRequest, - com.google.analytics.admin.v1alpha.Property>(this, METHODID_UPDATE_PROPERTY))) - .addMethod( - getGetUserLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink>(this, METHODID_GET_USER_LINK))) - .addMethod( - getBatchGetUserLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse>( - this, METHODID_BATCH_GET_USER_LINKS))) - .addMethod( - getListUserLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListUserLinksRequest, - com.google.analytics.admin.v1alpha.ListUserLinksResponse>( - this, METHODID_LIST_USER_LINKS))) - .addMethod( - getAuditUserLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.AuditUserLinksRequest, - com.google.analytics.admin.v1alpha.AuditUserLinksResponse>( - this, METHODID_AUDIT_USER_LINKS))) - .addMethod( - getCreateUserLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink>( - this, METHODID_CREATE_USER_LINK))) - .addMethod( - getBatchCreateUserLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse>( - this, METHODID_BATCH_CREATE_USER_LINKS))) - .addMethod( - getUpdateUserLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest, - com.google.analytics.admin.v1alpha.UserLink>( - this, METHODID_UPDATE_USER_LINK))) - .addMethod( - getBatchUpdateUserLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest, - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse>( - this, METHODID_BATCH_UPDATE_USER_LINKS))) - .addMethod( - getDeleteUserLinkMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_USER_LINK))) - .addMethod( - getBatchDeleteUserLinksMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest, - com.google.protobuf.Empty>(this, METHODID_BATCH_DELETE_USER_LINKS))) - .addMethod( - getGetWebDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest, - com.google.analytics.admin.v1alpha.WebDataStream>( - this, METHODID_GET_WEB_DATA_STREAM))) - .addMethod( - getDeleteWebDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_WEB_DATA_STREAM))) - .addMethod( - getUpdateWebDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest, - com.google.analytics.admin.v1alpha.WebDataStream>( - this, METHODID_UPDATE_WEB_DATA_STREAM))) - .addMethod( - getCreateWebDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest, - com.google.analytics.admin.v1alpha.WebDataStream>( - this, METHODID_CREATE_WEB_DATA_STREAM))) - .addMethod( - getListWebDataStreamsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest, - com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse>( - this, METHODID_LIST_WEB_DATA_STREAMS))) - .addMethod( - getGetIosAppDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest, - com.google.analytics.admin.v1alpha.IosAppDataStream>( - this, METHODID_GET_IOS_APP_DATA_STREAM))) - .addMethod( - getDeleteIosAppDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest, - com.google.protobuf.Empty>(this, METHODID_DELETE_IOS_APP_DATA_STREAM))) - .addMethod( - getUpdateIosAppDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest, - com.google.analytics.admin.v1alpha.IosAppDataStream>( - this, METHODID_UPDATE_IOS_APP_DATA_STREAM))) - .addMethod( - getListIosAppDataStreamsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest, - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse>( - this, METHODID_LIST_IOS_APP_DATA_STREAMS))) - .addMethod( - getGetAndroidAppDataStreamMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( + /** + * + * + *
+     * Lookup for a single AndroidAppDataStream
+     * 
+ */ + public void getAndroidAppDataStream( + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAndroidAppDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes an android app stream on a property.
+     * 
+ */ + public void deleteAndroidAppDataStream( + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAndroidAppDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates an android app stream on a property.
+     * 
+ */ + public void updateAndroidAppDataStream( + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAndroidAppDataStreamMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns child android app streams under the specified parent property.
+     * Android app streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant android app streams are found.
+     * 
+ */ + public void listAndroidAppDataStreams( + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAndroidAppDataStreamsMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the singleton enhanced measurement settings for this web stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + public void getEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetEnhancedMeasurementSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates the singleton enhanced measurement settings for this web stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + public void updateEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateEnhancedMeasurementSettingsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a FirebaseLink.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + public void createFirebaseLink( + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + 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); + } + + /** + * + * + *
+     * Deletes a FirebaseLink on a property
+     * 
+ */ + public void deleteFirebaseLink( + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteFirebaseLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists FirebaseLinks on a property.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + public void listFirebaseLinks( + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListFirebaseLinksMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns the Site Tag for the specified web stream.
+     * Site Tags are immutable singletons.
+     * 
+ */ + public void getGlobalSiteTag( + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetGlobalSiteTagMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a GoogleAdsLink.
+     * 
+ */ + public void createGoogleAdsLink( + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateGoogleAdsLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a GoogleAdsLink on a property
+     * 
+ */ + public void updateGoogleAdsLink( + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateGoogleAdsLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes a GoogleAdsLink on a property
+     * 
+ */ + public void deleteGoogleAdsLink( + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteGoogleAdsLinkMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists GoogleAdsLinks on a property.
+     * 
+ */ + public void listGoogleAdsLinks( + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListGoogleAdsLinksMethod(), responseObserver); + } + + /** + * + * + *
+     * Get data sharing settings on an account.
+     * Data sharing settings are singletons.
+     * 
+ */ + public void getDataSharingSettings( + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetDataSharingSettingsMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getGetMeasurementProtocolSecretMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getListMeasurementProtocolSecretsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a measurement protocol secret.
+     * 
+ */ + public void createMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateMeasurementProtocolSecretMethod(), responseObserver); + } + + /** + * + * + *
+     * Deletes target MeasurementProtocolSecret.
+     * 
+ */ + public void deleteMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteMeasurementProtocolSecretMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a measurement protocol secret.
+     * 
+ */ + public void updateMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateMeasurementProtocolSecretMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getSearchChangeHistoryEventsMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getGetGoogleSignalsSettingsMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateGoogleSignalsSettingsMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getCreateConversionEventMethod(), responseObserver); + } + + /** + * + * + *
+     * Retrieve a single conversion event.
+     * 
+ */ + public void getConversionEvent( + com.google.analytics.admin.v1alpha.GetConversionEventRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetConversionEventMethod(), 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.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteConversionEventMethod(), responseObserver); + } + + /** + * + * + *
+     * Returns a list of conversion events in the specified parent property.
+     * Returns an empty list if no conversion events are found.
+     * 
+ */ + public void listConversionEvents( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListConversionEventsMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a CustomDimension.
+     * 
+ */ + public void createCustomDimension( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCustomDimensionMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a CustomDimension on a property.
+     * 
+ */ + public void updateCustomDimension( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCustomDimensionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists CustomDimensions on a property.
+     * 
+ */ + public void listCustomDimensions( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCustomDimensionsMethod(), responseObserver); + } + + /** + * + * + *
+     * Archives a CustomDimension on a property.
+     * 
+ */ + public void archiveCustomDimension( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getArchiveCustomDimensionMethod(), responseObserver); + } + + /** + * + * + *
+     * Lookup for a single CustomDimension.
+     * 
+ */ + public void getCustomDimension( + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetCustomDimensionMethod(), responseObserver); + } + + /** + * + * + *
+     * Creates a CustomMetric.
+     * 
+ */ + public void createCustomMetric( + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateCustomMetricMethod(), responseObserver); + } + + /** + * + * + *
+     * Updates a CustomMetric on a property.
+     * 
+ */ + public void updateCustomMetric( + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateCustomMetricMethod(), responseObserver); + } + + /** + * + * + *
+     * Lists CustomMetrics on a property.
+     * 
+ */ + public void listCustomMetrics( + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListCustomMetricsMethod(), responseObserver); + } + + /** + * + * + *
+     * Archives a CustomMetric on a property.
+     * 
+ */ + public void archiveCustomMetric( + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + 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); + } + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getGetAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetAccountRequest, + com.google.analytics.admin.v1alpha.Account>(this, METHODID_GET_ACCOUNT))) + .addMethod( + getListAccountsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListAccountsRequest, + com.google.analytics.admin.v1alpha.ListAccountsResponse>( + this, METHODID_LIST_ACCOUNTS))) + .addMethod( + getDeleteAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteAccountRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_ACCOUNT))) + .addMethod( + getUpdateAccountMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateAccountRequest, + com.google.analytics.admin.v1alpha.Account>(this, METHODID_UPDATE_ACCOUNT))) + .addMethod( + getProvisionAccountTicketMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest, + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse>( + this, METHODID_PROVISION_ACCOUNT_TICKET))) + .addMethod( + getListAccountSummariesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest, + com.google.analytics.admin.v1alpha.ListAccountSummariesResponse>( + this, METHODID_LIST_ACCOUNT_SUMMARIES))) + .addMethod( + getGetPropertyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetPropertyRequest, + com.google.analytics.admin.v1alpha.Property>(this, METHODID_GET_PROPERTY))) + .addMethod( + getListPropertiesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListPropertiesRequest, + com.google.analytics.admin.v1alpha.ListPropertiesResponse>( + this, METHODID_LIST_PROPERTIES))) + .addMethod( + getCreatePropertyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreatePropertyRequest, + com.google.analytics.admin.v1alpha.Property>(this, METHODID_CREATE_PROPERTY))) + .addMethod( + getDeletePropertyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeletePropertyRequest, + com.google.analytics.admin.v1alpha.Property>(this, METHODID_DELETE_PROPERTY))) + .addMethod( + getUpdatePropertyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdatePropertyRequest, + com.google.analytics.admin.v1alpha.Property>(this, METHODID_UPDATE_PROPERTY))) + .addMethod( + getGetUserLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetUserLinkRequest, + com.google.analytics.admin.v1alpha.UserLink>(this, METHODID_GET_USER_LINK))) + .addMethod( + getBatchGetUserLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest, + com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse>( + this, METHODID_BATCH_GET_USER_LINKS))) + .addMethod( + getListUserLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListUserLinksRequest, + com.google.analytics.admin.v1alpha.ListUserLinksResponse>( + this, METHODID_LIST_USER_LINKS))) + .addMethod( + getAuditUserLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.AuditUserLinksRequest, + com.google.analytics.admin.v1alpha.AuditUserLinksResponse>( + this, METHODID_AUDIT_USER_LINKS))) + .addMethod( + getCreateUserLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateUserLinkRequest, + com.google.analytics.admin.v1alpha.UserLink>( + this, METHODID_CREATE_USER_LINK))) + .addMethod( + getBatchCreateUserLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest, + com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse>( + this, METHODID_BATCH_CREATE_USER_LINKS))) + .addMethod( + getUpdateUserLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateUserLinkRequest, + com.google.analytics.admin.v1alpha.UserLink>( + this, METHODID_UPDATE_USER_LINK))) + .addMethod( + getBatchUpdateUserLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest, + com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse>( + this, METHODID_BATCH_UPDATE_USER_LINKS))) + .addMethod( + getDeleteUserLinkMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteUserLinkRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_USER_LINK))) + .addMethod( + getBatchDeleteUserLinksMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest, + com.google.protobuf.Empty>(this, METHODID_BATCH_DELETE_USER_LINKS))) + .addMethod( + getGetWebDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest, + com.google.analytics.admin.v1alpha.WebDataStream>( + this, METHODID_GET_WEB_DATA_STREAM))) + .addMethod( + getDeleteWebDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_WEB_DATA_STREAM))) + .addMethod( + getUpdateWebDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest, + com.google.analytics.admin.v1alpha.WebDataStream>( + this, METHODID_UPDATE_WEB_DATA_STREAM))) + .addMethod( + getCreateWebDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest, + com.google.analytics.admin.v1alpha.WebDataStream>( + this, METHODID_CREATE_WEB_DATA_STREAM))) + .addMethod( + getListWebDataStreamsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse>( + this, METHODID_LIST_WEB_DATA_STREAMS))) + .addMethod( + getGetIosAppDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest, + com.google.analytics.admin.v1alpha.IosAppDataStream>( + this, METHODID_GET_IOS_APP_DATA_STREAM))) + .addMethod( + getDeleteIosAppDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_IOS_APP_DATA_STREAM))) + .addMethod( + getUpdateIosAppDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest, + com.google.analytics.admin.v1alpha.IosAppDataStream>( + this, METHODID_UPDATE_IOS_APP_DATA_STREAM))) + .addMethod( + getListIosAppDataStreamsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest, + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse>( + this, METHODID_LIST_IOS_APP_DATA_STREAMS))) + .addMethod( + getGetAndroidAppDataStreamMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest, com.google.analytics.admin.v1alpha.AndroidAppDataStream>( @@ -3433,6 +4816,41 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest, com.google.analytics.admin.v1alpha.DataSharingSettings>( this, METHODID_GET_DATA_SHARING_SETTINGS))) + .addMethod( + getGetMeasurementProtocolSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>( + this, METHODID_GET_MEASUREMENT_PROTOCOL_SECRET))) + .addMethod( + getListMeasurementProtocolSecretsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse>( + this, METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS))) + .addMethod( + getCreateMeasurementProtocolSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>( + this, METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET))) + .addMethod( + getDeleteMeasurementProtocolSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest, + com.google.protobuf.Empty>( + this, METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET))) + .addMethod( + getUpdateMeasurementProtocolSecretMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>( + this, METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET))) .addMethod( getSearchChangeHistoryEventsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3440,6 +4858,115 @@ public final io.grpc.ServerServiceDefinition bindService() { com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest, com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse>( this, METHODID_SEARCH_CHANGE_HISTORY_EVENTS))) + .addMethod( + getGetGoogleSignalsSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings>( + this, METHODID_GET_GOOGLE_SIGNALS_SETTINGS))) + .addMethod( + getUpdateGoogleSignalsSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings>( + this, METHODID_UPDATE_GOOGLE_SIGNALS_SETTINGS))) + .addMethod( + getCreateConversionEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent>( + this, METHODID_CREATE_CONVERSION_EVENT))) + .addMethod( + getGetConversionEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetConversionEventRequest, + com.google.analytics.admin.v1alpha.ConversionEvent>( + this, METHODID_GET_CONVERSION_EVENT))) + .addMethod( + getDeleteConversionEventMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest, + com.google.protobuf.Empty>(this, METHODID_DELETE_CONVERSION_EVENT))) + .addMethod( + getListConversionEventsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListConversionEventsRequest, + com.google.analytics.admin.v1alpha.ListConversionEventsResponse>( + this, METHODID_LIST_CONVERSION_EVENTS))) + .addMethod( + getCreateCustomDimensionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension>( + this, METHODID_CREATE_CUSTOM_DIMENSION))) + .addMethod( + getUpdateCustomDimensionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension>( + this, METHODID_UPDATE_CUSTOM_DIMENSION))) + .addMethod( + getListCustomDimensionsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest, + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse>( + this, METHODID_LIST_CUSTOM_DIMENSIONS))) + .addMethod( + getArchiveCustomDimensionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest, + com.google.protobuf.Empty>(this, METHODID_ARCHIVE_CUSTOM_DIMENSION))) + .addMethod( + getGetCustomDimensionMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest, + com.google.analytics.admin.v1alpha.CustomDimension>( + this, METHODID_GET_CUSTOM_DIMENSION))) + .addMethod( + getCreateCustomMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric>( + this, METHODID_CREATE_CUSTOM_METRIC))) + .addMethod( + getUpdateCustomMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric>( + this, METHODID_UPDATE_CUSTOM_METRIC))) + .addMethod( + getListCustomMetricsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest, + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse>( + this, METHODID_LIST_CUSTOM_METRICS))) + .addMethod( + getArchiveCustomMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest, + com.google.protobuf.Empty>(this, METHODID_ARCHIVE_CUSTOM_METRIC))) + .addMethod( + getGetCustomMetricMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetCustomMetricRequest, + com.google.analytics.admin.v1alpha.CustomMetric>( + this, METHODID_GET_CUSTOM_METRIC))) .build(); } } @@ -3451,16 +4978,1225 @@ public final io.grpc.ServerServiceDefinition bindService() { * Service Interface for the Analytics Admin API (GA4). *
*/ - public static final class AnalyticsAdminServiceStub - extends io.grpc.stub.AbstractAsyncStub { - private AnalyticsAdminServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + public static final class AnalyticsAdminServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private AnalyticsAdminServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AnalyticsAdminServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsAdminServiceStub(channel, callOptions); + } + + /** + * + * + *
+     * Lookup for a single Account.
+     * 
+ */ + public void getAccount( + com.google.analytics.admin.v1alpha.GetAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAccountMethod(), getCallOptions()), request, responseObserver); + } + + /** + * + * + *
+     * Returns all accounts accessible by the caller.
+     * Note that these accounts might not currently have GA4 properties.
+     * Soft-deleted (ie: "trashed") accounts are excluded by default.
+     * Returns an empty list if no relevant accounts are found.
+     * 
+ */ + public void listAccounts( + com.google.analytics.admin.v1alpha.ListAccountsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAccountsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted accounts.
+     * However, they can be restored using the Trash Can UI.
+     * If the accounts are not restored before the expiration time, the account
+     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
+     * UserLinks) will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found.
+     * 
+ */ + public void deleteAccount( + com.google.analytics.admin.v1alpha.DeleteAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAccountMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an account.
+     * 
+ */ + public void updateAccount( + com.google.analytics.admin.v1alpha.UpdateAccountRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAccountMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Requests a ticket for creating an account.
+     * 
+ */ + public void provisionAccountTicket( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getProvisionAccountTicketMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns summaries of all accounts accessible by the caller.
+     * 
+ */ + public void listAccountSummaries( + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAccountSummariesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single "GA4" Property.
+     * 
+ */ + public void getProperty( + com.google.analytics.admin.v1alpha.GetPropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetPropertyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns child Properties under the specified parent Account.
+     * Only "GA4" properties will be returned.
+     * Properties will be excluded if the caller does not have access.
+     * Soft-deleted (ie: "trashed") properties are excluded by default.
+     * Returns an empty list if no relevant properties are found.
+     * 
+ */ + public void listProperties( + com.google.analytics.admin.v1alpha.ListPropertiesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListPropertiesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates an "GA4" property with the specified location and attributes.
+     * 
+ */ + public void createProperty( + com.google.analytics.admin.v1alpha.CreatePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreatePropertyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted properties.
+     * However, they can be restored using the Trash Can UI.
+     * If the properties are not restored before the expiration time, the Property
+     * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks)
+     * will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found, or is not an GA4 Property.
+     * 
+ */ + public void deleteProperty( + com.google.analytics.admin.v1alpha.DeletePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeletePropertyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a property.
+     * 
+ */ + public void updateProperty( + com.google.analytics.admin.v1alpha.UpdatePropertyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdatePropertyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets information about a user's link to an account or property.
+     * 
+ */ + public void getUserLink( + com.google.analytics.admin.v1alpha.GetUserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetUserLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Gets information about multiple users' links to an account or property.
+     * 
+ */ + public void batchGetUserLinks( + com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchGetUserLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all user links on an account or property.
+     * 
+ */ + public void listUserLinks( + com.google.analytics.admin.v1alpha.ListUserLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListUserLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists all user links on an account or property, including implicit ones
+     * that come from effective permissions granted by groups or organization
+     * admin roles.
+     * If a returned user link does not have direct permissions, they cannot
+     * be removed from the account or property directly with the DeleteUserLink
+     * command. They have to be removed from the group/etc that gives them
+     * permissions, which is currently only usable/discoverable in the GA or GMP
+     * UIs.
+     * 
+ */ + public void auditUserLinks( + com.google.analytics.admin.v1alpha.AuditUserLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAuditUserLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a user link on an account or property.
+     * If the user with the specified email already has permissions on the
+     * account or property, then the user's existing permissions will be unioned
+     * with the permissions specified in the new UserLink.
+     * 
+ */ + public void createUserLink( + com.google.analytics.admin.v1alpha.CreateUserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateUserLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates information about multiple users' links to an account or property.
+     * This method is transactional. If any UserLink cannot be created, none of
+     * the UserLinks will be created.
+     * 
+ */ + public void batchCreateUserLinks( + com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchCreateUserLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a user link on an account or property.
+     * 
+ */ + public void updateUserLink( + com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateUserLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates information about multiple users' links to an account or property.
+     * 
+ */ + public void batchUpdateUserLinks( + com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchUpdateUserLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a user link on an account or property.
+     * 
+ */ + public void deleteUserLink( + com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteUserLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes information about multiple users' links to an account or property.
+     * 
+ */ + public void batchDeleteUserLinks( + com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getBatchDeleteUserLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single WebDataStream
+     * 
+ */ + public void getWebDataStream( + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetWebDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a web stream on a property.
+     * 
+ */ + public void deleteWebDataStream( + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteWebDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a web stream on a property.
+     * 
+ */ + public void updateWebDataStream( + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateWebDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a web stream with the specified location and attributes.
+     * 
+ */ + public void createWebDataStream( + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateWebDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns child web data streams under the specified parent property.
+     * Web data streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant web data streams are found.
+     * 
+ */ + public void listWebDataStreams( + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListWebDataStreamsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single IosAppDataStream
+     * 
+ */ + public void getIosAppDataStream( + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetIosAppDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an iOS app stream on a property.
+     * 
+ */ + public void deleteIosAppDataStream( + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteIosAppDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an iOS app stream on a property.
+     * 
+ */ + public void updateIosAppDataStream( + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateIosAppDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns child iOS app data streams under the specified parent property.
+     * iOS app data streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant iOS app data streams are found.
+     * 
+ */ + public void listIosAppDataStreams( + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListIosAppDataStreamsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single AndroidAppDataStream
+     * 
+ */ + public void getAndroidAppDataStream( + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAndroidAppDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes an android app stream on a property.
+     * 
+ */ + public void deleteAndroidAppDataStream( + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAndroidAppDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates an android app stream on a property.
+     * 
+ */ + public void updateAndroidAppDataStream( + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAndroidAppDataStreamMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns child android app streams under the specified parent property.
+     * Android app streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant android app streams are found.
+     * 
+ */ + public void listAndroidAppDataStreams( + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request, + io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAndroidAppDataStreamsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the singleton enhanced measurement settings for this web stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + public void getEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetEnhancedMeasurementSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates the singleton enhanced measurement settings for this web stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
+     * 
+ */ + public void updateEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a FirebaseLink.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + public void createFirebaseLink( + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateFirebaseLinkMethod(), getCallOptions()), + request, + 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); + } + + /** + * + * + *
+     * Deletes a FirebaseLink on a property
+     * 
+ */ + public void deleteFirebaseLink( + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteFirebaseLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists FirebaseLinks on a property.
+     * Properties can have at most one FirebaseLink.
+     * 
+ */ + public void listFirebaseLinks( + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListFirebaseLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Returns the Site Tag for the specified web stream.
+     * Site Tags are immutable singletons.
+     * 
+ */ + public void getGlobalSiteTag( + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetGlobalSiteTagMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a GoogleAdsLink.
+     * 
+ */ + public void createGoogleAdsLink( + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateGoogleAdsLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a GoogleAdsLink on a property
+     * 
+ */ + public void updateGoogleAdsLink( + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateGoogleAdsLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Deletes a GoogleAdsLink on a property
+     * 
+ */ + public void deleteGoogleAdsLink( + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteGoogleAdsLinkMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists GoogleAdsLinks on a property.
+     * 
+ */ + public void listGoogleAdsLinks( + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListGoogleAdsLinksMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Get data sharing settings on an account.
+     * Data sharing settings are singletons.
+     * 
+ */ + public void getDataSharingSettings( + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + 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); + } + + /** + * + * + *
+     * Returns a list of conversion events in the specified parent property.
+     * Returns an empty list if no conversion events are found.
+     * 
+ */ + public void listConversionEvents( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListConversionEventsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a CustomDimension.
+     * 
+ */ + public void createCustomDimension( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCustomDimensionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a CustomDimension on a property.
+     * 
+ */ + public void updateCustomDimension( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCustomDimensionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists CustomDimensions on a property.
+     * 
+ */ + public void listCustomDimensions( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCustomDimensionsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Archives a CustomDimension on a property.
+     * 
+ */ + public void archiveCustomDimension( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getArchiveCustomDimensionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single CustomDimension.
+     * 
+ */ + public void getCustomDimension( + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCustomDimensionMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Creates a CustomMetric.
+     * 
+ */ + public void createCustomMetric( + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateCustomMetricMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Updates a CustomMetric on a property.
+     * 
+ */ + public void updateCustomMetric( + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateCustomMetricMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lists CustomMetrics on a property.
+     * 
+ */ + public void listCustomMetrics( + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListCustomMetricsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Archives a CustomMetric on a property.
+     * 
+ */ + public void archiveCustomMetric( + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getArchiveCustomMetricMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
+     * Lookup for a single CustomMetric.
+     * 
+ */ + public void getCustomMetric( + com.google.analytics.admin.v1alpha.GetCustomMetricRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetCustomMetricMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * + * + *
+   * Service Interface for the Analytics Admin API (GA4).
+   * 
+ */ + public static final class AnalyticsAdminServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AnalyticsAdminServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override - protected AnalyticsAdminServiceStub build( + protected AnalyticsAdminServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceStub(channel, callOptions); + return new AnalyticsAdminServiceBlockingStub(channel, callOptions); } /** @@ -3470,11 +6206,10 @@ protected AnalyticsAdminServiceStub build( * Lookup for a single Account. *
*/ - public void getAccount( - com.google.analytics.admin.v1alpha.GetAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAccountMethod(), getCallOptions()), request, responseObserver); + public com.google.analytics.admin.v1alpha.Account getAccount( + com.google.analytics.admin.v1alpha.GetAccountRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAccountMethod(), getCallOptions(), request); } /** @@ -3487,14 +6222,10 @@ public void getAccount( * Returns an empty list if no relevant accounts are found. *
*/ - public void listAccounts( - com.google.analytics.admin.v1alpha.ListAccountsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAccountsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.ListAccountsResponse listAccounts( + com.google.analytics.admin.v1alpha.ListAccountsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAccountsMethod(), getCallOptions(), request); } /** @@ -3511,13 +6242,10 @@ public void listAccounts( * Returns an error if the target is not found. *
*/ - public void deleteAccount( - com.google.analytics.admin.v1alpha.DeleteAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAccountMethod(), getCallOptions()), - request, - responseObserver); + public com.google.protobuf.Empty deleteAccount( + com.google.analytics.admin.v1alpha.DeleteAccountRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAccountMethod(), getCallOptions(), request); } /** @@ -3527,13 +6255,10 @@ public void deleteAccount( * Updates an account. *
*/ - public void updateAccount( - com.google.analytics.admin.v1alpha.UpdateAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAccountMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.Account updateAccount( + com.google.analytics.admin.v1alpha.UpdateAccountRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAccountMethod(), getCallOptions(), request); } /** @@ -3543,15 +6268,10 @@ public void updateAccount( * Requests a ticket for creating an account. * */ - public void provisionAccountTicket( - com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request, - io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getProvisionAccountTicketMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse provisionAccountTicket( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getProvisionAccountTicketMethod(), getCallOptions(), request); } /** @@ -3561,14 +6281,10 @@ public void provisionAccountTicket( * Returns summaries of all accounts accessible by the caller. * */ - public void listAccountSummaries( - com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAccountSummariesMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.ListAccountSummariesResponse listAccountSummaries( + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAccountSummariesMethod(), getCallOptions(), request); } /** @@ -3578,13 +6294,10 @@ public void listAccountSummaries( * Lookup for a single "GA4" Property. * */ - public void getProperty( - com.google.analytics.admin.v1alpha.GetPropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetPropertyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.Property getProperty( + com.google.analytics.admin.v1alpha.GetPropertyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetPropertyMethod(), getCallOptions(), request); } /** @@ -3598,14 +6311,10 @@ public void getProperty( * Returns an empty list if no relevant properties are found. * */ - public void listProperties( - com.google.analytics.admin.v1alpha.ListPropertiesRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListPropertiesMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.ListPropertiesResponse listProperties( + com.google.analytics.admin.v1alpha.ListPropertiesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListPropertiesMethod(), getCallOptions(), request); } /** @@ -3615,13 +6324,10 @@ public void listProperties( * Creates an "GA4" property with the specified location and attributes. * */ - public void createProperty( - com.google.analytics.admin.v1alpha.CreatePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreatePropertyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.Property createProperty( + com.google.analytics.admin.v1alpha.CreatePropertyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreatePropertyMethod(), getCallOptions(), request); } /** @@ -3638,13 +6344,10 @@ public void createProperty( * Returns an error if the target is not found, or is not an GA4 Property. * */ - public void deleteProperty( - com.google.analytics.admin.v1alpha.DeletePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeletePropertyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.Property deleteProperty( + com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeletePropertyMethod(), getCallOptions(), request); } /** @@ -3654,13 +6357,10 @@ public void deleteProperty( * Updates a property. * */ - public void updateProperty( - com.google.analytics.admin.v1alpha.UpdatePropertyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdatePropertyMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.Property updateProperty( + com.google.analytics.admin.v1alpha.UpdatePropertyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdatePropertyMethod(), getCallOptions(), request); } /** @@ -3670,13 +6370,10 @@ public void updateProperty( * Gets information about a user's link to an account or property. * */ - public void getUserLink( - com.google.analytics.admin.v1alpha.GetUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetUserLinkMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.UserLink getUserLink( + com.google.analytics.admin.v1alpha.GetUserLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetUserLinkMethod(), getCallOptions(), request); } /** @@ -3686,14 +6383,10 @@ public void getUserLink( * Gets information about multiple users' links to an account or property. * */ - public void batchGetUserLinks( - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchGetUserLinksMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse batchGetUserLinks( + com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchGetUserLinksMethod(), getCallOptions(), request); } /** @@ -3703,14 +6396,10 @@ public void batchGetUserLinks( * Lists all user links on an account or property. * */ - public void listUserLinks( - com.google.analytics.admin.v1alpha.ListUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListUserLinksMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.ListUserLinksResponse listUserLinks( + com.google.analytics.admin.v1alpha.ListUserLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListUserLinksMethod(), getCallOptions(), request); } /** @@ -3727,14 +6416,10 @@ public void listUserLinks( * UIs. * */ - public void auditUserLinks( - com.google.analytics.admin.v1alpha.AuditUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getAuditUserLinksMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.AuditUserLinksResponse auditUserLinks( + com.google.analytics.admin.v1alpha.AuditUserLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAuditUserLinksMethod(), getCallOptions(), request); } /** @@ -3747,13 +6432,10 @@ public void auditUserLinks( * with the permissions specified in the new UserLink. * */ - public void createUserLink( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateUserLinkMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.UserLink createUserLink( + com.google.analytics.admin.v1alpha.CreateUserLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateUserLinkMethod(), getCallOptions(), request); } /** @@ -3765,14 +6447,10 @@ public void createUserLink( * the UserLinks will be created. * */ - public void batchCreateUserLinks( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchCreateUserLinksMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse batchCreateUserLinks( + com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchCreateUserLinksMethod(), getCallOptions(), request); } /** @@ -3782,13 +6460,10 @@ public void batchCreateUserLinks( * Updates a user link on an account or property. * */ - public void updateUserLink( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateUserLinkMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.UserLink updateUserLink( + com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateUserLinkMethod(), getCallOptions(), request); } /** @@ -3798,14 +6473,10 @@ public void updateUserLink( * Updates information about multiple users' links to an account or property. * */ - public void batchUpdateUserLinks( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchUpdateUserLinksMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse batchUpdateUserLinks( + com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchUpdateUserLinksMethod(), getCallOptions(), request); } /** @@ -3815,13 +6486,10 @@ public void batchUpdateUserLinks( * Deletes a user link on an account or property. * */ - public void deleteUserLink( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteUserLinkMethod(), getCallOptions()), - request, - responseObserver); + public com.google.protobuf.Empty deleteUserLink( + com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteUserLinkMethod(), getCallOptions(), request); } /** @@ -3831,13 +6499,10 @@ public void deleteUserLink( * Deletes information about multiple users' links to an account or property. * */ - public void batchDeleteUserLinks( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getBatchDeleteUserLinksMethod(), getCallOptions()), - request, - responseObserver); + public com.google.protobuf.Empty batchDeleteUserLinks( + com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getBatchDeleteUserLinksMethod(), getCallOptions(), request); } /** @@ -3847,14 +6512,10 @@ public void batchDeleteUserLinks( * Lookup for a single WebDataStream * */ - public void getWebDataStream( - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetWebDataStreamMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream( + com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetWebDataStreamMethod(), getCallOptions(), request); } /** @@ -3864,13 +6525,10 @@ public void getWebDataStream( * Deletes a web stream on a property. * */ - public void deleteWebDataStream( - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteWebDataStreamMethod(), getCallOptions()), - request, - responseObserver); + public com.google.protobuf.Empty deleteWebDataStream( + com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteWebDataStreamMethod(), getCallOptions(), request); } /** @@ -3880,14 +6538,10 @@ public void deleteWebDataStream( * Updates a web stream on a property. * */ - public void updateWebDataStream( - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateWebDataStreamMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.WebDataStream updateWebDataStream( + com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateWebDataStreamMethod(), getCallOptions(), request); } /** @@ -3897,14 +6551,10 @@ public void updateWebDataStream( * Creates a web stream with the specified location and attributes. * */ - public void createWebDataStream( - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateWebDataStreamMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.WebDataStream createWebDataStream( + com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateWebDataStreamMethod(), getCallOptions(), request); } /** @@ -3916,14 +6566,10 @@ public void createWebDataStream( * Returns an empty list if no relevant web data streams are found. * */ - public void listWebDataStreams( - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListWebDataStreamsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse listWebDataStreams( + com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListWebDataStreamsMethod(), getCallOptions(), request); } /** @@ -3933,14 +6579,10 @@ public void listWebDataStreams( * Lookup for a single IosAppDataStream * */ - public void getIosAppDataStream( - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIosAppDataStreamMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream( + com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetIosAppDataStreamMethod(), getCallOptions(), request); } /** @@ -3950,13 +6592,10 @@ public void getIosAppDataStream( * Deletes an iOS app stream on a property. * */ - public void deleteIosAppDataStream( - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteIosAppDataStreamMethod(), getCallOptions()), - request, - responseObserver); + public com.google.protobuf.Empty deleteIosAppDataStream( + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteIosAppDataStreamMethod(), getCallOptions(), request); } /** @@ -3966,14 +6605,10 @@ public void deleteIosAppDataStream( * Updates an iOS app stream on a property. * */ - public void updateIosAppDataStream( - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateIosAppDataStreamMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.IosAppDataStream updateIosAppDataStream( + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateIosAppDataStreamMethod(), getCallOptions(), request); } /** @@ -3985,15 +6620,10 @@ public void updateIosAppDataStream( * Returns an empty list if no relevant iOS app data streams are found. * */ - public void listIosAppDataStreams( - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request, - io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListIosAppDataStreamsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse listIosAppDataStreams( + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListIosAppDataStreamsMethod(), getCallOptions(), request); } /** @@ -4003,14 +6633,10 @@ public void listIosAppDataStreams( * Lookup for a single AndroidAppDataStream * */ - public void getAndroidAppDataStream( - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetAndroidAppDataStreamMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream( + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAndroidAppDataStreamMethod(), getCallOptions(), request); } /** @@ -4020,13 +6646,10 @@ public void getAndroidAppDataStream( * Deletes an android app stream on a property. * */ - public void deleteAndroidAppDataStream( - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteAndroidAppDataStreamMethod(), getCallOptions()), - request, - responseObserver); + public com.google.protobuf.Empty deleteAndroidAppDataStream( + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAndroidAppDataStreamMethod(), getCallOptions(), request); } /** @@ -4036,14 +6659,10 @@ public void deleteAndroidAppDataStream( * Updates an android app stream on a property. * */ - public void updateAndroidAppDataStream( - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateAndroidAppDataStreamMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.AndroidAppDataStream updateAndroidAppDataStream( + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAndroidAppDataStreamMethod(), getCallOptions(), request); } /** @@ -4055,15 +6674,11 @@ public void updateAndroidAppDataStream( * Returns an empty list if no relevant android app streams are found. * */ - public void listAndroidAppDataStreams( - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request, - io.grpc.stub.StreamObserver< - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListAndroidAppDataStreamsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse + listAndroidAppDataStreams( + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAndroidAppDataStreamsMethod(), getCallOptions(), request); } /** @@ -4075,14 +6690,11 @@ public void listAndroidAppDataStreams( * take effect. * */ - public void getEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetEnhancedMeasurementSettingsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + getEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetEnhancedMeasurementSettingsMethod(), getCallOptions(), request); } /** @@ -4094,14 +6706,11 @@ public void getEnhancedMeasurementSettings( * take effect. * */ - public void updateEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings + updateEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions(), request); } /** @@ -4112,14 +6721,10 @@ public void updateEnhancedMeasurementSettings( * Properties can have at most one FirebaseLink. * */ - public void createFirebaseLink( - com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateFirebaseLinkMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.FirebaseLink createFirebaseLink( + com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateFirebaseLinkMethod(), getCallOptions(), request); } /** @@ -4129,1591 +6734,1458 @@ public void createFirebaseLink( * 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); - } - - /** - * - * - *
-     * Deletes a FirebaseLink on a property
-     * 
- */ - public void deleteFirebaseLink( - com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteFirebaseLinkMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Lists FirebaseLinks on a property.
-     * Properties can have at most one FirebaseLink.
-     * 
- */ - public void listFirebaseLinks( - com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListFirebaseLinksMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Returns the Site Tag for the specified web stream.
-     * Site Tags are immutable singletons.
-     * 
- */ - public void getGlobalSiteTag( - com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetGlobalSiteTagMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Creates a GoogleAdsLink.
-     * 
- */ - public void createGoogleAdsLink( - com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateGoogleAdsLinkMethod(), getCallOptions()), - request, - responseObserver); - } - - /** - * - * - *
-     * Updates a GoogleAdsLink on a property
-     * 
- */ - public void updateGoogleAdsLink( - com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateGoogleAdsLinkMethod(), getCallOptions()), - request, - responseObserver); + 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); } /** * * *
-     * Deletes a GoogleAdsLink on a property
-     * 
- */ - public void deleteGoogleAdsLink( - com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteGoogleAdsLinkMethod(), getCallOptions()), - request, - responseObserver); + * Deletes a FirebaseLink on a property + * + */ + public com.google.protobuf.Empty deleteFirebaseLink( + com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteFirebaseLinkMethod(), getCallOptions(), request); } /** * * *
-     * Lists GoogleAdsLinks on a property.
+     * Lists FirebaseLinks on a property.
+     * Properties can have at most one FirebaseLink.
      * 
*/ - public void listGoogleAdsLinks( - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListGoogleAdsLinksMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse listFirebaseLinks( + com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListFirebaseLinksMethod(), getCallOptions(), request); } /** * * *
-     * Get data sharing settings on an account.
-     * Data sharing settings are singletons.
+     * Returns the Site Tag for the specified web stream.
+     * Site Tags are immutable singletons.
      * 
*/ - public void getDataSharingSettings( - com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request, - io.grpc.stub.StreamObserver - responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetDataSharingSettingsMethod(), getCallOptions()), - request, - responseObserver); + public com.google.analytics.admin.v1alpha.GlobalSiteTag getGlobalSiteTag( + com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetGlobalSiteTagMethod(), getCallOptions(), request); } /** * * *
-     * Searches through all changes to an account or its children given the
-     * specified set of filters.
+     * Creates a GoogleAdsLink.
      * 
*/ - 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); - } - } - - /** - * - * - *
-   * Service Interface for the Analytics Admin API (GA4).
-   * 
- */ - public static final class AnalyticsAdminServiceBlockingStub - extends io.grpc.stub.AbstractBlockingStub { - private AnalyticsAdminServiceBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AnalyticsAdminServiceBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceBlockingStub(channel, callOptions); + public com.google.analytics.admin.v1alpha.GoogleAdsLink createGoogleAdsLink( + com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateGoogleAdsLinkMethod(), getCallOptions(), request); } /** * * *
-     * Lookup for a single Account.
+     * Updates a GoogleAdsLink on a property
      * 
*/ - public com.google.analytics.admin.v1alpha.Account getAccount( - com.google.analytics.admin.v1alpha.GetAccountRequest request) { + public com.google.analytics.admin.v1alpha.GoogleAdsLink updateGoogleAdsLink( + com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAccountMethod(), getCallOptions(), request); + getChannel(), getUpdateGoogleAdsLinkMethod(), getCallOptions(), request); } /** * * *
-     * Returns all accounts accessible by the caller.
-     * Note that these accounts might not currently have GA4 properties.
-     * Soft-deleted (ie: "trashed") accounts are excluded by default.
-     * Returns an empty list if no relevant accounts are found.
+     * Deletes a GoogleAdsLink on a property
      * 
*/ - public com.google.analytics.admin.v1alpha.ListAccountsResponse listAccounts( - com.google.analytics.admin.v1alpha.ListAccountsRequest request) { + public com.google.protobuf.Empty deleteGoogleAdsLink( + com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAccountsMethod(), getCallOptions(), request); + getChannel(), getDeleteGoogleAdsLinkMethod(), getCallOptions(), request); } /** * * *
-     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted accounts.
-     * However, they can be restored using the Trash Can UI.
-     * If the accounts are not restored before the expiration time, the account
-     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
-     * UserLinks) will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found.
+     * Lists GoogleAdsLinks on a property.
      * 
*/ - public com.google.protobuf.Empty deleteAccount( - com.google.analytics.admin.v1alpha.DeleteAccountRequest request) { + public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse listGoogleAdsLinks( + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAccountMethod(), getCallOptions(), request); + getChannel(), getListGoogleAdsLinksMethod(), getCallOptions(), request); } /** * * *
-     * Updates an account.
+     * Get data sharing settings on an account.
+     * Data sharing settings are singletons.
      * 
*/ - public com.google.analytics.admin.v1alpha.Account updateAccount( - com.google.analytics.admin.v1alpha.UpdateAccountRequest request) { + public com.google.analytics.admin.v1alpha.DataSharingSettings getDataSharingSettings( + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAccountMethod(), getCallOptions(), request); + getChannel(), getGetDataSharingSettingsMethod(), getCallOptions(), request); } /** * * *
-     * Requests a ticket for creating an account.
+     * Lookup for a single "GA4" MeasurementProtocolSecret.
      * 
*/ - public com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse provisionAccountTicket( - com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request) { + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getProvisionAccountTicketMethod(), getCallOptions(), request); + getChannel(), getGetMeasurementProtocolSecretMethod(), getCallOptions(), request); } /** * * *
-     * Returns summaries of all accounts accessible by the caller.
+     * Returns child MeasurementProtocolSecrets under the specified parent
+     * Property.
      * 
*/ - public com.google.analytics.admin.v1alpha.ListAccountSummariesResponse listAccountSummaries( - com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request) { + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + listMeasurementProtocolSecrets( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAccountSummariesMethod(), getCallOptions(), request); + getChannel(), getListMeasurementProtocolSecretsMethod(), getCallOptions(), request); } /** * * *
-     * Lookup for a single "GA4" Property.
+     * Creates a measurement protocol secret.
      * 
*/ - public com.google.analytics.admin.v1alpha.Property getProperty( - com.google.analytics.admin.v1alpha.GetPropertyRequest request) { + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + createMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetPropertyMethod(), getCallOptions(), request); + getChannel(), getCreateMeasurementProtocolSecretMethod(), getCallOptions(), request); } /** * * *
-     * Returns child Properties under the specified parent Account.
-     * Only "GA4" properties will be returned.
-     * Properties will be excluded if the caller does not have access.
-     * Soft-deleted (ie: "trashed") properties are excluded by default.
-     * Returns an empty list if no relevant properties are found.
+     * Deletes target MeasurementProtocolSecret.
      * 
*/ - public com.google.analytics.admin.v1alpha.ListPropertiesResponse listProperties( - com.google.analytics.admin.v1alpha.ListPropertiesRequest request) { + public com.google.protobuf.Empty deleteMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListPropertiesMethod(), getCallOptions(), request); + getChannel(), getDeleteMeasurementProtocolSecretMethod(), getCallOptions(), request); } /** * * *
-     * Creates an "GA4" property with the specified location and attributes.
+     * Updates a measurement protocol secret.
      * 
*/ - public com.google.analytics.admin.v1alpha.Property createProperty( - com.google.analytics.admin.v1alpha.CreatePropertyRequest request) { + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + updateMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreatePropertyMethod(), getCallOptions(), request); + getChannel(), getUpdateMeasurementProtocolSecretMethod(), getCallOptions(), request); } /** * * *
-     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted properties.
-     * However, they can be restored using the Trash Can UI.
-     * If the properties are not restored before the expiration time, the Property
-     * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks)
-     * will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found, or is not an GA4 Property.
+     * Searches through all changes to an account or its children given the
+     * specified set of filters.
      * 
*/ - public com.google.analytics.admin.v1alpha.Property deleteProperty( - com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { + public com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse + searchChangeHistoryEvents( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeletePropertyMethod(), getCallOptions(), request); + getChannel(), getSearchChangeHistoryEventsMethod(), getCallOptions(), request); } /** * * *
-     * Updates a property.
+     * Lookup for Google Signals settings for a property.
      * 
*/ - public com.google.analytics.admin.v1alpha.Property updateProperty( - com.google.analytics.admin.v1alpha.UpdatePropertyRequest request) { + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdatePropertyMethod(), getCallOptions(), request); + getChannel(), getGetGoogleSignalsSettingsMethod(), getCallOptions(), request); } /** * * *
-     * Gets information about a user's link to an account or property.
+     * Updates Google Signals settings for a property.
      * 
*/ - public com.google.analytics.admin.v1alpha.UserLink getUserLink( - com.google.analytics.admin.v1alpha.GetUserLinkRequest request) { + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings updateGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetUserLinkMethod(), getCallOptions(), request); + getChannel(), getUpdateGoogleSignalsSettingsMethod(), getCallOptions(), request); } /** * * *
-     * Gets information about multiple users' links to an account or property.
+     * Creates a conversion event with the specified attributes.
      * 
*/ - public com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse batchGetUserLinks( - com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request) { + public com.google.analytics.admin.v1alpha.ConversionEvent createConversionEvent( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchGetUserLinksMethod(), getCallOptions(), request); + getChannel(), getCreateConversionEventMethod(), getCallOptions(), request); } /** * * *
-     * Lists all user links on an account or property.
+     * Retrieve a single conversion event.
      * 
*/ - public com.google.analytics.admin.v1alpha.ListUserLinksResponse listUserLinks( - com.google.analytics.admin.v1alpha.ListUserLinksRequest request) { + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent( + com.google.analytics.admin.v1alpha.GetConversionEventRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListUserLinksMethod(), getCallOptions(), request); + getChannel(), getGetConversionEventMethod(), getCallOptions(), request); } /** * * *
-     * Lists all user links on an account or property, including implicit ones
-     * that come from effective permissions granted by groups or organization
-     * admin roles.
-     * If a returned user link does not have direct permissions, they cannot
-     * be removed from the account or property directly with the DeleteUserLink
-     * command. They have to be removed from the group/etc that gives them
-     * permissions, which is currently only usable/discoverable in the GA or GMP
-     * UIs.
+     * Deletes a conversion event in a property.
      * 
*/ - public com.google.analytics.admin.v1alpha.AuditUserLinksResponse auditUserLinks( - com.google.analytics.admin.v1alpha.AuditUserLinksRequest request) { + public com.google.protobuf.Empty deleteConversionEvent( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getAuditUserLinksMethod(), getCallOptions(), request); + getChannel(), getDeleteConversionEventMethod(), getCallOptions(), request); } /** * * *
-     * Creates a user link on an account or property.
-     * If the user with the specified email already has permissions on the
-     * account or property, then the user's existing permissions will be unioned
-     * with the permissions specified in the new UserLink.
+     * 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.UserLink createUserLink( - com.google.analytics.admin.v1alpha.CreateUserLinkRequest request) { + public com.google.analytics.admin.v1alpha.ListConversionEventsResponse listConversionEvents( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateUserLinkMethod(), getCallOptions(), request); + getChannel(), getListConversionEventsMethod(), getCallOptions(), request); } /** * * *
-     * Creates information about multiple users' links to an account or property.
-     * This method is transactional. If any UserLink cannot be created, none of
-     * the UserLinks will be created.
+     * Creates a CustomDimension.
      * 
*/ - public com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse batchCreateUserLinks( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request) { + public com.google.analytics.admin.v1alpha.CustomDimension createCustomDimension( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchCreateUserLinksMethod(), getCallOptions(), request); + getChannel(), getCreateCustomDimensionMethod(), getCallOptions(), request); } /** * * *
-     * Updates a user link on an account or property.
+     * Updates a CustomDimension on a property.
      * 
*/ - public com.google.analytics.admin.v1alpha.UserLink updateUserLink( - com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request) { + public com.google.analytics.admin.v1alpha.CustomDimension updateCustomDimension( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateUserLinkMethod(), getCallOptions(), request); + getChannel(), getUpdateCustomDimensionMethod(), getCallOptions(), request); } /** * * *
-     * Updates information about multiple users' links to an account or property.
+     * Lists CustomDimensions on a property.
      * 
*/ - public com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse batchUpdateUserLinks( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request) { + public com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse listCustomDimensions( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchUpdateUserLinksMethod(), getCallOptions(), request); + getChannel(), getListCustomDimensionsMethod(), getCallOptions(), request); } /** * * *
-     * Deletes a user link on an account or property.
+     * Archives a CustomDimension on a property.
      * 
*/ - public com.google.protobuf.Empty deleteUserLink( - com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request) { + public com.google.protobuf.Empty archiveCustomDimension( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteUserLinkMethod(), getCallOptions(), request); + getChannel(), getArchiveCustomDimensionMethod(), getCallOptions(), request); } /** * * *
-     * Deletes information about multiple users' links to an account or property.
+     * Lookup for a single CustomDimension.
      * 
*/ - public com.google.protobuf.Empty batchDeleteUserLinks( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request) { + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension( + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getBatchDeleteUserLinksMethod(), getCallOptions(), request); + getChannel(), getGetCustomDimensionMethod(), getCallOptions(), request); } /** * * *
-     * Lookup for a single WebDataStream
+     * Creates a CustomMetric.
      * 
*/ - public com.google.analytics.admin.v1alpha.WebDataStream getWebDataStream( - com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request) { + public com.google.analytics.admin.v1alpha.CustomMetric createCustomMetric( + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetWebDataStreamMethod(), getCallOptions(), request); + getChannel(), getCreateCustomMetricMethod(), getCallOptions(), request); } /** * * *
-     * Deletes a web stream on a property.
+     * Updates a CustomMetric on a property.
      * 
*/ - public com.google.protobuf.Empty deleteWebDataStream( - com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request) { + public com.google.analytics.admin.v1alpha.CustomMetric updateCustomMetric( + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteWebDataStreamMethod(), getCallOptions(), request); + getChannel(), getUpdateCustomMetricMethod(), getCallOptions(), request); } /** * * *
-     * Updates a web stream on a property.
+     * Lists CustomMetrics on a property.
      * 
*/ - public com.google.analytics.admin.v1alpha.WebDataStream updateWebDataStream( - com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request) { + public com.google.analytics.admin.v1alpha.ListCustomMetricsResponse listCustomMetrics( + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateWebDataStreamMethod(), getCallOptions(), request); + getChannel(), getListCustomMetricsMethod(), getCallOptions(), request); } /** * * *
-     * Creates a web stream with the specified location and attributes.
+     * Archives a CustomMetric on a property.
      * 
*/ - public com.google.analytics.admin.v1alpha.WebDataStream createWebDataStream( - com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request) { + public com.google.protobuf.Empty archiveCustomMetric( + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateWebDataStreamMethod(), getCallOptions(), request); + getChannel(), getArchiveCustomMetricMethod(), getCallOptions(), request); } /** * * *
-     * Returns child web data streams under the specified parent property.
-     * Web data streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant web data streams are found.
+     * Lookup for a single CustomMetric.
      * 
*/ - public com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse listWebDataStreams( - com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request) { + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric( + com.google.analytics.admin.v1alpha.GetCustomMetricRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListWebDataStreamsMethod(), getCallOptions(), request); + getChannel(), getGetCustomMetricMethod(), getCallOptions(), request); + } + } + + /** + * + * + *
+   * Service Interface for the Analytics Admin API (GA4).
+   * 
+ */ + public static final class AnalyticsAdminServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AnalyticsAdminServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AnalyticsAdminServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AnalyticsAdminServiceFutureStub(channel, callOptions); } /** * * *
-     * Lookup for a single IosAppDataStream
+     * Lookup for a single Account.
      * 
*/ - public com.google.analytics.admin.v1alpha.IosAppDataStream getIosAppDataStream( - com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIosAppDataStreamMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Account> + getAccount(com.google.analytics.admin.v1alpha.GetAccountRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAccountMethod(), getCallOptions()), request); } /** * * *
-     * Deletes an iOS app stream on a property.
+     * Returns all accounts accessible by the caller.
+     * Note that these accounts might not currently have GA4 properties.
+     * Soft-deleted (ie: "trashed") accounts are excluded by default.
+     * Returns an empty list if no relevant accounts are found.
      * 
*/ - public com.google.protobuf.Empty deleteIosAppDataStream( - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteIosAppDataStreamMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListAccountsResponse> + listAccounts(com.google.analytics.admin.v1alpha.ListAccountsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAccountsMethod(), getCallOptions()), request); } /** * * *
-     * Updates an iOS app stream on a property.
+     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted accounts.
+     * However, they can be restored using the Trash Can UI.
+     * If the accounts are not restored before the expiration time, the account
+     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
+     * UserLinks) will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found.
      * 
*/ - public com.google.analytics.admin.v1alpha.IosAppDataStream updateIosAppDataStream( - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateIosAppDataStreamMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteAccount(com.google.analytics.admin.v1alpha.DeleteAccountRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAccountMethod(), getCallOptions()), request); } /** * * *
-     * Returns child iOS app data streams under the specified parent property.
-     * iOS app data streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant iOS app data streams are found.
+     * Updates an account.
      * 
*/ - public com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse listIosAppDataStreams( - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListIosAppDataStreamsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Account> + updateAccount(com.google.analytics.admin.v1alpha.UpdateAccountRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAccountMethod(), getCallOptions()), request); } /** * * *
-     * Lookup for a single AndroidAppDataStream
+     * Requests a ticket for creating an account.
      * 
*/ - public com.google.analytics.admin.v1alpha.AndroidAppDataStream getAndroidAppDataStream( - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetAndroidAppDataStreamMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse> + provisionAccountTicket( + com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getProvisionAccountTicketMethod(), getCallOptions()), request); } /** * * *
-     * Deletes an android app stream on a property.
+     * Returns summaries of all accounts accessible by the caller.
      * 
*/ - public com.google.protobuf.Empty deleteAndroidAppDataStream( - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteAndroidAppDataStreamMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListAccountSummariesResponse> + listAccountSummaries( + com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAccountSummariesMethod(), getCallOptions()), request); } /** * * *
-     * Updates an android app stream on a property.
+     * Lookup for a single "GA4" Property.
      * 
*/ - public com.google.analytics.admin.v1alpha.AndroidAppDataStream updateAndroidAppDataStream( - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateAndroidAppDataStreamMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Property> + getProperty(com.google.analytics.admin.v1alpha.GetPropertyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetPropertyMethod(), getCallOptions()), request); } /** * * *
-     * Returns child android app streams under the specified parent property.
-     * Android app streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant android app streams are found.
+     * Returns child Properties under the specified parent Account.
+     * Only "GA4" properties will be returned.
+     * Properties will be excluded if the caller does not have access.
+     * Soft-deleted (ie: "trashed") properties are excluded by default.
+     * Returns an empty list if no relevant properties are found.
      * 
*/ - public com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse - listAndroidAppDataStreams( - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListAndroidAppDataStreamsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListPropertiesResponse> + listProperties(com.google.analytics.admin.v1alpha.ListPropertiesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListPropertiesMethod(), getCallOptions()), request); } /** * * *
-     * Returns the singleton enhanced measurement settings for this web stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
+     * Creates an "GA4" property with the specified location and attributes.
      * 
*/ - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings - getEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetEnhancedMeasurementSettingsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Property> + createProperty(com.google.analytics.admin.v1alpha.CreatePropertyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreatePropertyMethod(), getCallOptions()), request); } /** * * *
-     * Updates the singleton enhanced measurement settings for this web stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
+     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
+     * This API does not have a method to restore soft-deleted properties.
+     * However, they can be restored using the Trash Can UI.
+     * If the properties are not restored before the expiration time, the Property
+     * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks)
+     * will be permanently purged.
+     * https://support.google.com/analytics/answer/6154772
+     * Returns an error if the target is not found, or is not an GA4 Property.
      * 
*/ - public com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings - updateEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Property> + deleteProperty(com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeletePropertyMethod(), getCallOptions()), request); } /** * * *
-     * Creates a FirebaseLink.
-     * Properties can have at most one FirebaseLink.
+     * Updates a property.
      * 
*/ - public com.google.analytics.admin.v1alpha.FirebaseLink createFirebaseLink( - com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateFirebaseLinkMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.Property> + updateProperty(com.google.analytics.admin.v1alpha.UpdatePropertyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdatePropertyMethod(), getCallOptions()), request); } /** * * *
-     * Updates a FirebaseLink on a property
+     * Gets information about a user's link to an account or 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); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.UserLink> + getUserLink(com.google.analytics.admin.v1alpha.GetUserLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetUserLinkMethod(), getCallOptions()), request); } /** * * *
-     * Deletes a FirebaseLink on a property
+     * Gets information about multiple users' links to an account or property.
      * 
*/ - public com.google.protobuf.Empty deleteFirebaseLink( - com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteFirebaseLinkMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse> + batchGetUserLinks(com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchGetUserLinksMethod(), getCallOptions()), request); } /** * * *
-     * Lists FirebaseLinks on a property.
-     * Properties can have at most one FirebaseLink.
+     * Lists all user links on an account or property.
      * 
*/ - public com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse listFirebaseLinks( - com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListFirebaseLinksMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.ListUserLinksResponse> + listUserLinks(com.google.analytics.admin.v1alpha.ListUserLinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListUserLinksMethod(), getCallOptions()), request); } /** * * *
-     * Returns the Site Tag for the specified web stream.
-     * Site Tags are immutable singletons.
+     * Lists all user links on an account or property, including implicit ones
+     * that come from effective permissions granted by groups or organization
+     * admin roles.
+     * If a returned user link does not have direct permissions, they cannot
+     * be removed from the account or property directly with the DeleteUserLink
+     * command. They have to be removed from the group/etc that gives them
+     * permissions, which is currently only usable/discoverable in the GA or GMP
+     * UIs.
      * 
*/ - public com.google.analytics.admin.v1alpha.GlobalSiteTag getGlobalSiteTag( - com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetGlobalSiteTagMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.AuditUserLinksResponse> + auditUserLinks(com.google.analytics.admin.v1alpha.AuditUserLinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAuditUserLinksMethod(), getCallOptions()), request); } /** * * *
-     * Creates a GoogleAdsLink.
+     * Creates a user link on an account or property.
+     * If the user with the specified email already has permissions on the
+     * account or property, then the user's existing permissions will be unioned
+     * with the permissions specified in the new UserLink.
      * 
*/ - public com.google.analytics.admin.v1alpha.GoogleAdsLink createGoogleAdsLink( - com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateGoogleAdsLinkMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.UserLink> + createUserLink(com.google.analytics.admin.v1alpha.CreateUserLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateUserLinkMethod(), getCallOptions()), request); } /** * * *
-     * Updates a GoogleAdsLink on a property
+     * Creates information about multiple users' links to an account or property.
+     * This method is transactional. If any UserLink cannot be created, none of
+     * the UserLinks will be created.
      * 
*/ - public com.google.analytics.admin.v1alpha.GoogleAdsLink updateGoogleAdsLink( - com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateGoogleAdsLinkMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse> + batchCreateUserLinks( + com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchCreateUserLinksMethod(), getCallOptions()), request); } /** * * *
-     * Deletes a GoogleAdsLink on a property
+     * Updates a user link on an account or property.
      * 
*/ - public com.google.protobuf.Empty deleteGoogleAdsLink( - com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteGoogleAdsLinkMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.UserLink> + updateUserLink(com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateUserLinkMethod(), getCallOptions()), request); } /** * * *
-     * Lists GoogleAdsLinks on a property.
+     * Updates information about multiple users' links to an account or property.
      * 
- */ - public com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse listGoogleAdsLinks( - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListGoogleAdsLinksMethod(), getCallOptions(), request); + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse> + batchUpdateUserLinks( + com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchUpdateUserLinksMethod(), getCallOptions()), request); } /** * * *
-     * Get data sharing settings on an account.
-     * Data sharing settings are singletons.
+     * Deletes a user link on an account or property.
      * 
*/ - public com.google.analytics.admin.v1alpha.DataSharingSettings getDataSharingSettings( - com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetDataSharingSettingsMethod(), getCallOptions(), request); + public com.google.common.util.concurrent.ListenableFuture + deleteUserLink(com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteUserLinkMethod(), getCallOptions()), request); } /** * * *
-     * Searches through all changes to an account or its children given the
-     * specified set of filters.
+     * Deletes information about multiple users' links to an account or property.
      * 
*/ - 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); - } - } - - /** - * - * - *
-   * Service Interface for the Analytics Admin API (GA4).
-   * 
- */ - public static final class AnalyticsAdminServiceFutureStub - extends io.grpc.stub.AbstractFutureStub { - private AnalyticsAdminServiceFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected AnalyticsAdminServiceFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new AnalyticsAdminServiceFutureStub(channel, callOptions); + public com.google.common.util.concurrent.ListenableFuture + batchDeleteUserLinks( + com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getBatchDeleteUserLinksMethod(), getCallOptions()), request); } /** * * *
-     * Lookup for a single Account.
+     * Lookup for a single WebDataStream
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.Account> - getAccount(com.google.analytics.admin.v1alpha.GetAccountRequest request) { + com.google.analytics.admin.v1alpha.WebDataStream> + getWebDataStream(com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAccountMethod(), getCallOptions()), request); + getChannel().newCall(getGetWebDataStreamMethod(), getCallOptions()), request); } /** * * *
-     * Returns all accounts accessible by the caller.
-     * Note that these accounts might not currently have GA4 properties.
-     * Soft-deleted (ie: "trashed") accounts are excluded by default.
-     * Returns an empty list if no relevant accounts are found.
+     * Deletes a web stream on a property.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ListAccountsResponse> - listAccounts(com.google.analytics.admin.v1alpha.ListAccountsRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteWebDataStream(com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAccountsMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteWebDataStreamMethod(), getCallOptions()), request); } /** * * *
-     * Marks target Account as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted accounts.
-     * However, they can be restored using the Trash Can UI.
-     * If the accounts are not restored before the expiration time, the account
-     * and all child resources (eg: Properties, GoogleAdsLinks, Streams,
-     * UserLinks) will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found.
+     * Updates a web stream on a property.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteAccount(com.google.analytics.admin.v1alpha.DeleteAccountRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.WebDataStream> + updateWebDataStream(com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAccountMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateWebDataStreamMethod(), getCallOptions()), request); } /** * * *
-     * Updates an account.
+     * Creates a web stream with the specified location and attributes.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.Account> - updateAccount(com.google.analytics.admin.v1alpha.UpdateAccountRequest request) { + com.google.analytics.admin.v1alpha.WebDataStream> + createWebDataStream(com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateAccountMethod(), getCallOptions()), request); + getChannel().newCall(getCreateWebDataStreamMethod(), getCallOptions()), request); } /** * * *
-     * Requests a ticket for creating an account.
+     * Returns child web data streams under the specified parent property.
+     * Web data streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant web data streams are found.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ProvisionAccountTicketResponse> - provisionAccountTicket( - com.google.analytics.admin.v1alpha.ProvisionAccountTicketRequest request) { + com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse> + listWebDataStreams(com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getProvisionAccountTicketMethod(), getCallOptions()), request); + getChannel().newCall(getListWebDataStreamsMethod(), getCallOptions()), request); } /** * * *
-     * Returns summaries of all accounts accessible by the caller.
+     * Lookup for a single IosAppDataStream
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ListAccountSummariesResponse> - listAccountSummaries( - com.google.analytics.admin.v1alpha.ListAccountSummariesRequest request) { + com.google.analytics.admin.v1alpha.IosAppDataStream> + getIosAppDataStream(com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAccountSummariesMethod(), getCallOptions()), request); + getChannel().newCall(getGetIosAppDataStreamMethod(), getCallOptions()), request); } /** * * *
-     * Lookup for a single "GA4" Property.
+     * Deletes an iOS app stream on a property.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.Property> - getProperty(com.google.analytics.admin.v1alpha.GetPropertyRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteIosAppDataStream( + com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetPropertyMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteIosAppDataStreamMethod(), getCallOptions()), request); } /** * * *
-     * Returns child Properties under the specified parent Account.
-     * Only "GA4" properties will be returned.
-     * Properties will be excluded if the caller does not have access.
-     * Soft-deleted (ie: "trashed") properties are excluded by default.
-     * Returns an empty list if no relevant properties are found.
+     * Updates an iOS app stream on a property.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ListPropertiesResponse> - listProperties(com.google.analytics.admin.v1alpha.ListPropertiesRequest request) { + com.google.analytics.admin.v1alpha.IosAppDataStream> + updateIosAppDataStream( + com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListPropertiesMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateIosAppDataStreamMethod(), getCallOptions()), request); } /** * * *
-     * Creates an "GA4" property with the specified location and attributes.
+     * Returns child iOS app data streams under the specified parent property.
+     * iOS app data streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant iOS app data streams are found.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.Property> - createProperty(com.google.analytics.admin.v1alpha.CreatePropertyRequest request) { + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> + listIosAppDataStreams( + com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreatePropertyMethod(), getCallOptions()), request); + getChannel().newCall(getListIosAppDataStreamsMethod(), getCallOptions()), request); } /** * * *
-     * Marks target Property as soft-deleted (ie: "trashed") and returns it.
-     * This API does not have a method to restore soft-deleted properties.
-     * However, they can be restored using the Trash Can UI.
-     * If the properties are not restored before the expiration time, the Property
-     * and all child resources (eg: GoogleAdsLinks, Streams, UserLinks)
-     * will be permanently purged.
-     * https://support.google.com/analytics/answer/6154772
-     * Returns an error if the target is not found, or is not an GA4 Property.
+     * Lookup for a single AndroidAppDataStream
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.Property> - deleteProperty(com.google.analytics.admin.v1alpha.DeletePropertyRequest request) { + com.google.analytics.admin.v1alpha.AndroidAppDataStream> + getAndroidAppDataStream( + com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeletePropertyMethod(), getCallOptions()), request); + getChannel().newCall(getGetAndroidAppDataStreamMethod(), getCallOptions()), request); } /** * * *
-     * Updates a property.
+     * Deletes an android app stream on a property.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.Property> - updateProperty(com.google.analytics.admin.v1alpha.UpdatePropertyRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteAndroidAppDataStream( + com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdatePropertyMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteAndroidAppDataStreamMethod(), getCallOptions()), request); } /** * * *
-     * Gets information about a user's link to an account or property.
+     * Updates an android app stream on a property.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.UserLink> - getUserLink(com.google.analytics.admin.v1alpha.GetUserLinkRequest request) { + com.google.analytics.admin.v1alpha.AndroidAppDataStream> + updateAndroidAppDataStream( + com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetUserLinkMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateAndroidAppDataStreamMethod(), getCallOptions()), request); } /** * * *
-     * Gets information about multiple users' links to an account or property.
+     * Returns child android app streams under the specified parent property.
+     * Android app streams will be excluded if the caller does not have access.
+     * Returns an empty list if no relevant android app streams are found.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.BatchGetUserLinksResponse> - batchGetUserLinks(com.google.analytics.admin.v1alpha.BatchGetUserLinksRequest request) { + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> + listAndroidAppDataStreams( + com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchGetUserLinksMethod(), getCallOptions()), request); + getChannel().newCall(getListAndroidAppDataStreamsMethod(), getCallOptions()), request); } /** * * *
-     * Lists all user links on an account or property.
+     * Returns the singleton enhanced measurement settings for this web stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ListUserLinksResponse> - listUserLinks(com.google.analytics.admin.v1alpha.ListUserLinksRequest request) { + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> + getEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListUserLinksMethod(), getCallOptions()), request); + getChannel().newCall(getGetEnhancedMeasurementSettingsMethod(), getCallOptions()), + request); } /** * * *
-     * Lists all user links on an account or property, including implicit ones
-     * that come from effective permissions granted by groups or organization
-     * admin roles.
-     * If a returned user link does not have direct permissions, they cannot
-     * be removed from the account or property directly with the DeleteUserLink
-     * command. They have to be removed from the group/etc that gives them
-     * permissions, which is currently only usable/discoverable in the GA or GMP
-     * UIs.
+     * Updates the singleton enhanced measurement settings for this web stream.
+     * Note that the stream must enable enhanced measurement for these settings to
+     * take effect.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.AuditUserLinksResponse> - auditUserLinks(com.google.analytics.admin.v1alpha.AuditUserLinksRequest request) { + com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> + updateEnhancedMeasurementSettings( + com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getAuditUserLinksMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions()), + request); } /** * * *
-     * Creates a user link on an account or property.
-     * If the user with the specified email already has permissions on the
-     * account or property, then the user's existing permissions will be unioned
-     * with the permissions specified in the new UserLink.
+     * Creates a FirebaseLink.
+     * Properties can have at most one FirebaseLink.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.UserLink> - createUserLink(com.google.analytics.admin.v1alpha.CreateUserLinkRequest request) { + com.google.analytics.admin.v1alpha.FirebaseLink> + createFirebaseLink(com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateUserLinkMethod(), getCallOptions()), request); + getChannel().newCall(getCreateFirebaseLinkMethod(), getCallOptions()), request); } /** * * *
-     * Creates information about multiple users' links to an account or property.
-     * This method is transactional. If any UserLink cannot be created, none of
-     * the UserLinks will be created.
+     * Updates a FirebaseLink on a property
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.BatchCreateUserLinksResponse> - batchCreateUserLinks( - com.google.analytics.admin.v1alpha.BatchCreateUserLinksRequest request) { + com.google.analytics.admin.v1alpha.FirebaseLink> + updateFirebaseLink(com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchCreateUserLinksMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateFirebaseLinkMethod(), getCallOptions()), request); } /** * * *
-     * Updates a user link on an account or property.
+     * Deletes a FirebaseLink on a property
      * 
- */ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.UserLink> - updateUserLink(com.google.analytics.admin.v1alpha.UpdateUserLinkRequest request) { + */ + public com.google.common.util.concurrent.ListenableFuture + deleteFirebaseLink(com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateUserLinkMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteFirebaseLinkMethod(), getCallOptions()), request); } /** * * *
-     * Updates information about multiple users' links to an account or property.
+     * Lists FirebaseLinks on a property.
+     * Properties can have at most one FirebaseLink.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksResponse> - batchUpdateUserLinks( - com.google.analytics.admin.v1alpha.BatchUpdateUserLinksRequest request) { + com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse> + listFirebaseLinks(com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchUpdateUserLinksMethod(), getCallOptions()), request); + getChannel().newCall(getListFirebaseLinksMethod(), getCallOptions()), request); } /** * * *
-     * Deletes a user link on an account or property.
+     * Returns the Site Tag for the specified web stream.
+     * Site Tags are immutable singletons.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteUserLink(com.google.analytics.admin.v1alpha.DeleteUserLinkRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.GlobalSiteTag> + getGlobalSiteTag(com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteUserLinkMethod(), getCallOptions()), request); + getChannel().newCall(getGetGlobalSiteTagMethod(), getCallOptions()), request); } /** * * *
-     * Deletes information about multiple users' links to an account or property.
+     * Creates a GoogleAdsLink.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - batchDeleteUserLinks( - com.google.analytics.admin.v1alpha.BatchDeleteUserLinksRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.GoogleAdsLink> + createGoogleAdsLink(com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getBatchDeleteUserLinksMethod(), getCallOptions()), request); + getChannel().newCall(getCreateGoogleAdsLinkMethod(), getCallOptions()), request); } /** * * *
-     * Lookup for a single WebDataStream
+     * Updates a GoogleAdsLink on a property
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.WebDataStream> - getWebDataStream(com.google.analytics.admin.v1alpha.GetWebDataStreamRequest request) { + com.google.analytics.admin.v1alpha.GoogleAdsLink> + updateGoogleAdsLink(com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetWebDataStreamMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateGoogleAdsLinkMethod(), getCallOptions()), request); } /** * * *
-     * Deletes a web stream on a property.
+     * Deletes a GoogleAdsLink on a property
      * 
*/ public com.google.common.util.concurrent.ListenableFuture - deleteWebDataStream(com.google.analytics.admin.v1alpha.DeleteWebDataStreamRequest request) { + deleteGoogleAdsLink(com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteWebDataStreamMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteGoogleAdsLinkMethod(), getCallOptions()), request); } /** * * *
-     * Updates a web stream on a property.
+     * Lists GoogleAdsLinks on a property.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.WebDataStream> - updateWebDataStream(com.google.analytics.admin.v1alpha.UpdateWebDataStreamRequest request) { + com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse> + listGoogleAdsLinks(com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateWebDataStreamMethod(), getCallOptions()), request); + getChannel().newCall(getListGoogleAdsLinksMethod(), getCallOptions()), request); } /** * * *
-     * Creates a web stream with the specified location and attributes.
+     * Get data sharing settings on an account.
+     * Data sharing settings are singletons.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.WebDataStream> - createWebDataStream(com.google.analytics.admin.v1alpha.CreateWebDataStreamRequest request) { + com.google.analytics.admin.v1alpha.DataSharingSettings> + getDataSharingSettings( + com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateWebDataStreamMethod(), getCallOptions()), request); + getChannel().newCall(getGetDataSharingSettingsMethod(), getCallOptions()), request); } /** * * *
-     * Returns child web data streams under the specified parent property.
-     * Web data streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant web data streams are found.
+     * Lookup for a single "GA4" MeasurementProtocolSecret.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ListWebDataStreamsResponse> - listWebDataStreams(com.google.analytics.admin.v1alpha.ListWebDataStreamsRequest request) { + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + getMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListWebDataStreamsMethod(), getCallOptions()), request); + getChannel().newCall(getGetMeasurementProtocolSecretMethod(), getCallOptions()), request); } /** * * *
-     * Lookup for a single IosAppDataStream
+     * Returns child MeasurementProtocolSecrets under the specified parent
+     * Property.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.IosAppDataStream> - getIosAppDataStream(com.google.analytics.admin.v1alpha.GetIosAppDataStreamRequest request) { + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse> + listMeasurementProtocolSecrets( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIosAppDataStreamMethod(), getCallOptions()), request); + getChannel().newCall(getListMeasurementProtocolSecretsMethod(), getCallOptions()), + request); } /** * * *
-     * Deletes an iOS app stream on a property.
+     * Creates a measurement protocol secret.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteIosAppDataStream( - com.google.analytics.admin.v1alpha.DeleteIosAppDataStreamRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + createMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteIosAppDataStreamMethod(), getCallOptions()), request); + getChannel().newCall(getCreateMeasurementProtocolSecretMethod(), getCallOptions()), + request); } /** * * *
-     * Updates an iOS app stream on a property.
+     * Deletes target MeasurementProtocolSecret.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.IosAppDataStream> - updateIosAppDataStream( - com.google.analytics.admin.v1alpha.UpdateIosAppDataStreamRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateIosAppDataStreamMethod(), getCallOptions()), request); + getChannel().newCall(getDeleteMeasurementProtocolSecretMethod(), getCallOptions()), + request); } /** * * *
-     * Returns child iOS app data streams under the specified parent property.
-     * iOS app data streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant iOS app data streams are found.
+     * Updates a measurement protocol secret.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsResponse> - listIosAppDataStreams( - com.google.analytics.admin.v1alpha.ListIosAppDataStreamsRequest request) { + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret> + updateMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListIosAppDataStreamsMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateMeasurementProtocolSecretMethod(), getCallOptions()), + request); } /** * * *
-     * Lookup for a single AndroidAppDataStream
+     * Searches through all changes to an account or its children given the
+     * specified set of filters.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.AndroidAppDataStream> - getAndroidAppDataStream( - com.google.analytics.admin.v1alpha.GetAndroidAppDataStreamRequest request) { + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> + searchChangeHistoryEvents( + com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetAndroidAppDataStreamMethod(), getCallOptions()), request); + getChannel().newCall(getSearchChangeHistoryEventsMethod(), getCallOptions()), request); } /** * * *
-     * Deletes an android app stream on a property.
+     * Lookup for Google Signals settings for a property.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteAndroidAppDataStream( - com.google.analytics.admin.v1alpha.DeleteAndroidAppDataStreamRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + getGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteAndroidAppDataStreamMethod(), getCallOptions()), request); + getChannel().newCall(getGetGoogleSignalsSettingsMethod(), getCallOptions()), request); } /** * * *
-     * Updates an android app stream on a property.
+     * Updates Google Signals settings for a property.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.AndroidAppDataStream> - updateAndroidAppDataStream( - com.google.analytics.admin.v1alpha.UpdateAndroidAppDataStreamRequest request) { + com.google.analytics.admin.v1alpha.GoogleSignalsSettings> + updateGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateAndroidAppDataStreamMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateGoogleSignalsSettingsMethod(), getCallOptions()), request); } /** * * *
-     * Returns child android app streams under the specified parent property.
-     * Android app streams will be excluded if the caller does not have access.
-     * Returns an empty list if no relevant android app streams are found.
+     * Creates a conversion event with the specified attributes.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsResponse> - listAndroidAppDataStreams( - com.google.analytics.admin.v1alpha.ListAndroidAppDataStreamsRequest request) { + com.google.analytics.admin.v1alpha.ConversionEvent> + createConversionEvent( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListAndroidAppDataStreamsMethod(), getCallOptions()), request); + getChannel().newCall(getCreateConversionEventMethod(), getCallOptions()), request); } /** * * *
-     * Returns the singleton enhanced measurement settings for this web stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
+     * Retrieve a single conversion event.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> - getEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.GetEnhancedMeasurementSettingsRequest request) { + com.google.analytics.admin.v1alpha.ConversionEvent> + getConversionEvent(com.google.analytics.admin.v1alpha.GetConversionEventRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetEnhancedMeasurementSettingsMethod(), getCallOptions()), - request); + getChannel().newCall(getGetConversionEventMethod(), getCallOptions()), request); } /** * * *
-     * Updates the singleton enhanced measurement settings for this web stream.
-     * Note that the stream must enable enhanced measurement for these settings to
-     * take effect.
+     * Deletes a conversion event in a property.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.EnhancedMeasurementSettings> - updateEnhancedMeasurementSettings( - com.google.analytics.admin.v1alpha.UpdateEnhancedMeasurementSettingsRequest request) { + public com.google.common.util.concurrent.ListenableFuture + deleteConversionEvent( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateEnhancedMeasurementSettingsMethod(), getCallOptions()), - request); + getChannel().newCall(getDeleteConversionEventMethod(), getCallOptions()), request); } /** * * *
-     * Creates a FirebaseLink.
-     * Properties can have at most one FirebaseLink.
+     * Returns a list of conversion events in the specified parent property.
+     * Returns an empty list if no conversion events are found.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.FirebaseLink> - createFirebaseLink(com.google.analytics.admin.v1alpha.CreateFirebaseLinkRequest request) { + com.google.analytics.admin.v1alpha.ListConversionEventsResponse> + listConversionEvents( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateFirebaseLinkMethod(), getCallOptions()), request); + getChannel().newCall(getListConversionEventsMethod(), getCallOptions()), request); } /** * * *
-     * Updates a FirebaseLink on a property
+     * Creates a CustomDimension.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.FirebaseLink> - updateFirebaseLink(com.google.analytics.admin.v1alpha.UpdateFirebaseLinkRequest request) { + com.google.analytics.admin.v1alpha.CustomDimension> + createCustomDimension( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateFirebaseLinkMethod(), getCallOptions()), request); + getChannel().newCall(getCreateCustomDimensionMethod(), getCallOptions()), request); } /** * * *
-     * Deletes a FirebaseLink on a property
+     * Updates a CustomDimension on a property.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteFirebaseLink(com.google.analytics.admin.v1alpha.DeleteFirebaseLinkRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.CustomDimension> + updateCustomDimension( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteFirebaseLinkMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateCustomDimensionMethod(), getCallOptions()), request); } /** * * *
-     * Lists FirebaseLinks on a property.
-     * Properties can have at most one FirebaseLink.
+     * Lists CustomDimensions on a property.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ListFirebaseLinksResponse> - listFirebaseLinks(com.google.analytics.admin.v1alpha.ListFirebaseLinksRequest request) { + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse> + listCustomDimensions( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListFirebaseLinksMethod(), getCallOptions()), request); + getChannel().newCall(getListCustomDimensionsMethod(), getCallOptions()), request); } /** * * *
-     * Returns the Site Tag for the specified web stream.
-     * Site Tags are immutable singletons.
+     * Archives a CustomDimension on a property.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.GlobalSiteTag> - getGlobalSiteTag(com.google.analytics.admin.v1alpha.GetGlobalSiteTagRequest request) { + public com.google.common.util.concurrent.ListenableFuture + archiveCustomDimension( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetGlobalSiteTagMethod(), getCallOptions()), request); + getChannel().newCall(getArchiveCustomDimensionMethod(), getCallOptions()), request); } /** * * *
-     * Creates a GoogleAdsLink.
+     * Lookup for a single CustomDimension.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.GoogleAdsLink> - createGoogleAdsLink(com.google.analytics.admin.v1alpha.CreateGoogleAdsLinkRequest request) { + com.google.analytics.admin.v1alpha.CustomDimension> + getCustomDimension(com.google.analytics.admin.v1alpha.GetCustomDimensionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateGoogleAdsLinkMethod(), getCallOptions()), request); + getChannel().newCall(getGetCustomDimensionMethod(), getCallOptions()), request); } /** * * *
-     * Updates a GoogleAdsLink on a property
+     * Creates a CustomMetric.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.GoogleAdsLink> - updateGoogleAdsLink(com.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkRequest request) { + com.google.analytics.admin.v1alpha.CustomMetric> + createCustomMetric(com.google.analytics.admin.v1alpha.CreateCustomMetricRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateGoogleAdsLinkMethod(), getCallOptions()), request); + getChannel().newCall(getCreateCustomMetricMethod(), getCallOptions()), request); } /** * * *
-     * Deletes a GoogleAdsLink on a property
+     * Updates a CustomMetric on a property.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture - deleteGoogleAdsLink(com.google.analytics.admin.v1alpha.DeleteGoogleAdsLinkRequest request) { + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.CustomMetric> + updateCustomMetric(com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteGoogleAdsLinkMethod(), getCallOptions()), request); + getChannel().newCall(getUpdateCustomMetricMethod(), getCallOptions()), request); } /** * * *
-     * Lists GoogleAdsLinks on a property.
+     * Lists CustomMetrics on a property.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.ListGoogleAdsLinksResponse> - listGoogleAdsLinks(com.google.analytics.admin.v1alpha.ListGoogleAdsLinksRequest request) { + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse> + listCustomMetrics(com.google.analytics.admin.v1alpha.ListCustomMetricsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListGoogleAdsLinksMethod(), getCallOptions()), request); + getChannel().newCall(getListCustomMetricsMethod(), getCallOptions()), request); } /** * * *
-     * Get data sharing settings on an account.
-     * Data sharing settings are singletons.
+     * Archives a CustomMetric on a property.
      * 
*/ - public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.DataSharingSettings> - getDataSharingSettings( - com.google.analytics.admin.v1alpha.GetDataSharingSettingsRequest request) { + public com.google.common.util.concurrent.ListenableFuture + archiveCustomMetric(com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetDataSharingSettingsMethod(), getCallOptions()), request); + getChannel().newCall(getArchiveCustomMetricMethod(), getCallOptions()), request); } /** * * *
-     * Searches through all changes to an account or its children given the
-     * specified set of filters.
+     * Lookup for a single CustomMetric.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse> - searchChangeHistoryEvents( - com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest request) { + com.google.analytics.admin.v1alpha.CustomMetric> + getCustomMetric(com.google.analytics.admin.v1alpha.GetCustomMetricRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSearchChangeHistoryEventsMethod(), getCallOptions()), request); + getChannel().newCall(getGetCustomMetricMethod(), getCallOptions()), request); } } @@ -5763,7 +8235,28 @@ protected AnalyticsAdminServiceFutureStub build( 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_SEARCH_CHANGE_HISTORY_EVENTS = 46; + 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 class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -6065,6 +8558,39 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GET_MEASUREMENT_PROTOCOL_SECRET: + serviceImpl.getMeasurementProtocolSecret( + (com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>) + responseObserver); + break; + case METHODID_LIST_MEASUREMENT_PROTOCOL_SECRETS: + serviceImpl.listMeasurementProtocolSecrets( + (com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse>) + responseObserver); + break; + case METHODID_CREATE_MEASUREMENT_PROTOCOL_SECRET: + serviceImpl.createMeasurementProtocolSecret( + (com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>) + responseObserver); + break; + case METHODID_DELETE_MEASUREMENT_PROTOCOL_SECRET: + serviceImpl.deleteMeasurementProtocolSecret( + (com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_MEASUREMENT_PROTOCOL_SECRET: + serviceImpl.updateMeasurementProtocolSecret( + (com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>) + responseObserver); + break; case METHODID_SEARCH_CHANGE_HISTORY_EVENTS: serviceImpl.searchChangeHistoryEvents( (com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsRequest) request, @@ -6072,6 +8598,104 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.analytics.admin.v1alpha.SearchChangeHistoryEventsResponse>) responseObserver); break; + case METHODID_GET_GOOGLE_SIGNALS_SETTINGS: + serviceImpl.getGoogleSignalsSettings( + (com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings>) + responseObserver); + break; + case METHODID_UPDATE_GOOGLE_SIGNALS_SETTINGS: + serviceImpl.updateGoogleSignalsSettings( + (com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings>) + responseObserver); + break; + case METHODID_CREATE_CONVERSION_EVENT: + serviceImpl.createConversionEvent( + (com.google.analytics.admin.v1alpha.CreateConversionEventRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_GET_CONVERSION_EVENT: + serviceImpl.getConversionEvent( + (com.google.analytics.admin.v1alpha.GetConversionEventRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_DELETE_CONVERSION_EVENT: + serviceImpl.deleteConversionEvent( + (com.google.analytics.admin.v1alpha.DeleteConversionEventRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_CONVERSION_EVENTS: + serviceImpl.listConversionEvents( + (com.google.analytics.admin.v1alpha.ListConversionEventsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListConversionEventsResponse>) + responseObserver); + break; + case METHODID_CREATE_CUSTOM_DIMENSION: + serviceImpl.createCustomDimension( + (com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CUSTOM_DIMENSION: + serviceImpl.updateCustomDimension( + (com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CUSTOM_DIMENSIONS: + serviceImpl.listCustomDimensions( + (com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse>) + responseObserver); + break; + case METHODID_ARCHIVE_CUSTOM_DIMENSION: + serviceImpl.archiveCustomDimension( + (com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CUSTOM_DIMENSION: + serviceImpl.getCustomDimension( + (com.google.analytics.admin.v1alpha.GetCustomDimensionRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_CREATE_CUSTOM_METRIC: + serviceImpl.createCustomMetric( + (com.google.analytics.admin.v1alpha.CreateCustomMetricRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_CUSTOM_METRIC: + serviceImpl.updateCustomMetric( + (com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_LIST_CUSTOM_METRICS: + serviceImpl.listCustomMetrics( + (com.google.analytics.admin.v1alpha.ListCustomMetricsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse>) + responseObserver); + break; + case METHODID_ARCHIVE_CUSTOM_METRIC: + serviceImpl.archiveCustomMetric( + (com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_CUSTOM_METRIC: + serviceImpl.getCustomMetric( + (com.google.analytics.admin.v1alpha.GetCustomMetricRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; default: throw new AssertionError(); } @@ -6182,7 +8806,28 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteGoogleAdsLinkMethod()) .addMethod(getListGoogleAdsLinksMethod()) .addMethod(getGetDataSharingSettingsMethod()) + .addMethod(getGetMeasurementProtocolSecretMethod()) + .addMethod(getListMeasurementProtocolSecretsMethod()) + .addMethod(getCreateMeasurementProtocolSecretMethod()) + .addMethod(getDeleteMeasurementProtocolSecretMethod()) + .addMethod(getUpdateMeasurementProtocolSecretMethod()) .addMethod(getSearchChangeHistoryEventsMethod()) + .addMethod(getGetGoogleSignalsSettingsMethod()) + .addMethod(getUpdateGoogleSignalsSettingsMethod()) + .addMethod(getCreateConversionEventMethod()) + .addMethod(getGetConversionEventMethod()) + .addMethod(getDeleteConversionEventMethod()) + .addMethod(getListConversionEventsMethod()) + .addMethod(getCreateCustomDimensionMethod()) + .addMethod(getUpdateCustomDimensionMethod()) + .addMethod(getListCustomDimensionsMethod()) + .addMethod(getArchiveCustomDimensionMethod()) + .addMethod(getGetCustomDimensionMethod()) + .addMethod(getCreateCustomMetricMethod()) + .addMethod(getUpdateCustomMetricMethod()) + .addMethod(getListCustomMetricsMethod()) + .addMethod(getArchiveCustomMetricMethod()) + .addMethod(getGetCustomMetricMethod()) .build(); } } 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 8ec45438..ce52aa51 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 @@ -275,6 +275,106 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_SearchChangeHistoryEventsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + 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_CreateCustomDimensionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -496,269 +596,504 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!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(\t2\334P\n\025AnalyticsAdmi" - + "nService\022\223\001\n\nGetAccount\0221.google.analyti" - + "cs.admin.v1alpha.GetAccountRequest\032\'.goo" - + "gle.analytics.admin.v1alpha.Account\")\202\323\344" - + "\223\002\034\022\032/v1alpha/{name=accounts/*}\332A\004name\022\224" - + "\001\n\014ListAccounts\0223.google.analytics.admin" - + ".v1alpha.ListAccountsRequest\0324.google.an" - + "alytics.admin.v1alpha.ListAccountsRespon" - + "se\"\031\202\323\344\223\002\023\022\021/v1alpha/accounts\022\210\001\n\rDelete" - + "Account\0224.google.analytics.admin.v1alpha" - + ".DeleteAccountRequest\032\026.google.protobuf." - + "Empty\")\202\323\344\223\002\034*\032/v1alpha/{name=accounts/*" - + "}\332A\004name\022\271\001\n\rUpdateAccount\0224.google.anal" - + "ytics.admin.v1alpha.UpdateAccountRequest" - + "\032\'.google.analytics.admin.v1alpha.Accoun" - + "t\"I\202\323\344\223\002-2\"/v1alpha/{account.name=accoun" - + "ts/*}:\007account\332A\023account,update_mask\022\314\001\n" - + "\026ProvisionAccountTicket\022=.google.analyti" - + "cs.admin.v1alpha.ProvisionAccountTicketR" - + "equest\032>.google.analytics.admin.v1alpha." - + "ProvisionAccountTicketResponse\"3\202\323\344\223\002-\"(" - + "/v1alpha/accounts:provisionAccountTicket" - + ":\001*\022\264\001\n\024ListAccountSummaries\022;.google.an" - + "alytics.admin.v1alpha.ListAccountSummari" - + "esRequest\032<.google.analytics.admin.v1alp" - + "ha.ListAccountSummariesResponse\"!\202\323\344\223\002\033\022" - + "\031/v1alpha/accountSummaries\022\230\001\n\013GetProper" - + "ty\0222.google.analytics.admin.v1alpha.GetP" - + "ropertyRequest\032(.google.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.admin.v1alpha.ListPr" - + "opertiesRequest\0326.google.analytics.admin" - + ".v1alpha.ListPropertiesResponse\"\033\202\323\344\223\002\025\022" - + "\023/v1alpha/properties\022\243\001\n\016CreateProperty\022" - + "5.google.analytics.admin.v1alpha.CreateP" - + "ropertyRequest\032(.google.analytics.admin." - + "v1alpha.Property\"0\202\323\344\223\002\037\"\023/v1alpha/prope" - + "rties:\010property\332A\010property\022\236\001\n\016DeletePro" - + "perty\0225.google.analytics.admin.v1alpha.D" - + "eletePropertyRequest\032(.google.analytics." - + "admin.v1alpha.Property\"+\202\323\344\223\002\036*\034/v1alpha" - + "/{name=properties/*}\332A\004name\022\301\001\n\016UpdatePr" - + "operty\0225.google.analytics.admin.v1alpha." - + "UpdatePropertyRequest\032(.google.analytics" - + ".admin.v1alpha.Property\"N\202\323\344\223\00212%/v1alph" - + "a/{property.name=properties/*}:\010property" - + "\332A\024property,update_mask\022\316\001\n\013GetUserLink\022" - + "2.google.analytics.admin.v1alpha.GetUser" - + "LinkRequest\032(.google.analytics.admin.v1a" - + "lpha.UserLink\"a\202\323\344\223\002T\022&/v1alpha/{name=ac" - + "counts/*/userLinks/*}Z*\022(/v1alpha/{name=" - + "properties/*/userLinks/*}\332A\004name\022\366\001\n\021Bat" - + "chGetUserLinks\0228.google.analytics.admin." - + "v1alpha.BatchGetUserLinksRequest\0329.googl" - + "e.analytics.admin.v1alpha.BatchGetUserLi" - + "nksResponse\"l\202\323\344\223\002f\022//v1alpha/{parent=ac" - + "counts/*}/userLinks:batchGetZ3\0221/v1alpha" - + "/{parent=properties/*}/userLinks:batchGe" - + "t\022\341\001\n\rListUserLinks\0224.google.analytics.a" - + "dmin.v1alpha.ListUserLinksRequest\0325.goog" + + "\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" - + "Response\"c\202\323\344\223\002T\022&/v1alpha/{parent=accou" - + "nts/*}/userLinksZ*\022(/v1alpha/{parent=pro" - + "perties/*}/userLinks\332A\006parent\022\355\001\n\016AuditU" - + "serLinks\0225.google.analytics.admin.v1alph" - + "a.AuditUserLinksRequest\0326.google.analyti" - + "cs.admin.v1alpha.AuditUserLinksResponse\"" - + "l\202\323\344\223\002f\",/v1alpha/{parent=accounts/*}/us" - + "erLinks:audit:\001*Z3\"./v1alpha/{parent=pro" - + "perties/*}/userLinks:audit:\001*\022\367\001\n\016Create" - + "UserLink\0225.google.analytics.admin.v1alph" - + "a.CreateUserLinkRequest\032(.google.analyti" - + "cs.admin.v1alpha.UserLink\"\203\001\202\323\344\223\002j\"&/v1a" - + "lpha/{parent=accounts/*}/userLinks:\tuser" - + "_linkZ5\"(/v1alpha/{parent=properties/*}/" - + "userLinks:\tuser_link\332A\020parent,user_link\022" - + "\213\002\n\024BatchCreateUserLinks\022;.google.analyt" - + "ics.admin.v1alpha.BatchCreateUserLinksRe" - + "quest\032<.google.analytics.admin.v1alpha.B" - + "atchCreateUserLinksResponse\"x\202\323\344\223\002r\"2/v1" - + "alpha/{parent=accounts/*}/userLinks:batc" - + "hCreate:\001*Z9\"4/v1alpha/{parent=propertie" - + "s/*}/userLinks:batchCreate:\001*\022\204\002\n\016Update" - + "UserLink\0225.google.analytics.admin.v1alph" - + "a.UpdateUserLinkRequest\032(.google.analyti" - + "cs.admin.v1alpha.UserLink\"\220\001\202\323\344\223\002~20/v1a" - + "lpha/{user_link.name=accounts/*/userLink" - + "s/*}:\tuser_linkZ?22/v1alpha/{user_link.n" - + "ame=properties/*/userLinks/*}:\tuser_link" - + "\332A\tuser_link\022\213\002\n\024BatchUpdateUserLinks\022;." - + "google.analytics.admin.v1alpha.BatchUpda" - + "teUserLinksRequest\032<.google.analytics.ad" - + "min.v1alpha.BatchUpdateUserLinksResponse" - + "\"x\202\323\344\223\002r\"2/v1alpha/{parent=accounts/*}/u" - + "serLinks:batchUpdate:\001*Z9\"4/v1alpha/{par" - + "ent=properties/*}/userLinks:batchUpdate:" - + "\001*\022\302\001\n\016DeleteUserLink\0225.google.analytics" - + ".admin.v1alpha.DeleteUserLinkRequest\032\026.g" - + "oogle.protobuf.Empty\"a\202\323\344\223\002T*&/v1alpha/{" - + "name=accounts/*/userLinks/*}Z**(/v1alpha" - + "/{name=properties/*/userLinks/*}\332A\004name\022" - + "\345\001\n\024BatchDeleteUserLinks\022;.google.analyt" - + "ics.admin.v1alpha.BatchDeleteUserLinksRe" - + "quest\032\026.google.protobuf.Empty\"x\202\323\344\223\002r\"2/" - + "v1alpha/{parent=accounts/*}/userLinks:ba" - + "tchDelete:\001*Z9\"4/v1alpha/{parent=propert" - + "ies/*}/userLinks:batchDelete:\001*\022\270\001\n\020GetW" - + "ebDataStream\0227.google.analytics.admin.v1" - + "alpha.GetWebDataStreamRequest\032-.google.a" - + "nalytics.admin.v1alpha.WebDataStream\"<\202\323" - + "\344\223\002/\022-/v1alpha/{name=properties/*/webDat" - + "aStreams/*}\332A\004name\022\247\001\n\023DeleteWebDataStre" - + "am\022:.google.analytics.admin.v1alpha.Dele" - + "teWebDataStreamRequest\032\026.google.protobuf" - + ".Empty\"<\202\323\344\223\002/*-/v1alpha/{name=propertie" - + "s/*/webDataStreams/*}\332A\004name\022\366\001\n\023UpdateW" - + "ebDataStream\022:.google.analytics.admin.v1" - + "alpha.UpdateWebDataStreamRequest\032-.googl" - + "e.analytics.admin.v1alpha.WebDataStream\"" - + "t\202\323\344\223\002P2=/v1alpha/{web_data_stream.name=" - + "properties/*/webDataStreams/*}:\017web_data" - + "_stream\332A\033web_data_stream,update_mask\022\341\001" - + "\n\023CreateWebDataStream\022:.google.analytics" - + ".admin.v1alpha.CreateWebDataStreamReques" - + "t\032-.google.analytics.admin.v1alpha.WebDa" - + "taStream\"_\202\323\344\223\002@\"-/v1alpha/{parent=prope" - + "rties/*}/webDataStreams:\017web_data_stream" - + "\332A\026parent,web_data_stream\022\313\001\n\022ListWebDat" - + "aStreams\0229.google.analytics.admin.v1alph" - + "a.ListWebDataStreamsRequest\032:.google.ana" - + "lytics.admin.v1alpha.ListWebDataStreamsR" - + "esponse\">\202\323\344\223\002/\022-/v1alpha/{parent=proper" - + "ties/*}/webDataStreams\332A\006parent\022\304\001\n\023GetI" - + "osAppDataStream\022:.google.analytics.admin" - + ".v1alpha.GetIosAppDataStreamRequest\0320.go" - + "ogle.analytics.admin.v1alpha.IosAppDataS" - + "tream\"?\202\323\344\223\0022\0220/v1alpha/{name=properties" - + "/*/iosAppDataStreams/*}\332A\004name\022\260\001\n\026Delet" - + "eIosAppDataStream\022=.google.analytics.adm" - + "in.v1alpha.DeleteIosAppDataStreamRequest" - + "\032\026.google.protobuf.Empty\"?\202\323\344\223\0022*0/v1alp" - + "ha/{name=properties/*/iosAppDataStreams/" - + "*}\332A\004name\022\217\002\n\026UpdateIosAppDataStream\022=.g" - + "oogle.analytics.admin.v1alpha.UpdateIosA" - + "ppDataStreamRequest\0320.google.analytics.a" - + "dmin.v1alpha.IosAppDataStream\"\203\001\202\323\344\223\002[2D" - + "/v1alpha/{ios_app_data_stream.name=prope" - + "rties/*/iosAppDataStreams/*}:\023ios_app_da" - + "ta_stream\332A\037ios_app_data_stream,update_m" - + "ask\022\327\001\n\025ListIosAppDataStreams\022<.google.a" - + "nalytics.admin.v1alpha.ListIosAppDataStr" - + "eamsRequest\032=.google.analytics.admin.v1a" - + "lpha.ListIosAppDataStreamsResponse\"A\202\323\344\223" - + "\0022\0220/v1alpha/{parent=properties/*}/iosAp" - + "pDataStreams\332A\006parent\022\324\001\n\027GetAndroidAppD" - + "ataStream\022>.google.analytics.admin.v1alp" - + "ha.GetAndroidAppDataStreamRequest\0324.goog" - + "le.analytics.admin.v1alpha.AndroidAppDat" - + "aStream\"C\202\323\344\223\0026\0224/v1alpha/{name=properti" - + "es/*/androidAppDataStreams/*}\332A\004name\022\274\001\n" - + "\032DeleteAndroidAppDataStream\022A.google.ana" - + "lytics.admin.v1alpha.DeleteAndroidAppDat" - + "aStreamRequest\032\026.google.protobuf.Empty\"C" - + "\202\323\344\223\0026*4/v1alpha/{name=properties/*/andr" - + "oidAppDataStreams/*}\332A\004name\022\253\002\n\032UpdateAn" - + "droidAppDataStream\022A.google.analytics.ad" - + "min.v1alpha.UpdateAndroidAppDataStreamRe" - + "quest\0324.google.analytics.admin.v1alpha.A" - + "ndroidAppDataStream\"\223\001\202\323\344\223\002g2L/v1alpha/{" - + "android_app_data_stream.name=properties/" - + "*/androidAppDataStreams/*}:\027android_app_" - + "data_stream\332A#android_app_data_stream,up" - + "date_mask\022\347\001\n\031ListAndroidAppDataStreams\022" - + "@.google.analytics.admin.v1alpha.ListAnd" - + "roidAppDataStreamsRequest\032A.google.analy" - + "tics.admin.v1alpha.ListAndroidAppDataStr" - + "eamsResponse\"E\202\323\344\223\0026\0224/v1alpha/{parent=p" - + "roperties/*}/androidAppDataStreams\332A\006par" - + "ent\022\376\001\n\036GetEnhancedMeasurementSettings\022E" - + ".google.analytics.admin.v1alpha.GetEnhan" - + "cedMeasurementSettingsRequest\032;.google.a" - + "nalytics.admin.v1alpha.EnhancedMeasureme" - + "ntSettings\"X\202\323\344\223\002K\022I/v1alpha/{name=prope" - + "rties/*/webDataStreams/*/enhancedMeasure" - + "mentSettings}\332A\004name\022\350\002\n!UpdateEnhancedM" - + "easurementSettings\022H.google.analytics.ad" - + "min.v1alpha.UpdateEnhancedMeasurementSet", - "tingsRequest\032;.google.analytics.admin.v1" - + "alpha.EnhancedMeasurementSettings\"\273\001\202\323\344\223" - + "\002\210\0012g/v1alpha/{enhanced_measurement_sett" - + "ings.name=properties/*/webDataStreams/*/" - + "enhancedMeasurementSettings}:\035enhanced_m" - + "easurement_settings\332A)enhanced_measureme" - + "nt_settings,update_mask\022\331\001\n\022CreateFireba" - + "seLink\0229.google.analytics.admin.v1alpha." - + "CreateFirebaseLinkRequest\032,.google.analy" - + "tics.admin.v1alpha.FirebaseLink\"Z\202\323\344\223\002=\"" - + ",/v1alpha/{parent=properties/*}/firebase" - + "Links:\rfirebase_link\332A\024parent,firebase_l" - + "ink\022\354\001\n\022UpdateFirebaseLink\0229.google.anal" - + "ytics.admin.v1alpha.UpdateFirebaseLinkRe" - + "quest\032,.google.analytics.admin.v1alpha.F" - + "irebaseLink\"m\202\323\344\223\002K2:/v1alpha/{firebase_" - + "link.name=properties/*/firebaseLinks/*}:" - + "\rfirebase_link\332A\031firebase_link,update_ma" - + "sk\022\244\001\n\022DeleteFirebaseLink\0229.google.analy" - + "tics.admin.v1alpha.DeleteFirebaseLinkReq" - + "uest\032\026.google.protobuf.Empty\";\202\323\344\223\002.*,/v" - + "1alpha/{name=properties/*/firebaseLinks/" - + "*}\332A\004name\022\307\001\n\021ListFirebaseLinks\0228.google" - + ".analytics.admin.v1alpha.ListFirebaseLin" - + "ksRequest\0329.google.analytics.admin.v1alp" - + "ha.ListFirebaseLinksResponse\"=\202\323\344\223\002.\022,/v" - + "1alpha/{parent=properties/*}/firebaseLin" - + "ks\332A\006parent\022\306\001\n\020GetGlobalSiteTag\0227.googl" - + "e.analytics.admin.v1alpha.GetGlobalSiteT" - + "agRequest\032-.google.analytics.admin.v1alp" - + "ha.GlobalSiteTag\"J\202\323\344\223\002=\022;/v1alpha/{name" - + "=properties/*/webDataStreams/*/globalSit" - + "eTag}\332A\004name\022\341\001\n\023CreateGoogleAdsLink\022:.g" - + "oogle.analytics.admin.v1alpha.CreateGoog" - + "leAdsLinkRequest\032-.google.analytics.admi" - + "n.v1alpha.GoogleAdsLink\"_\202\323\344\223\002@\"-/v1alph" - + "a/{parent=properties/*}/googleAdsLinks:\017" - + "google_ads_link\332A\026parent,google_ads_link" - + "\022\366\001\n\023UpdateGoogleAdsLink\022:.google.analyt" - + "ics.admin.v1alpha.UpdateGoogleAdsLinkReq" - + "uest\032-.google.analytics.admin.v1alpha.Go" - + "ogleAdsLink\"t\202\323\344\223\002P2=/v1alpha/{google_ad" - + "s_link.name=properties/*/googleAdsLinks/" - + "*}:\017google_ads_link\332A\033google_ads_link,up" - + "date_mask\022\247\001\n\023DeleteGoogleAdsLink\022:.goog" - + "le.analytics.admin.v1alpha.DeleteGoogleA" - + "dsLinkRequest\032\026.google.protobuf.Empty\"<\202" - + "\323\344\223\002/*-/v1alpha/{name=properties/*/googl" - + "eAdsLinks/*}\332A\004name\022\313\001\n\022ListGoogleAdsLin" - + "ks\0229.google.analytics.admin.v1alpha.List" - + "GoogleAdsLinksRequest\032:.google.analytics" - + ".admin.v1alpha.ListGoogleAdsLinksRespons" - + "e\">\202\323\344\223\002/\022-/v1alpha/{parent=properties/*" - + "}/googleAdsLinks\332A\006parent\022\313\001\n\026GetDataSha" - + "ringSettings\022=.google.analytics.admin.v1" - + "alpha.GetDataSharingSettingsRequest\0323.go" - + "ogle.analytics.admin.v1alpha.DataSharing" - + "Settings\"=\202\323\344\223\0020\022./v1alpha/{name=account" - + "s/*/dataSharingSettings}\332A\004name\022\344\001\n\031Sear" - + "chChangeHistoryEvents\022@.google.analytics" - + ".admin.v1alpha.SearchChangeHistoryEvents" - + "Request\032A.google.analytics.admin.v1alpha" - + ".SearchChangeHistoryEventsResponse\"B\202\323\344\223" - + "\002<\"7/v1alpha/{account=accounts/*}:search" - + "ChangeHistoryEvents:\001*\032\374\001\312A\035analyticsadm" - + "in.googleapis.com\322A\330\001https://www.googlea" - + "pis.com/auth/analytics.edit,https://www." - + "googleapis.com/auth/analytics.manage.use" - + "rs,https://www.googleapis.com/auth/analy" - + "tics.manage.users.readonly,https://www.g" - + "oogleapis.com/auth/analytics.readonlyB\200\001" - + "\n\"com.google.analytics.admin.v1alphaB\023An" - + "alyticsAdminProtoP\001ZCgoogle.golang.org/g" - + "enproto/googleapis/analytics/admin/v1alp" - + "ha;adminb\006proto3" + + "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" + + "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=\",/" + + "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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1277,6 +1612,206 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "ChangeHistoryEvents", "NextPageToken", }); + internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(62); + internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(63); + internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor, + new java.lang.String[] { + "Parent", "MeasurementProtocolSecret", + }); + internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(64); + internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor = + getDescriptor().getMessageTypes().get(65); + internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor, + new java.lang.String[] { + "MeasurementProtocolSecret", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor = + getDescriptor().getMessageTypes().get(66); + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor = + getDescriptor().getMessageTypes().get(67); + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor, + new java.lang.String[] { + "MeasurementProtocolSecrets", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(68); + internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor = + getDescriptor().getMessageTypes().get(69); + internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor, + new java.lang.String[] { + "GoogleSignalsSettings", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(70); + internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor, + new java.lang.String[] { + "ConversionEvent", "Parent", + }); + internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(71); + internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor = + getDescriptor().getMessageTypes().get(72); + internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor = + getDescriptor().getMessageTypes().get(73); + internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor = + getDescriptor().getMessageTypes().get(74); + 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 = + getDescriptor().getMessageTypes().get(75); + internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor, + new java.lang.String[] { + "Parent", "CustomDimension", + }); + internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor = + getDescriptor().getMessageTypes().get(76); + internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor, + new java.lang.String[] { + "CustomDimension", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor = + getDescriptor().getMessageTypes().get(77); + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor = + getDescriptor().getMessageTypes().get(78); + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor, + new java.lang.String[] { + "CustomDimensions", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor = + getDescriptor().getMessageTypes().get(79); + internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor = + getDescriptor().getMessageTypes().get(80); + internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(81); + internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor, + new java.lang.String[] { + "Parent", "CustomMetric", + }); + internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(82); + internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor, + new java.lang.String[] { + "CustomMetric", "UpdateMask", + }); + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor = + getDescriptor().getMessageTypes().get(83); + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor = + getDescriptor().getMessageTypes().get(84); + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor, + new java.lang.String[] { + "CustomMetrics", "NextPageToken", + }); + internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(85); + internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor = + getDescriptor().getMessageTypes().get(86); + 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", + }); 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/ArchiveCustomDimensionRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequest.java new file mode 100644 index 00000000..1712f6fb --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequest.java @@ -0,0 +1,665 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 ArchiveCustomDimension RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} + */ +public final class ArchiveCustomDimensionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) + ArchiveCustomDimensionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArchiveCustomDimensionRequest.newBuilder() to construct. + private ArchiveCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ArchiveCustomDimensionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ArchiveCustomDimensionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ArchiveCustomDimensionRequest( + 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_ArchiveCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the CustomDimension to archive.
+   * Example format: properties/1234/customDimensions/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 CustomDimension to archive.
+   * Example format: properties/1234/customDimensions/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.ArchiveCustomDimensionRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest other = + (com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) 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.ArchiveCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( + 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.ArchiveCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( + com.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.ArchiveCustomDimensionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest 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.ArchiveCustomDimensionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseFrom( + java.io.InputStream 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.ArchiveCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream 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.ArchiveCustomDimensionRequest 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.ArchiveCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ArchiveCustomDimensionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ArchiveCustomDimension RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.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_ArchiveCustomDimensionRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest build() { + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest buildPartial() { + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest result = + new com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(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.ArchiveCustomDimensionRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest.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.ArchiveCustomDimensionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the CustomDimension to archive.
+     * Example format: properties/1234/customDimensions/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 CustomDimension to archive.
+     * Example format: properties/1234/customDimensions/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 CustomDimension to archive.
+     * Example format: properties/1234/customDimensions/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 CustomDimension to archive.
+     * Example format: properties/1234/customDimensions/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 CustomDimension to archive.
+     * Example format: properties/1234/customDimensions/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.ArchiveCustomDimensionRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) + private static final com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest(); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArchiveCustomDimensionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ArchiveCustomDimensionRequest(input, extensionRegistry); + } + }; + + public static com.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.ArchiveCustomDimensionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequestOrBuilder.java new file mode 100644 index 00000000..08faf12c --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomDimensionRequestOrBuilder.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 ArchiveCustomDimensionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ArchiveCustomDimensionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the CustomDimension to archive.
+   * Example format: properties/1234/customDimensions/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 CustomDimension to archive.
+   * Example format: properties/1234/customDimensions/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/ArchiveCustomMetricRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequest.java new file mode 100644 index 00000000..338b24b7 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequest.java @@ -0,0 +1,662 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 ArchiveCustomMetric RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} + */ +public final class ArchiveCustomMetricRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) + ArchiveCustomMetricRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ArchiveCustomMetricRequest.newBuilder() to construct. + private ArchiveCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ArchiveCustomMetricRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ArchiveCustomMetricRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ArchiveCustomMetricRequest( + 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_ArchiveCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the CustomMetric to archive.
+   * Example format: properties/1234/customMetrics/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 CustomMetric to archive.
+   * Example format: properties/1234/customMetrics/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.ArchiveCustomMetricRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest other = + (com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) 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.ArchiveCustomMetricRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( + 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.ArchiveCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( + com.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.ArchiveCustomMetricRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest 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.ArchiveCustomMetricRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseFrom( + java.io.InputStream 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.ArchiveCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest parseDelimitedFrom( + java.io.InputStream 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.ArchiveCustomMetricRequest 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.ArchiveCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ArchiveCustomMetricRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ArchiveCustomMetric RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ArchiveCustomMetricRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ArchiveCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.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_ArchiveCustomMetricRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest build() { + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest buildPartial() { + com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest result = + new com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest(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.ArchiveCustomMetricRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest.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.ArchiveCustomMetricRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the CustomMetric to archive.
+     * Example format: properties/1234/customMetrics/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 CustomMetric to archive.
+     * Example format: properties/1234/customMetrics/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 CustomMetric to archive.
+     * Example format: properties/1234/customMetrics/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 CustomMetric to archive.
+     * Example format: properties/1234/customMetrics/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 CustomMetric to archive.
+     * Example format: properties/1234/customMetrics/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.ArchiveCustomMetricRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) + private static final com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest(); + } + + public static com.google.analytics.admin.v1alpha.ArchiveCustomMetricRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ArchiveCustomMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ArchiveCustomMetricRequest(input, extensionRegistry); + } + }; + + public static com.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.ArchiveCustomMetricRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequestOrBuilder.java new file mode 100644 index 00000000..f7d638fc --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ArchiveCustomMetricRequestOrBuilder.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 ArchiveCustomMetricRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ArchiveCustomMetricRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the CustomMetric to archive.
+   * Example format: properties/1234/customMetrics/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 CustomMetric to archive.
+   * Example format: properties/1234/customMetrics/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 e2bcf575..eba78cee 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 @@ -411,6 +411,192 @@ public interface ChangeHistoryResourceOrBuilder */ com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLinkOrBuilder(); + /** + * + * + *
+     * A snapshot of a GoogleSignalsSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + * + * @return Whether the googleSignalsSettings field is set. + */ + boolean hasGoogleSignalsSettings(); + /** + * + * + *
+     * A snapshot of a GoogleSignalsSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + * + * @return The googleSignalsSettings. + */ + com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings(); + /** + * + * + *
+     * A snapshot of a GoogleSignalsSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder + getGoogleSignalsSettingsOrBuilder(); + + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + * + * @return Whether the conversionEvent field is set. + */ + boolean hasConversionEvent(); + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + * + * @return The conversionEvent. + */ + com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent(); + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventOrBuilder(); + + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + boolean hasMeasurementProtocolSecret(); + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return The measurementProtocolSecret. + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecret(); + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder(); + + /** + * + * + *
+     * A snapshot of a CustomDimension resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + * + * @return Whether the customDimension field is set. + */ + boolean hasCustomDimension(); + /** + * + * + *
+     * A snapshot of a CustomDimension resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + * + * @return The customDimension. + */ + com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension(); + /** + * + * + *
+     * A snapshot of a CustomDimension resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder(); + + /** + * + * + *
+     * A snapshot of a CustomMetric resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + * + * @return Whether the customMetric field is set. + */ + boolean hasCustomMetric(); + /** + * + * + *
+     * A snapshot of a CustomMetric resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + * + * @return The customMetric. + */ + com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric(); + /** + * + * + *
+     * A snapshot of a CustomMetric resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder(); + public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.ResourceCase getResourceCase(); } @@ -593,6 +779,103 @@ private ChangeHistoryResource( resourceCase_ = 7; break; } + case 66: + { + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder subBuilder = null; + if (resourceCase_ == 8) { + subBuilder = + ((com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_) + .toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 8; + break; + } + case 90: + { + com.google.analytics.admin.v1alpha.ConversionEvent.Builder subBuilder = null; + if (resourceCase_ == 11) { + subBuilder = + ((com.google.analytics.admin.v1alpha.ConversionEvent) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.ConversionEvent.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.ConversionEvent) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 11; + break; + } + case 98: + { + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder subBuilder = + null; + if (resourceCase_ == 12) { + subBuilder = + ((com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_) + .toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 12; + break; + } + case 106: + { + com.google.analytics.admin.v1alpha.CustomDimension.Builder subBuilder = null; + if (resourceCase_ == 13) { + subBuilder = + ((com.google.analytics.admin.v1alpha.CustomDimension) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.CustomDimension.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom( + (com.google.analytics.admin.v1alpha.CustomDimension) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 13; + break; + } + case 114: + { + com.google.analytics.admin.v1alpha.CustomMetric.Builder subBuilder = null; + if (resourceCase_ == 14) { + subBuilder = + ((com.google.analytics.admin.v1alpha.CustomMetric) resource_).toBuilder(); + } + resource_ = + input.readMessage( + com.google.analytics.admin.v1alpha.CustomMetric.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom((com.google.analytics.admin.v1alpha.CustomMetric) resource_); + resource_ = subBuilder.buildPartial(); + } + resourceCase_ = 14; + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -642,6 +925,11 @@ public enum ResourceCase IOS_APP_DATA_STREAM(5), FIREBASE_LINK(6), GOOGLE_ADS_LINK(7), + GOOGLE_SIGNALS_SETTINGS(8), + CONVERSION_EVENT(11), + MEASUREMENT_PROTOCOL_SECRET(12), + CUSTOM_DIMENSION(13), + CUSTOM_METRIC(14), RESOURCE_NOT_SET(0); private final int value; @@ -674,6 +962,16 @@ public static ResourceCase forNumber(int value) { return FIREBASE_LINK; case 7: return GOOGLE_ADS_LINK; + case 8: + return GOOGLE_SIGNALS_SETTINGS; + case 11: + return CONVERSION_EVENT; + case 12: + return MEASUREMENT_PROTOCOL_SECRET; + case 13: + return CUSTOM_DIMENSION; + case 14: + return CUSTOM_METRIC; case 0: return RESOURCE_NOT_SET; default: @@ -1052,51 +1350,337 @@ public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLin return com.google.analytics.admin.v1alpha.GoogleAdsLink.getDefaultInstance(); } - private byte memoizedIsInitialized = -1; - + public static final int GOOGLE_SIGNALS_SETTINGS_FIELD_NUMBER = 8; + /** + * + * + *
+     * A snapshot of a GoogleSignalsSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + * + * @return Whether the googleSignalsSettings field is set. + */ @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; + public boolean hasGoogleSignalsSettings() { + return resourceCase_ == 8; } - + /** + * + * + *
+     * A snapshot of a GoogleSignalsSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + * + * @return The googleSignalsSettings. + */ @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { - if (resourceCase_ == 1) { - output.writeMessage(1, (com.google.analytics.admin.v1alpha.Account) resource_); - } - if (resourceCase_ == 2) { - output.writeMessage(2, (com.google.analytics.admin.v1alpha.Property) resource_); + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings() { + if (resourceCase_ == 8) { + return (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_; } - if (resourceCase_ == 3) { - output.writeMessage(3, (com.google.analytics.admin.v1alpha.WebDataStream) resource_); - } - if (resourceCase_ == 4) { - output.writeMessage(4, (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_); - } - if (resourceCase_ == 5) { - output.writeMessage(5, (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_); - } - if (resourceCase_ == 6) { - output.writeMessage(6, (com.google.analytics.admin.v1alpha.FirebaseLink) resource_); - } - if (resourceCase_ == 7) { - output.writeMessage(7, (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_); - } - unknownFields.writeTo(output); + return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); } - + /** + * + * + *
+     * A snapshot of a GoogleSignalsSettings resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; + public com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder + getGoogleSignalsSettingsOrBuilder() { + if (resourceCase_ == 8) { + return (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_; + } + return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); + } - size = 0; - if (resourceCase_ == 1) { + public static final int CONVERSION_EVENT_FIELD_NUMBER = 11; + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + * + * @return Whether the conversionEvent field is set. + */ + @java.lang.Override + public boolean hasConversionEvent() { + return resourceCase_ == 11; + } + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + * + * @return The conversionEvent. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent() { + if (resourceCase_ == 11) { + return (com.google.analytics.admin.v1alpha.ConversionEvent) resource_; + } + return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a ConversionEvent resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder + getConversionEventOrBuilder() { + if (resourceCase_ == 11) { + return (com.google.analytics.admin.v1alpha.ConversionEvent) resource_; + } + return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); + } + + public static final int MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER = 12; + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + @java.lang.Override + public boolean hasMeasurementProtocolSecret() { + return resourceCase_ == 12; + } + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return The measurementProtocolSecret. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + if (resourceCase_ == 12) { + return (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_; + } + return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a MeasurementProtocolSecret resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + if (resourceCase_ == 12) { + return (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_; + } + return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); + } + + public static final int CUSTOM_DIMENSION_FIELD_NUMBER = 13; + /** + * + * + *
+     * A snapshot of a CustomDimension resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + * + * @return Whether the customDimension field is set. + */ + @java.lang.Override + public boolean hasCustomDimension() { + return resourceCase_ == 13; + } + /** + * + * + *
+     * A snapshot of a CustomDimension resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + * + * @return The customDimension. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { + if (resourceCase_ == 13) { + return (com.google.analytics.admin.v1alpha.CustomDimension) resource_; + } + return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a CustomDimension resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder + getCustomDimensionOrBuilder() { + if (resourceCase_ == 13) { + return (com.google.analytics.admin.v1alpha.CustomDimension) resource_; + } + return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); + } + + public static final int CUSTOM_METRIC_FIELD_NUMBER = 14; + /** + * + * + *
+     * A snapshot of a CustomMetric resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + * + * @return Whether the customMetric field is set. + */ + @java.lang.Override + public boolean hasCustomMetric() { + return resourceCase_ == 14; + } + /** + * + * + *
+     * A snapshot of a CustomMetric resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + * + * @return The customMetric. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { + if (resourceCase_ == 14) { + return (com.google.analytics.admin.v1alpha.CustomMetric) resource_; + } + return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); + } + /** + * + * + *
+     * A snapshot of a CustomMetric resource in change history.
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { + if (resourceCase_ == 14) { + return (com.google.analytics.admin.v1alpha.CustomMetric) resource_; + } + return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (resourceCase_ == 1) { + output.writeMessage(1, (com.google.analytics.admin.v1alpha.Account) resource_); + } + if (resourceCase_ == 2) { + output.writeMessage(2, (com.google.analytics.admin.v1alpha.Property) resource_); + } + if (resourceCase_ == 3) { + output.writeMessage(3, (com.google.analytics.admin.v1alpha.WebDataStream) resource_); + } + if (resourceCase_ == 4) { + output.writeMessage(4, (com.google.analytics.admin.v1alpha.AndroidAppDataStream) resource_); + } + if (resourceCase_ == 5) { + output.writeMessage(5, (com.google.analytics.admin.v1alpha.IosAppDataStream) resource_); + } + if (resourceCase_ == 6) { + output.writeMessage(6, (com.google.analytics.admin.v1alpha.FirebaseLink) resource_); + } + if (resourceCase_ == 7) { + output.writeMessage(7, (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_); + } + if (resourceCase_ == 8) { + output.writeMessage( + 8, (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_); + } + if (resourceCase_ == 11) { + output.writeMessage(11, (com.google.analytics.admin.v1alpha.ConversionEvent) resource_); + } + if (resourceCase_ == 12) { + output.writeMessage( + 12, (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_); + } + if (resourceCase_ == 13) { + output.writeMessage(13, (com.google.analytics.admin.v1alpha.CustomDimension) resource_); + } + if (resourceCase_ == 14) { + output.writeMessage(14, (com.google.analytics.admin.v1alpha.CustomMetric) resource_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (resourceCase_ == 1) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( 1, (com.google.analytics.admin.v1alpha.Account) resource_); @@ -1131,6 +1715,31 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 7, (com.google.analytics.admin.v1alpha.GoogleAdsLink) resource_); } + if (resourceCase_ == 8) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 8, (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_); + } + if (resourceCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.analytics.admin.v1alpha.ConversionEvent) resource_); + } + if (resourceCase_ == 12) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 12, (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_); + } + if (resourceCase_ == 13) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 13, (com.google.analytics.admin.v1alpha.CustomDimension) resource_); + } + if (resourceCase_ == 14) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 14, (com.google.analytics.admin.v1alpha.CustomMetric) resource_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -1172,6 +1781,22 @@ public boolean equals(final java.lang.Object obj) { case 7: if (!getGoogleAdsLink().equals(other.getGoogleAdsLink())) return false; break; + case 8: + if (!getGoogleSignalsSettings().equals(other.getGoogleSignalsSettings())) return false; + break; + case 11: + if (!getConversionEvent().equals(other.getConversionEvent())) return false; + break; + case 12: + if (!getMeasurementProtocolSecret().equals(other.getMeasurementProtocolSecret())) + return false; + break; + case 13: + if (!getCustomDimension().equals(other.getCustomDimension())) return false; + break; + case 14: + if (!getCustomMetric().equals(other.getCustomMetric())) return false; + break; case 0: default: } @@ -1215,6 +1840,26 @@ public int hashCode() { hash = (37 * hash) + GOOGLE_ADS_LINK_FIELD_NUMBER; hash = (53 * hash) + getGoogleAdsLink().hashCode(); break; + case 8: + hash = (37 * hash) + GOOGLE_SIGNALS_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getGoogleSignalsSettings().hashCode(); + break; + case 11: + hash = (37 * hash) + CONVERSION_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getConversionEvent().hashCode(); + break; + case 12: + hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getMeasurementProtocolSecret().hashCode(); + break; + case 13: + hash = (37 * hash) + CUSTOM_DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + getCustomDimension().hashCode(); + break; + case 14: + hash = (37 * hash) + CUSTOM_METRIC_FIELD_NUMBER; + hash = (53 * hash) + getCustomMetric().hashCode(); + break; case 0: default: } @@ -1458,6 +2103,41 @@ public com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResou result.resource_ = googleAdsLinkBuilder_.build(); } } + if (resourceCase_ == 8) { + if (googleSignalsSettingsBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = googleSignalsSettingsBuilder_.build(); + } + } + if (resourceCase_ == 11) { + if (conversionEventBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = conversionEventBuilder_.build(); + } + } + if (resourceCase_ == 12) { + if (measurementProtocolSecretBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = measurementProtocolSecretBuilder_.build(); + } + } + if (resourceCase_ == 13) { + if (customDimensionBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = customDimensionBuilder_.build(); + } + } + if (resourceCase_ == 14) { + if (customMetricBuilder_ == null) { + result.resource_ = resource_; + } else { + result.resource_ = customMetricBuilder_.build(); + } + } result.resourceCase_ = resourceCase_; onBuilt(); return result; @@ -1552,6 +2232,31 @@ public Builder mergeFrom( mergeGoogleAdsLink(other.getGoogleAdsLink()); break; } + case GOOGLE_SIGNALS_SETTINGS: + { + mergeGoogleSignalsSettings(other.getGoogleSignalsSettings()); + break; + } + case CONVERSION_EVENT: + { + mergeConversionEvent(other.getConversionEvent()); + break; + } + case MEASUREMENT_PROTOCOL_SECRET: + { + mergeMeasurementProtocolSecret(other.getMeasurementProtocolSecret()); + break; + } + case CUSTOM_DIMENSION: + { + mergeCustomDimension(other.getCustomDimension()); + break; + } + case CUSTOM_METRIC: + { + mergeCustomMetric(other.getCustomMetric()); + break; + } case RESOURCE_NOT_SET: { break; @@ -3089,6 +3794,1102 @@ public com.google.analytics.admin.v1alpha.GoogleAdsLinkOrBuilder getGoogleAdsLin return googleAdsLinkBuilder_; } + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder> + googleSignalsSettingsBuilder_; + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + * + * @return Whether the googleSignalsSettings field is set. + */ + @java.lang.Override + public boolean hasGoogleSignalsSettings() { + return resourceCase_ == 8; + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + * + * @return The googleSignalsSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings() { + if (googleSignalsSettingsBuilder_ == null) { + if (resourceCase_ == 8) { + return (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_; + } + return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); + } else { + if (resourceCase_ == 8) { + return googleSignalsSettingsBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + public Builder setGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings value) { + if (googleSignalsSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + googleSignalsSettingsBuilder_.setMessage(value); + } + resourceCase_ = 8; + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + public Builder setGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder builderForValue) { + if (googleSignalsSettingsBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + googleSignalsSettingsBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 8; + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + public Builder mergeGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings value) { + if (googleSignalsSettingsBuilder_ == null) { + if (resourceCase_ == 8 + && resource_ + != com.google.analytics.admin.v1alpha.GoogleSignalsSettings + .getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.newBuilder( + (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 8) { + googleSignalsSettingsBuilder_.mergeFrom(value); + } + googleSignalsSettingsBuilder_.setMessage(value); + } + resourceCase_ = 8; + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + public Builder clearGoogleSignalsSettings() { + if (googleSignalsSettingsBuilder_ == null) { + if (resourceCase_ == 8) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 8) { + resourceCase_ = 0; + resource_ = null; + } + googleSignalsSettingsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder + getGoogleSignalsSettingsBuilder() { + return getGoogleSignalsSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder + getGoogleSignalsSettingsOrBuilder() { + if ((resourceCase_ == 8) && (googleSignalsSettingsBuilder_ != null)) { + return googleSignalsSettingsBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 8) { + return (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_; + } + return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a GoogleSignalsSettings resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 8; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder> + getGoogleSignalsSettingsFieldBuilder() { + if (googleSignalsSettingsBuilder_ == null) { + if (!(resourceCase_ == 8)) { + resource_ = + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); + } + googleSignalsSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder>( + (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 8; + onChanged(); + ; + return googleSignalsSettingsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> + conversionEventBuilder_; + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + * + * @return Whether the conversionEvent field is set. + */ + @java.lang.Override + public boolean hasConversionEvent() { + return resourceCase_ == 11; + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + * + * @return The conversionEvent. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent() { + if (conversionEventBuilder_ == null) { + if (resourceCase_ == 11) { + return (com.google.analytics.admin.v1alpha.ConversionEvent) resource_; + } + return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); + } else { + if (resourceCase_ == 11) { + return conversionEventBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + public Builder setConversionEvent(com.google.analytics.admin.v1alpha.ConversionEvent value) { + if (conversionEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + conversionEventBuilder_.setMessage(value); + } + resourceCase_ = 11; + return this; + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + public Builder setConversionEvent( + com.google.analytics.admin.v1alpha.ConversionEvent.Builder builderForValue) { + if (conversionEventBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + conversionEventBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 11; + return this; + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + public Builder mergeConversionEvent( + com.google.analytics.admin.v1alpha.ConversionEvent value) { + if (conversionEventBuilder_ == null) { + if (resourceCase_ == 11 + && resource_ + != com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.ConversionEvent.newBuilder( + (com.google.analytics.admin.v1alpha.ConversionEvent) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 11) { + conversionEventBuilder_.mergeFrom(value); + } + conversionEventBuilder_.setMessage(value); + } + resourceCase_ = 11; + return this; + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + public Builder clearConversionEvent() { + if (conversionEventBuilder_ == null) { + if (resourceCase_ == 11) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 11) { + resourceCase_ = 0; + resource_ = null; + } + conversionEventBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + public com.google.analytics.admin.v1alpha.ConversionEvent.Builder + getConversionEventBuilder() { + return getConversionEventFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder + getConversionEventOrBuilder() { + if ((resourceCase_ == 11) && (conversionEventBuilder_ != null)) { + return conversionEventBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 11) { + return (com.google.analytics.admin.v1alpha.ConversionEvent) resource_; + } + return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a ConversionEvent resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 11; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> + getConversionEventFieldBuilder() { + if (conversionEventBuilder_ == null) { + if (!(resourceCase_ == 11)) { + resource_ = com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); + } + conversionEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder>( + (com.google.analytics.admin.v1alpha.ConversionEvent) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 11; + onChanged(); + ; + return conversionEventBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + measurementProtocolSecretBuilder_; + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + @java.lang.Override + public boolean hasMeasurementProtocolSecret() { + return resourceCase_ == 12; + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + * + * @return The measurementProtocolSecret. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + if (measurementProtocolSecretBuilder_ == null) { + if (resourceCase_ == 12) { + return (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_; + } + return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); + } else { + if (resourceCase_ == 12) { + return measurementProtocolSecretBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + measurementProtocolSecretBuilder_.setMessage(value); + } + resourceCase_ = 12; + return this; + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + measurementProtocolSecretBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 12; + return this; + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + public Builder mergeMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (resourceCase_ == 12 + && resource_ + != com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + .getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.newBuilder( + (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 12) { + measurementProtocolSecretBuilder_.mergeFrom(value); + } + measurementProtocolSecretBuilder_.setMessage(value); + } + resourceCase_ = 12; + return this; + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + public Builder clearMeasurementProtocolSecret() { + if (measurementProtocolSecretBuilder_ == null) { + if (resourceCase_ == 12) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 12) { + resourceCase_ = 0; + resource_ = null; + } + measurementProtocolSecretBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder + getMeasurementProtocolSecretBuilder() { + return getMeasurementProtocolSecretFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + if ((resourceCase_ == 12) && (measurementProtocolSecretBuilder_ != null)) { + return measurementProtocolSecretBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 12) { + return (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_; + } + return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a MeasurementProtocolSecret resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 12; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretFieldBuilder() { + if (measurementProtocolSecretBuilder_ == null) { + if (!(resourceCase_ == 12)) { + resource_ = + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); + } + measurementProtocolSecretBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder>( + (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 12; + onChanged(); + ; + return measurementProtocolSecretBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + customDimensionBuilder_; + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + * + * @return Whether the customDimension field is set. + */ + @java.lang.Override + public boolean hasCustomDimension() { + return resourceCase_ == 13; + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + * + * @return The customDimension. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { + if (customDimensionBuilder_ == null) { + if (resourceCase_ == 13) { + return (com.google.analytics.admin.v1alpha.CustomDimension) resource_; + } + return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); + } else { + if (resourceCase_ == 13) { + return customDimensionBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + public Builder setCustomDimension(com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + customDimensionBuilder_.setMessage(value); + } + resourceCase_ = 13; + return this; + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + public Builder setCustomDimension( + com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { + if (customDimensionBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + customDimensionBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 13; + return this; + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + public Builder mergeCustomDimension( + com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionBuilder_ == null) { + if (resourceCase_ == 13 + && resource_ + != com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.CustomDimension.newBuilder( + (com.google.analytics.admin.v1alpha.CustomDimension) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 13) { + customDimensionBuilder_.mergeFrom(value); + } + customDimensionBuilder_.setMessage(value); + } + resourceCase_ = 13; + return this; + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + public Builder clearCustomDimension() { + if (customDimensionBuilder_ == null) { + if (resourceCase_ == 13) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 13) { + resourceCase_ = 0; + resource_ = null; + } + customDimensionBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + public com.google.analytics.admin.v1alpha.CustomDimension.Builder + getCustomDimensionBuilder() { + return getCustomDimensionFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder + getCustomDimensionOrBuilder() { + if ((resourceCase_ == 13) && (customDimensionBuilder_ != null)) { + return customDimensionBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 13) { + return (com.google.analytics.admin.v1alpha.CustomDimension) resource_; + } + return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a CustomDimension resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 13; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + getCustomDimensionFieldBuilder() { + if (customDimensionBuilder_ == null) { + if (!(resourceCase_ == 13)) { + resource_ = com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); + } + customDimensionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder>( + (com.google.analytics.admin.v1alpha.CustomDimension) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 13; + onChanged(); + ; + return customDimensionBuilder_; + } + + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + customMetricBuilder_; + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + * + * @return Whether the customMetric field is set. + */ + @java.lang.Override + public boolean hasCustomMetric() { + return resourceCase_ == 14; + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + * + * @return The customMetric. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { + if (customMetricBuilder_ == null) { + if (resourceCase_ == 14) { + return (com.google.analytics.admin.v1alpha.CustomMetric) resource_; + } + return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); + } else { + if (resourceCase_ == 14) { + return customMetricBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + public Builder setCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + customMetricBuilder_.setMessage(value); + } + resourceCase_ = 14; + return this; + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + public Builder setCustomMetric( + com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { + if (customMetricBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + customMetricBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 14; + return this; + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + public Builder mergeCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricBuilder_ == null) { + if (resourceCase_ == 14 + && resource_ + != com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.CustomMetric.newBuilder( + (com.google.analytics.admin.v1alpha.CustomMetric) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 14) { + customMetricBuilder_.mergeFrom(value); + } + customMetricBuilder_.setMessage(value); + } + resourceCase_ = 14; + return this; + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + public Builder clearCustomMetric() { + if (customMetricBuilder_ == null) { + if (resourceCase_ == 14) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 14) { + resourceCase_ = 0; + resource_ = null; + } + customMetricBuilder_.clear(); + } + return this; + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + public com.google.analytics.admin.v1alpha.CustomMetric.Builder getCustomMetricBuilder() { + return getCustomMetricFieldBuilder().getBuilder(); + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { + if ((resourceCase_ == 14) && (customMetricBuilder_ != null)) { + return customMetricBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 14) { + return (com.google.analytics.admin.v1alpha.CustomMetric) resource_; + } + return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); + } + } + /** + * + * + *
+       * A snapshot of a CustomMetric resource in change history.
+       * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 14; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + getCustomMetricFieldBuilder() { + if (customMetricBuilder_ == null) { + if (!(resourceCase_ == 14)) { + resource_ = com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); + } + customMetricBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder>( + (com.google.analytics.admin.v1alpha.CustomMetric) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 14; + onChanged(); + ; + return customMetricBuilder_; + } + @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 0c12ac82..f78d42cf 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 @@ -108,6 +108,56 @@ public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMes * GOOGLE_ADS_LINK = 7; */ GOOGLE_ADS_LINK(7), + /** + * + * + *
+   * GoogleSignalsSettings resource
+   * 
+ * + * GOOGLE_SIGNALS_SETTINGS = 8; + */ + GOOGLE_SIGNALS_SETTINGS(8), + /** + * + * + *
+   * ConversionEvent resource
+   * 
+ * + * CONVERSION_EVENT = 9; + */ + CONVERSION_EVENT(9), + /** + * + * + *
+   * MeasurementProtocolSecret resource
+   * 
+ * + * MEASUREMENT_PROTOCOL_SECRET = 10; + */ + MEASUREMENT_PROTOCOL_SECRET(10), + /** + * + * + *
+   * CustomDimension resource
+   * 
+ * + * CUSTOM_DIMENSION = 11; + */ + CUSTOM_DIMENSION(11), + /** + * + * + *
+   * CustomMetric resource
+   * 
+ * + * CUSTOM_METRIC = 12; + */ + CUSTOM_METRIC(12), UNRECOGNIZED(-1), ; @@ -191,6 +241,56 @@ public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMes * GOOGLE_ADS_LINK = 7; */ public static final int GOOGLE_ADS_LINK_VALUE = 7; + /** + * + * + *
+   * GoogleSignalsSettings resource
+   * 
+ * + * GOOGLE_SIGNALS_SETTINGS = 8; + */ + public static final int GOOGLE_SIGNALS_SETTINGS_VALUE = 8; + /** + * + * + *
+   * ConversionEvent resource
+   * 
+ * + * CONVERSION_EVENT = 9; + */ + public static final int CONVERSION_EVENT_VALUE = 9; + /** + * + * + *
+   * MeasurementProtocolSecret resource
+   * 
+ * + * MEASUREMENT_PROTOCOL_SECRET = 10; + */ + public static final int MEASUREMENT_PROTOCOL_SECRET_VALUE = 10; + /** + * + * + *
+   * CustomDimension resource
+   * 
+ * + * CUSTOM_DIMENSION = 11; + */ + public static final int CUSTOM_DIMENSION_VALUE = 11; + /** + * + * + *
+   * CustomMetric resource
+   * 
+ * + * CUSTOM_METRIC = 12; + */ + public static final int CUSTOM_METRIC_VALUE = 12; public final int getNumber() { if (this == UNRECOGNIZED) { @@ -232,6 +332,16 @@ public static ChangeHistoryResourceType forNumber(int value) { return FIREBASE_LINK; case 7: return GOOGLE_ADS_LINK; + case 8: + return GOOGLE_SIGNALS_SETTINGS; + case 9: + return CONVERSION_EVENT; + case 10: + return MEASUREMENT_PROTOCOL_SECRET; + case 11: + return CUSTOM_DIMENSION; + case 12: + return CUSTOM_METRIC; 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 new file mode 100644 index 00000000..037f5a97 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java @@ -0,0 +1,1212 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 conversion event in a Google Analytics property.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ConversionEvent} + */ +public final class ConversionEvent extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ConversionEvent) + ConversionEventOrBuilder { + private static final long serialVersionUID = 0L; + // Use ConversionEvent.newBuilder() to construct. + private ConversionEvent(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ConversionEvent() { + name_ = ""; + eventName_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ConversionEvent(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ConversionEvent( + 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(); + + eventName_ = s; + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (createTime_ != null) { + subBuilder = createTime_.toBuilder(); + } + createTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(createTime_); + createTime_ = subBuilder.buildPartial(); + } + + break; + } + case 32: + { + isDeletable_ = 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_ConversionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ConversionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ConversionEvent.class, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. Resource name of this conversion event.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * 
+ * + * 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 of this conversion event.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * 
+ * + * 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_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object eventName_; + /** + * + * + *
+   * Immutable. The event name for this conversion event.
+   * Examples: 'click', 'purchase'
+   * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The eventName. + */ + @java.lang.Override + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventName_ = s; + return s; + } + } + /** + * + * + *
+   * Immutable. The event name for this conversion event.
+   * Examples: 'click', 'purchase'
+   * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for eventName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CREATE_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp createTime_; + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return createTime_ != null; + } + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return getCreateTime(); + } + + public static final int IS_DELETABLE_FIELD_NUMBER = 4; + private boolean isDeletable_; + /** + * + * + *
+   * Output only. If set, this event can currently be deleted via DeleteConversionEvent.
+   * 
+ * + * bool is_deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isDeletable. + */ + @java.lang.Override + public boolean getIsDeletable() { + return isDeletable_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (!getEventNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, eventName_); + } + if (createTime_ != null) { + output.writeMessage(3, getCreateTime()); + } + if (isDeletable_ != false) { + output.writeBool(4, isDeletable_); + } + 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 (!getEventNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, eventName_); + } + if (createTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getCreateTime()); + } + if (isDeletable_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, isDeletable_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + 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.ConversionEvent)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ConversionEvent other = + (com.google.analytics.admin.v1alpha.ConversionEvent) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEventName().equals(other.getEventName())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (getIsDeletable() != other.getIsDeletable()) return false; + if (!unknownFields.equals(other.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_NAME_FIELD_NUMBER; + hash = (53 * hash) + getEventName().hashCode(); + if (hasCreateTime()) { + 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 = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( + 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.ConversionEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( + com.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.ConversionEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent 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.ConversionEvent parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseFrom( + java.io.InputStream 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.ConversionEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent parseDelimitedFrom( + java.io.InputStream 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.ConversionEvent 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.ConversionEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ConversionEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 conversion event in a Google Analytics property.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ConversionEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ConversionEvent) + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_ConversionEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ConversionEvent.class, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ConversionEvent.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_ = ""; + + eventName_ = ""; + + if (createTimeBuilder_ == null) { + createTime_ = null; + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + isDeletable_ = 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_ConversionEvent_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent build() { + com.google.analytics.admin.v1alpha.ConversionEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent buildPartial() { + com.google.analytics.admin.v1alpha.ConversionEvent result = + new com.google.analytics.admin.v1alpha.ConversionEvent(this); + result.name_ = name_; + result.eventName_ = eventName_; + if (createTimeBuilder_ == null) { + result.createTime_ = createTime_; + } else { + result.createTime_ = createTimeBuilder_.build(); + } + result.isDeletable_ = isDeletable_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.ConversionEvent) { + return mergeFrom((com.google.analytics.admin.v1alpha.ConversionEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ConversionEvent other) { + if (other == com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getEventName().isEmpty()) { + eventName_ = other.eventName_; + onChanged(); + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.getIsDeletable() != false) { + setIsDeletable(other.getIsDeletable()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.ConversionEvent parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ConversionEvent) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this conversion event.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * 
+ * + * 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 of this conversion event.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * 
+ * + * 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 of this conversion event.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * 
+ * + * 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 of this conversion event.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * 
+ * + * 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 of this conversion event.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * 
+ * + * 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 eventName_ = ""; + /** + * + * + *
+     * Immutable. The event name for this conversion event.
+     * Examples: 'click', 'purchase'
+     * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The eventName. + */ + public java.lang.String getEventName() { + java.lang.Object ref = eventName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + eventName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Immutable. The event name for this conversion event.
+     * Examples: 'click', 'purchase'
+     * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for eventName. + */ + public com.google.protobuf.ByteString getEventNameBytes() { + java.lang.Object ref = eventName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + eventName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Immutable. The event name for this conversion event.
+     * Examples: 'click', 'purchase'
+     * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The eventName to set. + * @return This builder for chaining. + */ + public Builder setEventName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + eventName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The event name for this conversion event.
+     * Examples: 'click', 'purchase'
+     * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearEventName() { + + eventName_ = getDefaultInstance().getEventName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Immutable. The event name for this conversion event.
+     * Examples: 'click', 'purchase'
+     * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for eventName to set. + * @return This builder for chaining. + */ + public Builder setEventNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + eventName_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return createTimeBuilder_ != null || createTime_ != null; + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + onChanged(); + } else { + createTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + onChanged(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (createTime_ != null) { + createTime_ = + com.google.protobuf.Timestamp.newBuilder(createTime_).mergeFrom(value).buildPartial(); + } else { + createTime_ = value; + } + onChanged(); + } else { + createTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + if (createTimeBuilder_ == null) { + createTime_ = null; + onChanged(); + } else { + createTime_ = null; + createTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + + onChanged(); + return getCreateTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + /** + * + * + *
+     * Output only. Time when this conversion event was created in the property.
+     * 
+ * + * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private boolean isDeletable_; + /** + * + * + *
+     * Output only. If set, this event can currently be deleted via DeleteConversionEvent.
+     * 
+ * + * bool is_deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The isDeletable. + */ + @java.lang.Override + public boolean getIsDeletable() { + return isDeletable_; + } + /** + * + * + *
+     * Output only. If set, this event can currently be deleted via DeleteConversionEvent.
+     * 
+ * + * bool is_deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The isDeletable to set. + * @return This builder for chaining. + */ + public Builder setIsDeletable(boolean value) { + + isDeletable_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. If set, this event can currently be deleted via DeleteConversionEvent.
+     * 
+ * + * bool is_deletable = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearIsDeletable() { + + isDeletable_ = 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.ConversionEvent) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ConversionEvent) + private static final com.google.analytics.admin.v1alpha.ConversionEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ConversionEvent(); + } + + public static com.google.analytics.admin.v1alpha.ConversionEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversionEvent parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ConversionEvent(input, extensionRegistry); + } + }; + + public static com.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.ConversionEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventName.java new file mode 100644 index 00000000..30e7609e --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventName.java @@ -0,0 +1,198 @@ +/* + * 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 ConversionEventName implements ResourceName { + private static final PathTemplate PROPERTY_CONVERSION_EVENT = + PathTemplate.createWithoutUrlEncoding( + "properties/{property}/conversionEvents/{conversion_event}"); + private volatile Map fieldValuesMap; + private final String property; + private final String conversionEvent; + + @Deprecated + protected ConversionEventName() { + property = null; + conversionEvent = null; + } + + private ConversionEventName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + conversionEvent = Preconditions.checkNotNull(builder.getConversionEvent()); + } + + public String getProperty() { + return property; + } + + public String getConversionEvent() { + return conversionEvent; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static ConversionEventName of(String property, String conversionEvent) { + return newBuilder().setProperty(property).setConversionEvent(conversionEvent).build(); + } + + public static String format(String property, String conversionEvent) { + return newBuilder() + .setProperty(property) + .setConversionEvent(conversionEvent) + .build() + .toString(); + } + + public static ConversionEventName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY_CONVERSION_EVENT.validatedMatch( + formattedString, "ConversionEventName.parse: formattedString not in valid format"); + return of(matchMap.get("property"), matchMap.get("conversion_event")); + } + + 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 (ConversionEventName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROPERTY_CONVERSION_EVENT.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 (conversionEvent != null) { + fieldMapBuilder.put("conversion_event", conversionEvent); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROPERTY_CONVERSION_EVENT.instantiate( + "property", property, "conversion_event", conversionEvent); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + ConversionEventName that = ((ConversionEventName) o); + return Objects.equals(this.property, that.property) + && Objects.equals(this.conversionEvent, that.conversionEvent); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(property); + h *= 1000003; + h ^= Objects.hashCode(conversionEvent); + return h; + } + + /** Builder for properties/{property}/conversionEvents/{conversion_event}. */ + public static class Builder { + private String property; + private String conversionEvent; + + protected Builder() {} + + public String getProperty() { + return property; + } + + public String getConversionEvent() { + return conversionEvent; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + public Builder setConversionEvent(String conversionEvent) { + this.conversionEvent = conversionEvent; + return this; + } + + private Builder(ConversionEventName conversionEventName) { + property = conversionEventName.property; + conversionEvent = conversionEventName.conversionEvent; + } + + public ConversionEventName build() { + return new ConversionEventName(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 new file mode 100644 index 00000000..4ff6a999 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 ConversionEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ConversionEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this conversion event.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of this conversion event.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Immutable. The event name for this conversion event.
+   * Examples: 'click', 'purchase'
+   * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The eventName. + */ + java.lang.String getEventName(); + /** + * + * + *
+   * Immutable. The event name for this conversion event.
+   * Examples: 'click', 'purchase'
+   * 
+ * + * string event_name = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for eventName. + */ + com.google.protobuf.ByteString getEventNameBytes(); + + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + /** + * + * + *
+   * Output only. Time when this conversion event was created in the property.
+   * 
+ * + * .google.protobuf.Timestamp create_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + 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]; + * + * @return The isDeletable. + */ + boolean getIsDeletable(); +} 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 new file mode 100644 index 00000000..efc7e877 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequest.java @@ -0,0 +1,969 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 CreateConversionEvent RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateConversionEventRequest} + */ +public final class CreateConversionEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateConversionEventRequest) + CreateConversionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateConversionEventRequest.newBuilder() to construct. + private CreateConversionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateConversionEventRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateConversionEventRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateConversionEventRequest( + 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.ConversionEvent.Builder subBuilder = null; + if (conversionEvent_ != null) { + subBuilder = conversionEvent_.toBuilder(); + } + conversionEvent_ = + input.readMessage( + com.google.analytics.admin.v1alpha.ConversionEvent.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(conversionEvent_); + conversionEvent_ = subBuilder.buildPartial(); + } + + break; + } + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + + parent_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest.class, + com.google.analytics.admin.v1alpha.CreateConversionEventRequest.Builder.class); + } + + public static final int CONVERSION_EVENT_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.ConversionEvent conversionEvent_; + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionEvent field is set. + */ + @java.lang.Override + public boolean hasConversionEvent() { + return conversionEvent_ != null; + } + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionEvent. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent() { + return conversionEvent_ == null + ? com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance() + : conversionEvent_; + } + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventOrBuilder() { + return getConversionEvent(); + } + + public static final int PARENT_FIELD_NUMBER = 2; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the parent property where this conversion event will
+   * be created. Format: properties/123
+   * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the parent property where this conversion event will
+   * be created. Format: properties/123
+   * 
+ * + * + * string parent = 2 [(.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; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (conversionEvent_ != null) { + output.writeMessage(1, getConversionEvent()); + } + if (!getParentBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parent_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (conversionEvent_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getConversionEvent()); + } + if (!getParentBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.analytics.admin.v1alpha.CreateConversionEventRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateConversionEventRequest other = + (com.google.analytics.admin.v1alpha.CreateConversionEventRequest) obj; + + if (hasConversionEvent() != other.hasConversionEvent()) return false; + if (hasConversionEvent()) { + if (!getConversionEvent().equals(other.getConversionEvent())) return false; + } + if (!getParent().equals(other.getParent())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasConversionEvent()) { + hash = (37 * hash) + CONVERSION_EVENT_FIELD_NUMBER; + hash = (53 * hash) + getConversionEvent().hashCode(); + } + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + 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.CreateConversionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + com.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.CreateConversionEventRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest 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.CreateConversionEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseFrom( + java.io.InputStream 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.CreateConversionEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest parseDelimitedFrom( + java.io.InputStream 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.CreateConversionEventRequest 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.CreateConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.CreateConversionEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 CreateConversionEvent RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateConversionEventRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateConversionEventRequest) + com.google.analytics.admin.v1alpha.CreateConversionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest.class, + com.google.analytics.admin.v1alpha.CreateConversionEventRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateConversionEventRequest.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 (conversionEventBuilder_ == null) { + conversionEvent_ = null; + } else { + conversionEvent_ = null; + conversionEventBuilder_ = null; + } + parent_ = ""; + + 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_CreateConversionEventRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateConversionEventRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateConversionEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateConversionEventRequest build() { + com.google.analytics.admin.v1alpha.CreateConversionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateConversionEventRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateConversionEventRequest result = + new com.google.analytics.admin.v1alpha.CreateConversionEventRequest(this); + if (conversionEventBuilder_ == null) { + result.conversionEvent_ = conversionEvent_; + } else { + result.conversionEvent_ = conversionEventBuilder_.build(); + } + result.parent_ = parent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.CreateConversionEventRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateConversionEventRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateConversionEventRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateConversionEventRequest.getDefaultInstance()) + return this; + if (other.hasConversionEvent()) { + mergeConversionEvent(other.getConversionEvent()); + } + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.analytics.admin.v1alpha.CreateConversionEventRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.CreateConversionEventRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.ConversionEvent conversionEvent_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> + conversionEventBuilder_; + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionEvent field is set. + */ + public boolean hasConversionEvent() { + return conversionEventBuilder_ != null || conversionEvent_ != null; + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionEvent. + */ + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent() { + if (conversionEventBuilder_ == null) { + return conversionEvent_ == null + ? com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance() + : conversionEvent_; + } else { + return conversionEventBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConversionEvent(com.google.analytics.admin.v1alpha.ConversionEvent value) { + if (conversionEventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + conversionEvent_ = value; + onChanged(); + } else { + conversionEventBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConversionEvent( + com.google.analytics.admin.v1alpha.ConversionEvent.Builder builderForValue) { + if (conversionEventBuilder_ == null) { + conversionEvent_ = builderForValue.build(); + onChanged(); + } else { + conversionEventBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConversionEvent(com.google.analytics.admin.v1alpha.ConversionEvent value) { + if (conversionEventBuilder_ == null) { + if (conversionEvent_ != null) { + conversionEvent_ = + com.google.analytics.admin.v1alpha.ConversionEvent.newBuilder(conversionEvent_) + .mergeFrom(value) + .buildPartial(); + } else { + conversionEvent_ = value; + } + onChanged(); + } else { + conversionEventBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConversionEvent() { + if (conversionEventBuilder_ == null) { + conversionEvent_ = null; + onChanged(); + } else { + conversionEvent_ = null; + conversionEventBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ConversionEvent.Builder getConversionEventBuilder() { + + onChanged(); + return getConversionEventFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder + getConversionEventOrBuilder() { + if (conversionEventBuilder_ != null) { + return conversionEventBuilder_.getMessageOrBuilder(); + } else { + return conversionEvent_ == null + ? com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance() + : conversionEvent_; + } + } + /** + * + * + *
+     * Required. The conversion event to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> + getConversionEventFieldBuilder() { + if (conversionEventBuilder_ == null) { + conversionEventBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder>( + getConversionEvent(), getParentForChildren(), isClean()); + conversionEvent_ = null; + } + return conversionEventBuilder_; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the parent property where this conversion event will
+     * be created. Format: properties/123
+     * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the parent property where this conversion event will
+     * be created. Format: properties/123
+     * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the parent property where this conversion event will
+     * be created. Format: properties/123
+     * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the parent property where this conversion event will
+     * be created. Format: properties/123
+     * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the parent property where this conversion event will
+     * be created. Format: properties/123
+     * 
+ * + * + * string parent = 2 [(.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; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.CreateConversionEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateConversionEventRequest) + private static final com.google.analytics.admin.v1alpha.CreateConversionEventRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateConversionEventRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateConversionEventRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateConversionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateConversionEventRequest(input, extensionRegistry); + } + }; + + public static com.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.CreateConversionEventRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequestOrBuilder.java new file mode 100644 index 00000000..9efd85dc --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateConversionEventRequestOrBuilder.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 CreateConversionEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateConversionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the conversionEvent field is set. + */ + boolean hasConversionEvent(); + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The conversionEvent. + */ + com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvent(); + /** + * + * + *
+   * Required. The conversion event to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.ConversionEvent conversion_event = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventOrBuilder(); + + /** + * + * + *
+   * Required. The resource name of the parent property where this conversion event will
+   * be created. Format: properties/123
+   * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the parent property where this conversion event will
+   * be created. Format: properties/123
+   * 
+ * + * + * string parent = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); +} 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 new file mode 100644 index 00000000..09b2aba6 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequest.java @@ -0,0 +1,962 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 CreateCustomDimension RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateCustomDimensionRequest} + */ +public final class CreateCustomDimensionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateCustomDimensionRequest) + CreateCustomDimensionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateCustomDimensionRequest.newBuilder() to construct. + private CreateCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateCustomDimensionRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateCustomDimensionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateCustomDimensionRequest( + 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.CustomDimension.Builder subBuilder = null; + if (customDimension_ != null) { + subBuilder = customDimension_.toBuilder(); + } + customDimension_ = + input.readMessage( + com.google.analytics.admin.v1alpha.CustomDimension.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customDimension_); + customDimension_ = 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_CreateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.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 CUSTOM_DIMENSION_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.CustomDimension customDimension_; + /** + * + * + *
+   * Required. The CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customDimension field is set. + */ + @java.lang.Override + public boolean hasCustomDimension() { + return customDimension_ != null; + } + /** + * + * + *
+   * Required. The CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customDimension. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { + return customDimension_ == null + ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() + : customDimension_; + } + /** + * + * + *
+   * Required. The CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder() { + return getCustomDimension(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (customDimension_ != null) { + output.writeMessage(2, getCustomDimension()); + } + 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 (customDimension_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomDimension()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + 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.CreateCustomDimensionRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest other = + (com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasCustomDimension() != other.hasCustomDimension()) return false; + if (hasCustomDimension()) { + if (!getCustomDimension().equals(other.getCustomDimension())) return false; + } + if (!unknownFields.equals(other.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 (hasCustomDimension()) { + hash = (37 * hash) + CUSTOM_DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + getCustomDimension().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + 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.CreateCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + com.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.CreateCustomDimensionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest 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.CreateCustomDimensionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseFrom( + java.io.InputStream 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.CreateCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream 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.CreateCustomDimensionRequest 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.CreateCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.CreateCustomDimensionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 CreateCustomDimension RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateCustomDimensionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateCustomDimensionRequest) + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.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 (customDimensionBuilder_ == null) { + customDimension_ = null; + } else { + customDimension_ = null; + customDimensionBuilder_ = 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_CreateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest build() { + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest result = + new com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest(this); + result.parent_ = parent_; + if (customDimensionBuilder_ == null) { + result.customDimension_ = customDimension_; + } else { + result.customDimension_ = customDimensionBuilder_.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.CreateCustomDimensionRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasCustomDimension()) { + mergeCustomDimension(other.getCustomDimension()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.CreateCustomDimensionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest) + 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.CustomDimension customDimension_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + customDimensionBuilder_; + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customDimension field is set. + */ + public boolean hasCustomDimension() { + return customDimensionBuilder_ != null || customDimension_ != null; + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customDimension. + */ + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { + if (customDimensionBuilder_ == null) { + return customDimension_ == null + ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() + : customDimension_; + } else { + return customDimensionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomDimension(com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customDimension_ = value; + onChanged(); + } else { + customDimensionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomDimension( + com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { + if (customDimensionBuilder_ == null) { + customDimension_ = builderForValue.build(); + onChanged(); + } else { + customDimensionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCustomDimension(com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionBuilder_ == null) { + if (customDimension_ != null) { + customDimension_ = + com.google.analytics.admin.v1alpha.CustomDimension.newBuilder(customDimension_) + .mergeFrom(value) + .buildPartial(); + } else { + customDimension_ = value; + } + onChanged(); + } else { + customDimensionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCustomDimension() { + if (customDimensionBuilder_ == null) { + customDimension_ = null; + onChanged(); + } else { + customDimension_ = null; + customDimensionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.CustomDimension.Builder getCustomDimensionBuilder() { + + onChanged(); + return getCustomDimensionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder + getCustomDimensionOrBuilder() { + if (customDimensionBuilder_ != null) { + return customDimensionBuilder_.getMessageOrBuilder(); + } else { + return customDimension_ == null + ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() + : customDimension_; + } + } + /** + * + * + *
+     * Required. The CustomDimension to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + getCustomDimensionFieldBuilder() { + if (customDimensionBuilder_ == null) { + customDimensionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder>( + getCustomDimension(), getParentForChildren(), isClean()); + customDimension_ = null; + } + return customDimensionBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.CreateCustomDimensionRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateCustomDimensionRequest) + private static final com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomDimensionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCustomDimensionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCustomDimensionRequest(input, extensionRegistry); + } + }; + + public static com.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.CreateCustomDimensionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequestOrBuilder.java new file mode 100644 index 00000000..a49f402b --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomDimensionRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateCustomDimensionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateCustomDimensionRequest) + 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 CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customDimension field is set. + */ + boolean hasCustomDimension(); + /** + * + * + *
+   * Required. The CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customDimension. + */ + com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension(); + /** + * + * + *
+   * Required. The CustomDimension to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder(); +} 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 new file mode 100644 index 00000000..b6032c7d --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequest.java @@ -0,0 +1,956 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 CreateCustomMetric RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateCustomMetricRequest} + */ +public final class CreateCustomMetricRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateCustomMetricRequest) + CreateCustomMetricRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateCustomMetricRequest.newBuilder() to construct. + private CreateCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateCustomMetricRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateCustomMetricRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateCustomMetricRequest( + 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.CustomMetric.Builder subBuilder = null; + if (customMetric_ != null) { + subBuilder = customMetric_.toBuilder(); + } + customMetric_ = + input.readMessage( + com.google.analytics.admin.v1alpha.CustomMetric.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customMetric_); + customMetric_ = 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_CreateCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.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 CUSTOM_METRIC_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.CustomMetric customMetric_; + /** + * + * + *
+   * Required. The CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customMetric field is set. + */ + @java.lang.Override + public boolean hasCustomMetric() { + return customMetric_ != null; + } + /** + * + * + *
+   * Required. The CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customMetric. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { + return customMetric_ == null + ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() + : customMetric_; + } + /** + * + * + *
+   * Required. The CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { + return getCustomMetric(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (customMetric_ != null) { + output.writeMessage(2, getCustomMetric()); + } + 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 (customMetric_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getCustomMetric()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + 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.CreateCustomMetricRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest other = + (com.google.analytics.admin.v1alpha.CreateCustomMetricRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasCustomMetric() != other.hasCustomMetric()) return false; + if (hasCustomMetric()) { + if (!getCustomMetric().equals(other.getCustomMetric())) return false; + } + if (!unknownFields.equals(other.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 (hasCustomMetric()) { + hash = (37 * hash) + CUSTOM_METRIC_FIELD_NUMBER; + hash = (53 * hash) + getCustomMetric().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( + 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.CreateCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( + com.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.CreateCustomMetricRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest 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.CreateCustomMetricRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseFrom( + java.io.InputStream 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.CreateCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest parseDelimitedFrom( + java.io.InputStream 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.CreateCustomMetricRequest 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.CreateCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.CreateCustomMetricRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 CreateCustomMetric RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateCustomMetricRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateCustomMetricRequest) + com.google.analytics.admin.v1alpha.CreateCustomMetricRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.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 (customMetricBuilder_ == null) { + customMetric_ = null; + } else { + customMetric_ = null; + customMetricBuilder_ = 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_CreateCustomMetricRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateCustomMetricRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateCustomMetricRequest build() { + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateCustomMetricRequest buildPartial() { + com.google.analytics.admin.v1alpha.CreateCustomMetricRequest result = + new com.google.analytics.admin.v1alpha.CreateCustomMetricRequest(this); + result.parent_ = parent_; + if (customMetricBuilder_ == null) { + result.customMetric_ = customMetric_; + } else { + result.customMetric_ = customMetricBuilder_.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.CreateCustomMetricRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.CreateCustomMetricRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CreateCustomMetricRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateCustomMetricRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasCustomMetric()) { + mergeCustomMetric(other.getCustomMetric()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.CreateCustomMetricRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.CreateCustomMetricRequest) 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.CustomMetric customMetric_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + customMetricBuilder_; + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customMetric field is set. + */ + public boolean hasCustomMetric() { + return customMetricBuilder_ != null || customMetric_ != null; + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customMetric. + */ + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { + if (customMetricBuilder_ == null) { + return customMetric_ == null + ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() + : customMetric_; + } else { + return customMetricBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customMetric_ = value; + onChanged(); + } else { + customMetricBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setCustomMetric( + com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { + if (customMetricBuilder_ == null) { + customMetric_ = builderForValue.build(); + onChanged(); + } else { + customMetricBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricBuilder_ == null) { + if (customMetric_ != null) { + customMetric_ = + com.google.analytics.admin.v1alpha.CustomMetric.newBuilder(customMetric_) + .mergeFrom(value) + .buildPartial(); + } else { + customMetric_ = value; + } + onChanged(); + } else { + customMetricBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearCustomMetric() { + if (customMetricBuilder_ == null) { + customMetric_ = null; + onChanged(); + } else { + customMetric_ = null; + customMetricBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.CustomMetric.Builder getCustomMetricBuilder() { + + onChanged(); + return getCustomMetricFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { + if (customMetricBuilder_ != null) { + return customMetricBuilder_.getMessageOrBuilder(); + } else { + return customMetric_ == null + ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() + : customMetric_; + } + } + /** + * + * + *
+     * Required. The CustomMetric to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + getCustomMetricFieldBuilder() { + if (customMetricBuilder_ == null) { + customMetricBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder>( + getCustomMetric(), getParentForChildren(), isClean()); + customMetric_ = null; + } + return customMetricBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.CreateCustomMetricRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateCustomMetricRequest) + private static final com.google.analytics.admin.v1alpha.CreateCustomMetricRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CreateCustomMetricRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateCustomMetricRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateCustomMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateCustomMetricRequest(input, extensionRegistry); + } + }; + + public static com.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.CreateCustomMetricRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequestOrBuilder.java new file mode 100644 index 00000000..1cf913ab --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateCustomMetricRequestOrBuilder.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface CreateCustomMetricRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateCustomMetricRequest) + 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 CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the customMetric field is set. + */ + boolean hasCustomMetric(); + /** + * + * + *
+   * Required. The CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The customMetric. + */ + com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric(); + /** + * + * + *
+   * Required. The CustomMetric to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder(); +} 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 new file mode 100644 index 00000000..3cc5c21c --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequest.java @@ -0,0 +1,1008 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 CreateMeasurementProtocolSecret RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} + */ +public final class CreateMeasurementProtocolSecretRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) + CreateMeasurementProtocolSecretRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CreateMeasurementProtocolSecretRequest.newBuilder() to construct. + private CreateMeasurementProtocolSecretRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CreateMeasurementProtocolSecretRequest() { + parent_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CreateMeasurementProtocolSecretRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CreateMeasurementProtocolSecretRequest( + 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.MeasurementProtocolSecret.Builder subBuilder = + null; + if (measurementProtocolSecret_ != null) { + subBuilder = measurementProtocolSecret_.toBuilder(); + } + measurementProtocolSecret_ = + input.readMessage( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(measurementProtocolSecret_); + measurementProtocolSecret_ = 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_CreateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.Builder + .class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The parent resource where this secret will be created.
+   * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
+   * may be a parent.
+   * Format: properties/{property}/webDataStreams/{webDataStream}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The parent resource where this secret will be created.
+   * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
+   * may be a parent.
+   * Format: properties/{property}/webDataStreams/{webDataStream}
+   * 
+ * + * + * 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 MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER = 2; + private com.google.analytics.admin.v1alpha.MeasurementProtocolSecret measurementProtocolSecret_; + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + @java.lang.Override + public boolean hasMeasurementProtocolSecret() { + return measurementProtocolSecret_ != null; + } + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + return getMeasurementProtocolSecret(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (measurementProtocolSecret_ != null) { + output.writeMessage(2, getMeasurementProtocolSecret()); + } + 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 (measurementProtocolSecret_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, getMeasurementProtocolSecret()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + 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.CreateMeasurementProtocolSecretRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest other = + (com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasMeasurementProtocolSecret() != other.hasMeasurementProtocolSecret()) return false; + if (hasMeasurementProtocolSecret()) { + if (!getMeasurementProtocolSecret().equals(other.getMeasurementProtocolSecret())) + return false; + } + if (!unknownFields.equals(other.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 (hasMeasurementProtocolSecret()) { + hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getMeasurementProtocolSecret().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + 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.CreateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + com.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.CreateMeasurementProtocolSecretRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest 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.CreateMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream 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.CreateMeasurementProtocolSecretRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + parseDelimitedFrom( + java.io.InputStream 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.CreateMeasurementProtocolSecretRequest 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.CreateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.CreateMeasurementProtocolSecretRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 CreateMeasurementProtocolSecret RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_CreateMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest.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 (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecret_ = null; + } else { + measurementProtocolSecret_ = null; + measurementProtocolSecretBuilder_ = 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_CreateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest build() { + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + buildPartial() { + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest result = + new com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest(this); + result.parent_ = parent_; + if (measurementProtocolSecretBuilder_ == null) { + result.measurementProtocolSecret_ = measurementProtocolSecret_; + } else { + result.measurementProtocolSecret_ = measurementProtocolSecretBuilder_.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.CreateMeasurementProtocolSecretRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest other) { + if (other + == com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + .getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + onChanged(); + } + if (other.hasMeasurementProtocolSecret()) { + mergeMeasurementProtocolSecret(other.getMeasurementProtocolSecret()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.CreateMeasurementProtocolSecretRequest parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The parent resource where this secret will be created.
+     * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
+     * may be a parent.
+     * Format: properties/{property}/webDataStreams/{webDataStream}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The parent resource where this secret will be created.
+     * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
+     * may be a parent.
+     * Format: properties/{property}/webDataStreams/{webDataStream}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The parent resource where this secret will be created.
+     * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
+     * may be a parent.
+     * Format: properties/{property}/webDataStreams/{webDataStream}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent resource where this secret will be created.
+     * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
+     * may be a parent.
+     * Format: properties/{property}/webDataStreams/{webDataStream}
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The parent resource where this secret will be created.
+     * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
+     * may be a parent.
+     * Format: properties/{property}/webDataStreams/{webDataStream}
+     * 
+ * + * + * 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.MeasurementProtocolSecret measurementProtocolSecret_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + measurementProtocolSecretBuilder_; + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + public boolean hasMeasurementProtocolSecret() { + return measurementProtocolSecretBuilder_ != null || measurementProtocolSecret_ != null; + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + if (measurementProtocolSecretBuilder_ == null) { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } else { + return measurementProtocolSecretBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + measurementProtocolSecret_ = value; + onChanged(); + } else { + measurementProtocolSecretBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecret_ = builderForValue.build(); + onChanged(); + } else { + measurementProtocolSecretBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (measurementProtocolSecret_ != null) { + measurementProtocolSecret_ = + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.newBuilder( + measurementProtocolSecret_) + .mergeFrom(value) + .buildPartial(); + } else { + measurementProtocolSecret_ = value; + } + onChanged(); + } else { + measurementProtocolSecretBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMeasurementProtocolSecret() { + if (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecret_ = null; + onChanged(); + } else { + measurementProtocolSecret_ = null; + measurementProtocolSecretBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder + getMeasurementProtocolSecretBuilder() { + + onChanged(); + return getMeasurementProtocolSecretFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + if (measurementProtocolSecretBuilder_ != null) { + return measurementProtocolSecretBuilder_.getMessageOrBuilder(); + } else { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } + } + /** + * + * + *
+     * Required. The measurement protocol secret to create.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretFieldBuilder() { + if (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecretBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder>( + getMeasurementProtocolSecret(), getParentForChildren(), isClean()); + measurementProtocolSecret_ = null; + } + return measurementProtocolSecretBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @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.CreateMeasurementProtocolSecretRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) + private static final com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest(); + } + + public static com.google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateMeasurementProtocolSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CreateMeasurementProtocolSecretRequest(input, extensionRegistry); + } + }; + + public static com.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.CreateMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequestOrBuilder.java new file mode 100644 index 00000000..4bcf46fd --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CreateMeasurementProtocolSecretRequestOrBuilder.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 CreateMeasurementProtocolSecretRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CreateMeasurementProtocolSecretRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The parent resource where this secret will be created.
+   * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
+   * may be a parent.
+   * Format: properties/{property}/webDataStreams/{webDataStream}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The parent resource where this secret will be created.
+   * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
+   * may be a parent.
+   * Format: properties/{property}/webDataStreams/{webDataStream}
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + boolean hasMeasurementProtocolSecret(); + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecret(); + /** + * + * + *
+   * Required. The measurement protocol secret to create.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder(); +} 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 new file mode 100644 index 00000000..0ed322a0 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java @@ -0,0 +1,1696 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 definition for a CustomDimension.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CustomDimension} + */ +public final class CustomDimension extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CustomDimension) + CustomDimensionOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomDimension.newBuilder() to construct. + private CustomDimension(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomDimension() { + name_ = ""; + parameterName_ = ""; + displayName_ = ""; + description_ = ""; + scope_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomDimension(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CustomDimension( + 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(); + + parameterName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 40: + { + int rawValue = input.readEnum(); + + scope_ = rawValue; + break; + } + case 48: + { + disallowAdsPersonalization_ = 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_CustomDimension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomDimension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CustomDimension.class, + com.google.analytics.admin.v1alpha.CustomDimension.Builder.class); + } + + /** + * + * + *
+   * Valid values for the scope of this dimension.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.CustomDimension.DimensionScope} + */ + public enum DimensionScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Scope unknown or not specified.
+     * 
+ * + * DIMENSION_SCOPE_UNSPECIFIED = 0; + */ + DIMENSION_SCOPE_UNSPECIFIED(0), + /** + * + * + *
+     * Dimension scoped to an event.
+     * 
+ * + * EVENT = 1; + */ + EVENT(1), + /** + * + * + *
+     * Dimension scoped to a user.
+     * 
+ * + * USER = 2; + */ + USER(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Scope unknown or not specified.
+     * 
+ * + * DIMENSION_SCOPE_UNSPECIFIED = 0; + */ + public static final int DIMENSION_SCOPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Dimension scoped to an event.
+     * 
+ * + * EVENT = 1; + */ + public static final int EVENT_VALUE = 1; + /** + * + * + *
+     * Dimension scoped to a user.
+     * 
+ * + * USER = 2; + */ + public static final int USER_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 DimensionScope 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 DimensionScope forNumber(int value) { + switch (value) { + case 0: + return DIMENSION_SCOPE_UNSPECIFIED; + case 1: + return EVENT; + case 2: + return USER; + 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 DimensionScope findValueByNumber(int number) { + return DimensionScope.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.CustomDimension.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final DimensionScope[] VALUES = values(); + + public static DimensionScope 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 DimensionScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.CustomDimension.DimensionScope) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. Resource name for this CustomDimension resource.
+   * Format: properties/{property}/customDimensions/{customDimension}
+   * 
+ * + * 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 CustomDimension resource.
+   * Format: properties/{property}/customDimensions/{customDimension}
+   * 
+ * + * 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 PARAMETER_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object parameterName_; + /** + * + * + *
+   * Required. Immutable. Tagging parameter name for this custom dimension.
+   * If this is a user-scoped dimension, then this is the user property name.
+   * If this is an event-scoped dimension, then this is the event parameter
+   * name.
+   * May only contain alphanumeric and underscore characters, starting with a
+   * letter. Max length of 24 characters for user-scoped dimensions, 40
+   * characters for event-scoped dimensions.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + @java.lang.Override + public java.lang.String getParameterName() { + java.lang.Object ref = parameterName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameterName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Immutable. Tagging parameter name for this custom dimension.
+   * If this is a user-scoped dimension, then this is the user property name.
+   * If this is an event-scoped dimension, then this is the event parameter
+   * name.
+   * May only contain alphanumeric and underscore characters, starting with a
+   * letter. Max length of 24 characters for user-scoped dimensions, 40
+   * characters for event-scoped dimensions.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParameterNameBytes() { + java.lang.Object ref = parameterName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Required. Display name for this custom dimension as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Display name for this custom dimension as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Optional. Description for this custom dimension. Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Description for this custom dimension. Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCOPE_FIELD_NUMBER = 5; + private int scope_; + /** + * + * + *
+   * Required. Immutable. The scope of this dimension.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+   * Required. Immutable. The scope of this dimension.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope getScope() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope result = + com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope.valueOf(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope.UNRECOGNIZED + : result; + } + + public static final int DISALLOW_ADS_PERSONALIZATION_FIELD_NUMBER = 6; + private boolean disallowAdsPersonalization_; + /** + * + * + *
+   * Optional. If set to true, sets this dimension as NPA and excludes it from ads
+   * personalization.
+   * This is currently only supported by user-scoped custom dimensions.
+   * 
+ * + * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disallowAdsPersonalization. + */ + @java.lang.Override + public boolean getDisallowAdsPersonalization() { + return disallowAdsPersonalization_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (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 (!getParameterNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameterName_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + if (scope_ + != com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope + .DIMENSION_SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, scope_); + } + if (disallowAdsPersonalization_ != false) { + output.writeBool(6, disallowAdsPersonalization_); + } + 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 (!getParameterNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameterName_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + if (scope_ + != com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope + .DIMENSION_SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, scope_); + } + if (disallowAdsPersonalization_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(6, disallowAdsPersonalization_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + 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.CustomDimension)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CustomDimension other = + (com.google.analytics.admin.v1alpha.CustomDimension) obj; + + if (!getName().equals(other.getName())) return false; + if (!getParameterName().equals(other.getParameterName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (scope_ != other.scope_) return false; + if (getDisallowAdsPersonalization() != other.getDisallowAdsPersonalization()) return false; + if (!unknownFields.equals(other.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) + PARAMETER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getParameterName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + hash = (37 * hash) + DISALLOW_ADS_PERSONALIZATION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisallowAdsPersonalization()); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( + 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.CustomDimension parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( + com.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.CustomDimension parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension 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.CustomDimension parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseFrom( + java.io.InputStream 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.CustomDimension parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension parseDelimitedFrom( + java.io.InputStream 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.CustomDimension 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.CustomDimension parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.CustomDimension prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 definition for a CustomDimension.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CustomDimension} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CustomDimension) + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomDimension_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CustomDimension.class, + com.google.analytics.admin.v1alpha.CustomDimension.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CustomDimension.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_ = ""; + + parameterName_ = ""; + + displayName_ = ""; + + description_ = ""; + + scope_ = 0; + + disallowAdsPersonalization_ = 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_CustomDimension_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension build() { + com.google.analytics.admin.v1alpha.CustomDimension result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension buildPartial() { + com.google.analytics.admin.v1alpha.CustomDimension result = + new com.google.analytics.admin.v1alpha.CustomDimension(this); + result.name_ = name_; + result.parameterName_ = parameterName_; + result.displayName_ = displayName_; + result.description_ = description_; + result.scope_ = scope_; + result.disallowAdsPersonalization_ = disallowAdsPersonalization_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.CustomDimension) { + return mergeFrom((com.google.analytics.admin.v1alpha.CustomDimension) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CustomDimension other) { + if (other == com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getParameterName().isEmpty()) { + parameterName_ = other.parameterName_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + if (other.getDisallowAdsPersonalization() != false) { + setDisallowAdsPersonalization(other.getDisallowAdsPersonalization()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.CustomDimension parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.CustomDimension) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name for this CustomDimension resource.
+     * Format: properties/{property}/customDimensions/{customDimension}
+     * 
+ * + * 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 CustomDimension resource.
+     * Format: properties/{property}/customDimensions/{customDimension}
+     * 
+ * + * 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 CustomDimension resource.
+     * Format: properties/{property}/customDimensions/{customDimension}
+     * 
+ * + * 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 CustomDimension resource.
+     * Format: properties/{property}/customDimensions/{customDimension}
+     * 
+ * + * 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 CustomDimension resource.
+     * Format: properties/{property}/customDimensions/{customDimension}
+     * 
+ * + * 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 parameterName_ = ""; + /** + * + * + *
+     * Required. Immutable. Tagging parameter name for this custom dimension.
+     * If this is a user-scoped dimension, then this is the user property name.
+     * If this is an event-scoped dimension, then this is the event parameter
+     * name.
+     * May only contain alphanumeric and underscore characters, starting with a
+     * letter. Max length of 24 characters for user-scoped dimensions, 40
+     * characters for event-scoped dimensions.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + public java.lang.String getParameterName() { + java.lang.Object ref = parameterName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameterName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Immutable. Tagging parameter name for this custom dimension.
+     * If this is a user-scoped dimension, then this is the user property name.
+     * If this is an event-scoped dimension, then this is the event parameter
+     * name.
+     * May only contain alphanumeric and underscore characters, starting with a
+     * letter. Max length of 24 characters for user-scoped dimensions, 40
+     * characters for event-scoped dimensions.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + public com.google.protobuf.ByteString getParameterNameBytes() { + java.lang.Object ref = parameterName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Immutable. Tagging parameter name for this custom dimension.
+     * If this is a user-scoped dimension, then this is the user property name.
+     * If this is an event-scoped dimension, then this is the event parameter
+     * name.
+     * May only contain alphanumeric and underscore characters, starting with a
+     * letter. Max length of 24 characters for user-scoped dimensions, 40
+     * characters for event-scoped dimensions.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The parameterName to set. + * @return This builder for chaining. + */ + public Builder setParameterName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parameterName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Tagging parameter name for this custom dimension.
+     * If this is a user-scoped dimension, then this is the user property name.
+     * If this is an event-scoped dimension, then this is the event parameter
+     * name.
+     * May only contain alphanumeric and underscore characters, starting with a
+     * letter. Max length of 24 characters for user-scoped dimensions, 40
+     * characters for event-scoped dimensions.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearParameterName() { + + parameterName_ = getDefaultInstance().getParameterName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Tagging parameter name for this custom dimension.
+     * If this is a user-scoped dimension, then this is the user property name.
+     * If this is an event-scoped dimension, then this is the event parameter
+     * name.
+     * May only contain alphanumeric and underscore characters, starting with a
+     * letter. Max length of 24 characters for user-scoped dimensions, 40
+     * characters for event-scoped dimensions.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for parameterName to set. + * @return This builder for chaining. + */ + public Builder setParameterNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parameterName_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. Display name for this custom dimension as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Display name for this custom dimension as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Display name for this custom dimension as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Display name for this custom dimension as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Display name for this custom dimension as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional. Description for this custom dimension. Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Description for this custom dimension. Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Description for this custom dimension. Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Description for this custom dimension. Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Description for this custom dimension. Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private int scope_ = 0; + /** + * + * + *
+     * Required. Immutable. The scope of this dimension.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+     * Required. Immutable. The scope of this dimension.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + + scope_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The scope of this dimension.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope getScope() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope result = + com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope.valueOf(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Immutable. The scope of this dimension.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope( + com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope value) { + if (value == null) { + throw new NullPointerException(); + } + + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The scope of this dimension.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearScope() { + + scope_ = 0; + onChanged(); + return this; + } + + private boolean disallowAdsPersonalization_; + /** + * + * + *
+     * Optional. If set to true, sets this dimension as NPA and excludes it from ads
+     * personalization.
+     * This is currently only supported by user-scoped custom dimensions.
+     * 
+ * + * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disallowAdsPersonalization. + */ + @java.lang.Override + public boolean getDisallowAdsPersonalization() { + return disallowAdsPersonalization_; + } + /** + * + * + *
+     * Optional. If set to true, sets this dimension as NPA and excludes it from ads
+     * personalization.
+     * This is currently only supported by user-scoped custom dimensions.
+     * 
+ * + * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The disallowAdsPersonalization to set. + * @return This builder for chaining. + */ + public Builder setDisallowAdsPersonalization(boolean value) { + + disallowAdsPersonalization_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. If set to true, sets this dimension as NPA and excludes it from ads
+     * personalization.
+     * This is currently only supported by user-scoped custom dimensions.
+     * 
+ * + * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisallowAdsPersonalization() { + + disallowAdsPersonalization_ = 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.CustomDimension) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CustomDimension) + private static final com.google.analytics.admin.v1alpha.CustomDimension DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CustomDimension(); + } + + public static com.google.analytics.admin.v1alpha.CustomDimension getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomDimension parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomDimension(input, extensionRegistry); + } + }; + + public static com.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.CustomDimension getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionName.java new file mode 100644 index 00000000..1c0b45b6 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionName.java @@ -0,0 +1,168 @@ +/* + * 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 CustomDimensionName implements ResourceName { + private static final PathTemplate PROPERTY = + PathTemplate.createWithoutUrlEncoding("properties/{property}/customDimensions"); + private volatile Map fieldValuesMap; + private final String property; + + @Deprecated + protected CustomDimensionName() { + property = null; + } + + private CustomDimensionName(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 CustomDimensionName of(String property) { + return newBuilder().setProperty(property).build(); + } + + public static String format(String property) { + return newBuilder().setProperty(property).build().toString(); + } + + public static CustomDimensionName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY.validatedMatch( + formattedString, "CustomDimensionName.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 (CustomDimensionName 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()) { + CustomDimensionName that = ((CustomDimensionName) 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}/customDimensions. */ + 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(CustomDimensionName customDimensionName) { + property = customDimensionName.property; + } + + public CustomDimensionName build() { + return new CustomDimensionName(this); + } + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java new file mode 100644 index 00000000..a7041dc5 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java @@ -0,0 +1,195 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 CustomDimensionOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CustomDimension) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name for this CustomDimension resource.
+   * Format: properties/{property}/customDimensions/{customDimension}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name for this CustomDimension resource.
+   * Format: properties/{property}/customDimensions/{customDimension}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Immutable. Tagging parameter name for this custom dimension.
+   * If this is a user-scoped dimension, then this is the user property name.
+   * If this is an event-scoped dimension, then this is the event parameter
+   * name.
+   * May only contain alphanumeric and underscore characters, starting with a
+   * letter. Max length of 24 characters for user-scoped dimensions, 40
+   * characters for event-scoped dimensions.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + java.lang.String getParameterName(); + /** + * + * + *
+   * Required. Immutable. Tagging parameter name for this custom dimension.
+   * If this is a user-scoped dimension, then this is the user property name.
+   * If this is an event-scoped dimension, then this is the event parameter
+   * name.
+   * May only contain alphanumeric and underscore characters, starting with a
+   * letter. Max length of 24 characters for user-scoped dimensions, 40
+   * characters for event-scoped dimensions.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + com.google.protobuf.ByteString getParameterNameBytes(); + + /** + * + * + *
+   * Required. Display name for this custom dimension as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. Display name for this custom dimension as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. Description for this custom dimension. Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional. Description for this custom dimension. Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Required. Immutable. The scope of this dimension.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + * + * + *
+   * Required. Immutable. The scope of this dimension.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomDimension.DimensionScope scope = 5 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + com.google.analytics.admin.v1alpha.CustomDimension.DimensionScope getScope(); + + /** + * + * + *
+   * Optional. If set to true, sets this dimension as NPA and excludes it from ads
+   * personalization.
+   * This is currently only supported by user-scoped custom dimensions.
+   * 
+ * + * bool disallow_ads_personalization = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The disallowAdsPersonalization. + */ + boolean getDisallowAdsPersonalization(); +} 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 new file mode 100644 index 00000000..5986982c --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java @@ -0,0 +1,2075 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 definition for a custom metric.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CustomMetric} + */ +public final class CustomMetric extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.CustomMetric) + CustomMetricOrBuilder { + private static final long serialVersionUID = 0L; + // Use CustomMetric.newBuilder() to construct. + private CustomMetric(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CustomMetric() { + name_ = ""; + parameterName_ = ""; + displayName_ = ""; + description_ = ""; + measurementUnit_ = 0; + scope_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CustomMetric(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private CustomMetric( + 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(); + + parameterName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + displayName_ = s; + break; + } + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + + description_ = s; + break; + } + case 40: + { + int rawValue = input.readEnum(); + + measurementUnit_ = rawValue; + break; + } + case 48: + { + int rawValue = input.readEnum(); + + scope_ = 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_CustomMetric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomMetric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CustomMetric.class, + com.google.analytics.admin.v1alpha.CustomMetric.Builder.class); + } + + /** + * + * + *
+   * Possible types of representing the custom metric's value.
+   * Currency representation may change in the future, requiring a breaking API
+   * change.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit} + */ + public enum MeasurementUnit implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * MeasurementUnit unspecified or missing.
+     * 
+ * + * MEASUREMENT_UNIT_UNSPECIFIED = 0; + */ + MEASUREMENT_UNIT_UNSPECIFIED(0), + /** + * + * + *
+     * This metric uses default units.
+     * 
+ * + * STANDARD = 1; + */ + STANDARD(1), + /** + * + * + *
+     * This metric measures a currency.
+     * 
+ * + * CURRENCY = 2; + */ + CURRENCY(2), + /** + * + * + *
+     * This metric measures feet.
+     * 
+ * + * FEET = 3; + */ + FEET(3), + /** + * + * + *
+     * This metric measures meters.
+     * 
+ * + * METERS = 4; + */ + METERS(4), + /** + * + * + *
+     * This metric measures kilometers.
+     * 
+ * + * KILOMETERS = 5; + */ + KILOMETERS(5), + /** + * + * + *
+     * This metric measures miles.
+     * 
+ * + * MILES = 6; + */ + MILES(6), + /** + * + * + *
+     * This metric measures milliseconds.
+     * 
+ * + * MILLISECONDS = 7; + */ + MILLISECONDS(7), + /** + * + * + *
+     * This metric measures seconds.
+     * 
+ * + * SECONDS = 8; + */ + SECONDS(8), + /** + * + * + *
+     * This metric measures minutes.
+     * 
+ * + * MINUTES = 9; + */ + MINUTES(9), + /** + * + * + *
+     * This metric measures hours.
+     * 
+ * + * HOURS = 10; + */ + HOURS(10), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * MeasurementUnit unspecified or missing.
+     * 
+ * + * MEASUREMENT_UNIT_UNSPECIFIED = 0; + */ + public static final int MEASUREMENT_UNIT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * This metric uses default units.
+     * 
+ * + * STANDARD = 1; + */ + public static final int STANDARD_VALUE = 1; + /** + * + * + *
+     * This metric measures a currency.
+     * 
+ * + * CURRENCY = 2; + */ + public static final int CURRENCY_VALUE = 2; + /** + * + * + *
+     * This metric measures feet.
+     * 
+ * + * FEET = 3; + */ + public static final int FEET_VALUE = 3; + /** + * + * + *
+     * This metric measures meters.
+     * 
+ * + * METERS = 4; + */ + public static final int METERS_VALUE = 4; + /** + * + * + *
+     * This metric measures kilometers.
+     * 
+ * + * KILOMETERS = 5; + */ + public static final int KILOMETERS_VALUE = 5; + /** + * + * + *
+     * This metric measures miles.
+     * 
+ * + * MILES = 6; + */ + public static final int MILES_VALUE = 6; + /** + * + * + *
+     * This metric measures milliseconds.
+     * 
+ * + * MILLISECONDS = 7; + */ + public static final int MILLISECONDS_VALUE = 7; + /** + * + * + *
+     * This metric measures seconds.
+     * 
+ * + * SECONDS = 8; + */ + public static final int SECONDS_VALUE = 8; + /** + * + * + *
+     * This metric measures minutes.
+     * 
+ * + * MINUTES = 9; + */ + public static final int MINUTES_VALUE = 9; + /** + * + * + *
+     * This metric measures hours.
+     * 
+ * + * HOURS = 10; + */ + public static final int HOURS_VALUE = 10; + + 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 MeasurementUnit 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 MeasurementUnit forNumber(int value) { + switch (value) { + case 0: + return MEASUREMENT_UNIT_UNSPECIFIED; + case 1: + return STANDARD; + case 2: + return CURRENCY; + case 3: + return FEET; + case 4: + return METERS; + case 5: + return KILOMETERS; + case 6: + return MILES; + case 7: + return MILLISECONDS; + case 8: + return SECONDS; + case 9: + return MINUTES; + case 10: + return HOURS; + 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 MeasurementUnit findValueByNumber(int number) { + return MeasurementUnit.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.CustomMetric.getDescriptor().getEnumTypes().get(0); + } + + private static final MeasurementUnit[] VALUES = values(); + + public static MeasurementUnit 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 MeasurementUnit(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit) + } + + /** + * + * + *
+   * The scope of this metric.
+   * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.CustomMetric.MetricScope} + */ + public enum MetricScope implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Scope unknown or not specified.
+     * 
+ * + * METRIC_SCOPE_UNSPECIFIED = 0; + */ + METRIC_SCOPE_UNSPECIFIED(0), + /** + * + * + *
+     * Metric scoped to an event.
+     * 
+ * + * EVENT = 1; + */ + EVENT(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+     * Scope unknown or not specified.
+     * 
+ * + * METRIC_SCOPE_UNSPECIFIED = 0; + */ + public static final int METRIC_SCOPE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+     * Metric scoped to an event.
+     * 
+ * + * EVENT = 1; + */ + public static final int EVENT_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MetricScope 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 MetricScope forNumber(int value) { + switch (value) { + case 0: + return METRIC_SCOPE_UNSPECIFIED; + case 1: + return EVENT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public MetricScope findValueByNumber(int number) { + return MetricScope.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.CustomMetric.getDescriptor().getEnumTypes().get(1); + } + + private static final MetricScope[] VALUES = values(); + + public static MetricScope 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 MetricScope(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.CustomMetric.MetricScope) + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. Resource name for this CustomMetric resource.
+   * Format: properties/{property}/customMetrics/{customMetric}
+   * 
+ * + * 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 CustomMetric resource.
+   * Format: properties/{property}/customMetrics/{customMetric}
+   * 
+ * + * 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 PARAMETER_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object parameterName_; + /** + * + * + *
+   * Required. Immutable. Tagging name for this custom metric.
+   * If this is an event-scoped metric, then this is the event parameter
+   * name.
+   * May only contain alphanumeric and underscore charactes, starting with a
+   * letter. Max length of 40 characters for event-scoped metrics.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + @java.lang.Override + public java.lang.String getParameterName() { + java.lang.Object ref = parameterName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameterName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Immutable. Tagging name for this custom metric.
+   * If this is an event-scoped metric, then this is the event parameter
+   * name.
+   * May only contain alphanumeric and underscore charactes, starting with a
+   * letter. Max length of 40 characters for event-scoped metrics.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParameterNameBytes() { + java.lang.Object ref = parameterName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Required. Display name for this custom metric as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Display name for this custom metric as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + private volatile java.lang.Object description_; + /** + * + * + *
+   * Optional. Description for this custom dimension.
+   * Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } + } + /** + * + * + *
+   * Optional. Description for this custom dimension.
+   * Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MEASUREMENT_UNIT_FIELD_NUMBER = 5; + private int measurementUnit_; + /** + * + * + *
+   * Required. Immutable. 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]; + * + * + * @return The enum numeric value on the wire for measurementUnit. + */ + @java.lang.Override + public int getMeasurementUnitValue() { + return measurementUnit_; + } + /** + * + * + *
+   * Required. Immutable. 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]; + * + * + * @return The measurementUnit. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit getMeasurementUnit() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit result = + com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit.valueOf(measurementUnit_); + return result == null + ? com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit.UNRECOGNIZED + : result; + } + + public static final int SCOPE_FIELD_NUMBER = 6; + private int scope_; + /** + * + * + *
+   * Required. Immutable. The scope of this custom metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+   * Required. Immutable. The scope of this custom metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric.MetricScope getScope() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.CustomMetric.MetricScope result = + com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.valueOf(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getParameterNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, parameterName_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, displayName_); + } + if (!getDescriptionBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 4, description_); + } + if (measurementUnit_ + != com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit + .MEASUREMENT_UNIT_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, measurementUnit_); + } + if (scope_ + != com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.METRIC_SCOPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, scope_); + } + 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 (!getParameterNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, parameterName_); + } + if (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, displayName_); + } + if (!getDescriptionBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, description_); + } + if (measurementUnit_ + != com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit + .MEASUREMENT_UNIT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, measurementUnit_); + } + if (scope_ + != com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.METRIC_SCOPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, scope_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + 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.CustomMetric)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.CustomMetric other = + (com.google.analytics.admin.v1alpha.CustomMetric) obj; + + if (!getName().equals(other.getName())) return false; + if (!getParameterName().equals(other.getParameterName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (measurementUnit_ != other.measurementUnit_) return false; + if (scope_ != other.scope_) return false; + if (!unknownFields.equals(other.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) + PARAMETER_NAME_FIELD_NUMBER; + hash = (53 * hash) + getParameterName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + MEASUREMENT_UNIT_FIELD_NUMBER; + hash = (53 * hash) + measurementUnit_; + hash = (37 * hash) + SCOPE_FIELD_NUMBER; + hash = (53 * hash) + scope_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( + 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.CustomMetric parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( + com.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.CustomMetric parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric 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.CustomMetric parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseFrom( + java.io.InputStream 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.CustomMetric parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric parseDelimitedFrom( + java.io.InputStream 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.CustomMetric 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.CustomMetric parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.CustomMetric prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 definition for a custom metric.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.CustomMetric} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.CustomMetric) + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_CustomMetric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.CustomMetric.class, + com.google.analytics.admin.v1alpha.CustomMetric.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.CustomMetric.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_ = ""; + + parameterName_ = ""; + + displayName_ = ""; + + description_ = ""; + + measurementUnit_ = 0; + + scope_ = 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_CustomMetric_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric build() { + com.google.analytics.admin.v1alpha.CustomMetric result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric buildPartial() { + com.google.analytics.admin.v1alpha.CustomMetric result = + new com.google.analytics.admin.v1alpha.CustomMetric(this); + result.name_ = name_; + result.parameterName_ = parameterName_; + result.displayName_ = displayName_; + result.description_ = description_; + result.measurementUnit_ = measurementUnit_; + result.scope_ = scope_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.CustomMetric) { + return mergeFrom((com.google.analytics.admin.v1alpha.CustomMetric) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.CustomMetric other) { + if (other == com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getParameterName().isEmpty()) { + parameterName_ = other.parameterName_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + onChanged(); + } + if (other.measurementUnit_ != 0) { + setMeasurementUnitValue(other.getMeasurementUnitValue()); + } + if (other.scope_ != 0) { + setScopeValue(other.getScopeValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.CustomMetric parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (com.google.analytics.admin.v1alpha.CustomMetric) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name for this CustomMetric resource.
+     * Format: properties/{property}/customMetrics/{customMetric}
+     * 
+ * + * 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 CustomMetric resource.
+     * Format: properties/{property}/customMetrics/{customMetric}
+     * 
+ * + * 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 CustomMetric resource.
+     * Format: properties/{property}/customMetrics/{customMetric}
+     * 
+ * + * 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 CustomMetric resource.
+     * Format: properties/{property}/customMetrics/{customMetric}
+     * 
+ * + * 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 CustomMetric resource.
+     * Format: properties/{property}/customMetrics/{customMetric}
+     * 
+ * + * 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 parameterName_ = ""; + /** + * + * + *
+     * Required. Immutable. Tagging name for this custom metric.
+     * If this is an event-scoped metric, then this is the event parameter
+     * name.
+     * May only contain alphanumeric and underscore charactes, starting with a
+     * letter. Max length of 40 characters for event-scoped metrics.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + public java.lang.String getParameterName() { + java.lang.Object ref = parameterName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parameterName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Immutable. Tagging name for this custom metric.
+     * If this is an event-scoped metric, then this is the event parameter
+     * name.
+     * May only contain alphanumeric and underscore charactes, starting with a
+     * letter. Max length of 40 characters for event-scoped metrics.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + public com.google.protobuf.ByteString getParameterNameBytes() { + java.lang.Object ref = parameterName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parameterName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Immutable. Tagging name for this custom metric.
+     * If this is an event-scoped metric, then this is the event parameter
+     * name.
+     * May only contain alphanumeric and underscore charactes, starting with a
+     * letter. Max length of 40 characters for event-scoped metrics.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The parameterName to set. + * @return This builder for chaining. + */ + public Builder setParameterName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parameterName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Tagging name for this custom metric.
+     * If this is an event-scoped metric, then this is the event parameter
+     * name.
+     * May only contain alphanumeric and underscore charactes, starting with a
+     * letter. Max length of 40 characters for event-scoped metrics.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearParameterName() { + + parameterName_ = getDefaultInstance().getParameterName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. Tagging name for this custom metric.
+     * If this is an event-scoped metric, then this is the event parameter
+     * name.
+     * May only contain alphanumeric and underscore charactes, starting with a
+     * letter. Max length of 40 characters for event-scoped metrics.
+     * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for parameterName to set. + * @return This builder for chaining. + */ + public Builder setParameterNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + parameterName_ = value; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + /** + * + * + *
+     * Required. Display name for this custom metric as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Display name for this custom metric as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Display name for this custom metric as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Display name for this custom metric as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Display name for this custom metric as shown in the Analytics UI.
+     * Max length of 82 characters, alphanumeric plus space and underscore
+     * starting with a letter. Legacy system-generated display names may contain
+     * square brackets, but updates to this field will never permit square
+     * brackets.
+     * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + /** + * + * + *
+     * Optional. Description for this custom dimension.
+     * Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Optional. Description for this custom dimension.
+     * Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Optional. Description for this custom dimension.
+     * Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + description_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Description for this custom dimension.
+     * Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + + description_ = getDefaultInstance().getDescription(); + onChanged(); + return this; + } + /** + * + * + *
+     * Optional. Description for this custom dimension.
+     * Max length of 150 characters.
+     * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + description_ = value; + onChanged(); + return this; + } + + private int measurementUnit_ = 0; + /** + * + * + *
+     * Required. Immutable. 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]; + * + * + * @return The enum numeric value on the wire for measurementUnit. + */ + @java.lang.Override + public int getMeasurementUnitValue() { + return measurementUnit_; + } + /** + * + * + *
+     * Required. Immutable. 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]; + * + * + * @param value The enum numeric value on the wire for measurementUnit to set. + * @return This builder for chaining. + */ + public Builder setMeasurementUnitValue(int value) { + + measurementUnit_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. 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]; + * + * + * @return The measurementUnit. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit getMeasurementUnit() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit result = + com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit.valueOf(measurementUnit_); + return result == null + ? com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Immutable. 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]; + * + * + * @param value The measurementUnit to set. + * @return This builder for chaining. + */ + public Builder setMeasurementUnit( + com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit value) { + if (value == null) { + throw new NullPointerException(); + } + + measurementUnit_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. 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]; + * + * + * @return This builder for chaining. + */ + public Builder clearMeasurementUnit() { + + measurementUnit_ = 0; + onChanged(); + return this; + } + + private int scope_ = 0; + /** + * + * + *
+     * Required. Immutable. The scope of this custom metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + @java.lang.Override + public int getScopeValue() { + return scope_; + } + /** + * + * + *
+     * Required. Immutable. The scope of this custom metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The enum numeric value on the wire for scope to set. + * @return This builder for chaining. + */ + public Builder setScopeValue(int value) { + + scope_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The scope of this custom metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric.MetricScope getScope() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.CustomMetric.MetricScope result = + com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.valueOf(scope_); + return result == null + ? com.google.analytics.admin.v1alpha.CustomMetric.MetricScope.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Required. Immutable. The scope of this custom metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The scope to set. + * @return This builder for chaining. + */ + public Builder setScope(com.google.analytics.admin.v1alpha.CustomMetric.MetricScope value) { + if (value == null) { + throw new NullPointerException(); + } + + scope_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Immutable. The scope of this custom metric.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearScope() { + + scope_ = 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.CustomMetric) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.CustomMetric) + private static final com.google.analytics.admin.v1alpha.CustomMetric DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.CustomMetric(); + } + + public static com.google.analytics.admin.v1alpha.CustomMetric getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomMetric parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new CustomMetric(input, extensionRegistry); + } + }; + + public static com.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.CustomMetric getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricName.java new file mode 100644 index 00000000..384101c0 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricName.java @@ -0,0 +1,168 @@ +/* + * 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 CustomMetricName implements ResourceName { + private static final PathTemplate PROPERTY = + PathTemplate.createWithoutUrlEncoding("properties/{property}/customMetrics"); + private volatile Map fieldValuesMap; + private final String property; + + @Deprecated + protected CustomMetricName() { + property = null; + } + + private CustomMetricName(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 CustomMetricName of(String property) { + return newBuilder().setProperty(property).build(); + } + + public static String format(String property) { + return newBuilder().setProperty(property).build().toString(); + } + + public static CustomMetricName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY.validatedMatch( + formattedString, "CustomMetricName.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 (CustomMetricName 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()) { + CustomMetricName that = ((CustomMetricName) 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}/customMetrics. */ + 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(CustomMetricName customMetricName) { + property = customMetricName.property; + } + + public CustomMetricName build() { + return new CustomMetricName(this); + } + } +} 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 new file mode 100644 index 00000000..9dd2d54d --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java @@ -0,0 +1,207 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 CustomMetricOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.CustomMetric) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name for this CustomMetric resource.
+   * Format: properties/{property}/customMetrics/{customMetric}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name for this CustomMetric resource.
+   * Format: properties/{property}/customMetrics/{customMetric}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Immutable. Tagging name for this custom metric.
+   * If this is an event-scoped metric, then this is the event parameter
+   * name.
+   * May only contain alphanumeric and underscore charactes, starting with a
+   * letter. Max length of 40 characters for event-scoped metrics.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The parameterName. + */ + java.lang.String getParameterName(); + /** + * + * + *
+   * Required. Immutable. Tagging name for this custom metric.
+   * If this is an event-scoped metric, then this is the event parameter
+   * name.
+   * May only contain alphanumeric and underscore charactes, starting with a
+   * letter. Max length of 40 characters for event-scoped metrics.
+   * 
+ * + * + * string parameter_name = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for parameterName. + */ + com.google.protobuf.ByteString getParameterNameBytes(); + + /** + * + * + *
+   * Required. Display name for this custom metric as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. Display name for this custom metric as shown in the Analytics UI.
+   * Max length of 82 characters, alphanumeric plus space and underscore
+   * starting with a letter. Legacy system-generated display names may contain
+   * square brackets, but updates to this field will never permit square
+   * brackets.
+   * 
+ * + * string display_name = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Optional. Description for this custom dimension.
+   * Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + /** + * + * + *
+   * Optional. Description for this custom dimension.
+   * Max length of 150 characters.
+   * 
+ * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
+   * Required. Immutable. 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]; + * + * + * @return The enum numeric value on the wire for measurementUnit. + */ + int getMeasurementUnitValue(); + /** + * + * + *
+   * Required. Immutable. 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]; + * + * + * @return The measurementUnit. + */ + com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit getMeasurementUnit(); + + /** + * + * + *
+   * Required. Immutable. The scope of this custom metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The enum numeric value on the wire for scope. + */ + int getScopeValue(); + /** + * + * + *
+   * Required. Immutable. The scope of this custom metric.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.CustomMetric.MetricScope scope = 6 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The scope. + */ + com.google.analytics.admin.v1alpha.CustomMetric.MetricScope getScope(); +} 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 new file mode 100644 index 00000000..1ba58594 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequest.java @@ -0,0 +1,672 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 DeleteConversionEvent RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteConversionEventRequest} + */ +public final class DeleteConversionEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteConversionEventRequest) + DeleteConversionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteConversionEventRequest.newBuilder() to construct. + private DeleteConversionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteConversionEventRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteConversionEventRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteConversionEventRequest( + 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_DeleteConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.class, + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the conversion event to delete.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the conversion event to delete.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * 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.DeleteConversionEventRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest other = + (com.google.analytics.admin.v1alpha.DeleteConversionEventRequest) 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.DeleteConversionEventRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( + 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.DeleteConversionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( + com.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.DeleteConversionEventRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest 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.DeleteConversionEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseFrom( + java.io.InputStream 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.DeleteConversionEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest parseDelimitedFrom( + java.io.InputStream 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.DeleteConversionEventRequest 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.DeleteConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.DeleteConversionEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 DeleteConversionEvent RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteConversionEventRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteConversionEventRequest) + com.google.analytics.admin.v1alpha.DeleteConversionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.class, + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.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_DeleteConversionEventRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteConversionEventRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteConversionEventRequest build() { + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteConversionEventRequest buildPartial() { + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest result = + new com.google.analytics.admin.v1alpha.DeleteConversionEventRequest(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.DeleteConversionEventRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.DeleteConversionEventRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DeleteConversionEventRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteConversionEventRequest.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.DeleteConversionEventRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.DeleteConversionEventRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the conversion event to delete.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the conversion event to delete.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the conversion event to delete.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the conversion event to delete.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the conversion event to delete.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * 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.DeleteConversionEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteConversionEventRequest) + private static final com.google.analytics.admin.v1alpha.DeleteConversionEventRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.DeleteConversionEventRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteConversionEventRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteConversionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteConversionEventRequest(input, extensionRegistry); + } + }; + + public static com.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.DeleteConversionEventRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequestOrBuilder.java new file mode 100644 index 00000000..251995e6 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteConversionEventRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface DeleteConversionEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteConversionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the conversion event to delete.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the conversion event to delete.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * 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/DeleteMeasurementProtocolSecretRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java new file mode 100644 index 00000000..a2974ec9 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequest.java @@ -0,0 +1,700 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 DeleteMeasurementProtocolSecret RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} + */ +public final class DeleteMeasurementProtocolSecretRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) + DeleteMeasurementProtocolSecretRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use DeleteMeasurementProtocolSecretRequest.newBuilder() to construct. + private DeleteMeasurementProtocolSecretRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private DeleteMeasurementProtocolSecretRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new DeleteMeasurementProtocolSecretRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private DeleteMeasurementProtocolSecretRequest( + 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_DeleteMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.Builder + .class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the MeasurementProtocolSecret to delete.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * Note: Any type of stream (WebDataStream, IosAppDataStream,
+   * AndroidAppDataStream) may be a parent.
+   * 
+ * + * + * 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 MeasurementProtocolSecret to delete.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * Note: Any type of stream (WebDataStream, IosAppDataStream,
+   * AndroidAppDataStream) may be a parent.
+   * 
+ * + * + * 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.DeleteMeasurementProtocolSecretRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest other = + (com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) 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.DeleteMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( + 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.DeleteMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( + com.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.DeleteMeasurementProtocolSecretRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest 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.DeleteMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream 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.DeleteMeasurementProtocolSecretRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + parseDelimitedFrom( + java.io.InputStream 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.DeleteMeasurementProtocolSecretRequest 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.DeleteMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.DeleteMeasurementProtocolSecretRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 DeleteMeasurementProtocolSecret RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_DeleteMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest.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_DeleteMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest build() { + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + buildPartial() { + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest result = + new com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest(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.DeleteMeasurementProtocolSecretRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest other) { + if (other + == com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + .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.DeleteMeasurementProtocolSecretRequest parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the MeasurementProtocolSecret to delete.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * Note: Any type of stream (WebDataStream, IosAppDataStream,
+     * AndroidAppDataStream) may be a parent.
+     * 
+ * + * + * 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 MeasurementProtocolSecret to delete.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * Note: Any type of stream (WebDataStream, IosAppDataStream,
+     * AndroidAppDataStream) may be a parent.
+     * 
+ * + * + * 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 MeasurementProtocolSecret to delete.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * Note: Any type of stream (WebDataStream, IosAppDataStream,
+     * AndroidAppDataStream) may be a parent.
+     * 
+ * + * + * 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 MeasurementProtocolSecret to delete.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * Note: Any type of stream (WebDataStream, IosAppDataStream,
+     * AndroidAppDataStream) may be a parent.
+     * 
+ * + * + * 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 MeasurementProtocolSecret to delete.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * Note: Any type of stream (WebDataStream, IosAppDataStream,
+     * AndroidAppDataStream) may be a parent.
+     * 
+ * + * + * 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.DeleteMeasurementProtocolSecretRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) + private static final com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest(); + } + + public static com.google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteMeasurementProtocolSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DeleteMeasurementProtocolSecretRequest(input, extensionRegistry); + } + }; + + public static com.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.DeleteMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequestOrBuilder.java new file mode 100644 index 00000000..6c426fb7 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DeleteMeasurementProtocolSecretRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 DeleteMeasurementProtocolSecretRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.DeleteMeasurementProtocolSecretRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the MeasurementProtocolSecret to delete.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * Note: Any type of stream (WebDataStream, IosAppDataStream,
+   * AndroidAppDataStream) may be a parent.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the MeasurementProtocolSecret to delete.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * Note: Any type of stream (WebDataStream, IosAppDataStream,
+   * AndroidAppDataStream) may be a parent.
+   * 
+ * + * + * 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/GetConversionEventRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequest.java new file mode 100644 index 00000000..99879137 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequest.java @@ -0,0 +1,668 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 GetConversionEvent RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetConversionEventRequest} + */ +public final class GetConversionEventRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetConversionEventRequest) + GetConversionEventRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetConversionEventRequest.newBuilder() to construct. + private GetConversionEventRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetConversionEventRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetConversionEventRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetConversionEventRequest( + 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_GetConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetConversionEventRequest.class, + com.google.analytics.admin.v1alpha.GetConversionEventRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The resource name of the conversion event to retrieve.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the conversion event to retrieve.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * 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.GetConversionEventRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetConversionEventRequest other = + (com.google.analytics.admin.v1alpha.GetConversionEventRequest) 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.GetConversionEventRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( + 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.GetConversionEventRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( + com.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.GetConversionEventRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest 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.GetConversionEventRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseFrom( + java.io.InputStream 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.GetConversionEventRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest parseDelimitedFrom( + java.io.InputStream 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.GetConversionEventRequest 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.GetConversionEventRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.GetConversionEventRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 GetConversionEvent RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetConversionEventRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetConversionEventRequest) + com.google.analytics.admin.v1alpha.GetConversionEventRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetConversionEventRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetConversionEventRequest.class, + com.google.analytics.admin.v1alpha.GetConversionEventRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetConversionEventRequest.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_GetConversionEventRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetConversionEventRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetConversionEventRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetConversionEventRequest build() { + com.google.analytics.admin.v1alpha.GetConversionEventRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetConversionEventRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetConversionEventRequest result = + new com.google.analytics.admin.v1alpha.GetConversionEventRequest(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.GetConversionEventRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetConversionEventRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetConversionEventRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetConversionEventRequest.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.GetConversionEventRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetConversionEventRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The resource name of the conversion event to retrieve.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the conversion event to retrieve.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the conversion event to retrieve.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the conversion event to retrieve.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the conversion event to retrieve.
+     * Format: properties/{property}/conversionEvents/{conversion_event}
+     * Example: "properties/123/conversionEvents/456"
+     * 
+ * + * + * 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.GetConversionEventRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetConversionEventRequest) + private static final com.google.analytics.admin.v1alpha.GetConversionEventRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetConversionEventRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetConversionEventRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetConversionEventRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetConversionEventRequest(input, extensionRegistry); + } + }; + + public static com.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.GetConversionEventRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequestOrBuilder.java new file mode 100644 index 00000000..986523b1 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetConversionEventRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface GetConversionEventRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetConversionEventRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the conversion event to retrieve.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The resource name of the conversion event to retrieve.
+   * Format: properties/{property}/conversionEvents/{conversion_event}
+   * Example: "properties/123/conversionEvents/456"
+   * 
+ * + * + * 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/GetCustomDimensionRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequest.java new file mode 100644 index 00000000..ccf8ee47 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequest.java @@ -0,0 +1,661 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 GetCustomDimension RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetCustomDimensionRequest} + */ +public final class GetCustomDimensionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetCustomDimensionRequest) + GetCustomDimensionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetCustomDimensionRequest.newBuilder() to construct. + private GetCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetCustomDimensionRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetCustomDimensionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetCustomDimensionRequest( + 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_GetCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the CustomDimension to get.
+   * Example format: properties/1234/customDimensions/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 CustomDimension to get.
+   * Example format: properties/1234/customDimensions/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.GetCustomDimensionRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest other = + (com.google.analytics.admin.v1alpha.GetCustomDimensionRequest) 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.GetCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( + 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.GetCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( + com.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.GetCustomDimensionRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest 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.GetCustomDimensionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseFrom( + java.io.InputStream 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.GetCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream 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.GetCustomDimensionRequest 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.GetCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.GetCustomDimensionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 GetCustomDimension RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetCustomDimensionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetCustomDimensionRequest) + com.google.analytics.admin.v1alpha.GetCustomDimensionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.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_GetCustomDimensionRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetCustomDimensionRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetCustomDimensionRequest build() { + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetCustomDimensionRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetCustomDimensionRequest result = + new com.google.analytics.admin.v1alpha.GetCustomDimensionRequest(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.GetCustomDimensionRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetCustomDimensionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetCustomDimensionRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetCustomDimensionRequest.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.GetCustomDimensionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetCustomDimensionRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the CustomDimension to get.
+     * Example format: properties/1234/customDimensions/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 CustomDimension to get.
+     * Example format: properties/1234/customDimensions/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 CustomDimension to get.
+     * Example format: properties/1234/customDimensions/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 CustomDimension to get.
+     * Example format: properties/1234/customDimensions/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 CustomDimension to get.
+     * Example format: properties/1234/customDimensions/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.GetCustomDimensionRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetCustomDimensionRequest) + private static final com.google.analytics.admin.v1alpha.GetCustomDimensionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetCustomDimensionRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetCustomDimensionRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCustomDimensionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCustomDimensionRequest(input, extensionRegistry); + } + }; + + public static com.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.GetCustomDimensionRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequestOrBuilder.java new file mode 100644 index 00000000..4055eb55 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomDimensionRequestOrBuilder.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 GetCustomDimensionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetCustomDimensionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the CustomDimension to get.
+   * Example format: properties/1234/customDimensions/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 CustomDimension to get.
+   * Example format: properties/1234/customDimensions/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/GetCustomMetricRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequest.java new file mode 100644 index 00000000..0f0caa66 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequest.java @@ -0,0 +1,658 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 GetCustomMetric RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetCustomMetricRequest} + */ +public final class GetCustomMetricRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetCustomMetricRequest) + GetCustomMetricRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetCustomMetricRequest.newBuilder() to construct. + private GetCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetCustomMetricRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetCustomMetricRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetCustomMetricRequest( + 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_GetCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.GetCustomMetricRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the CustomMetric to get.
+   * Example format: properties/1234/customMetrics/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 CustomMetric to get.
+   * Example format: properties/1234/customMetrics/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.GetCustomMetricRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetCustomMetricRequest other = + (com.google.analytics.admin.v1alpha.GetCustomMetricRequest) 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.GetCustomMetricRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( + 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.GetCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( + com.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.GetCustomMetricRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest 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.GetCustomMetricRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseFrom( + java.io.InputStream 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.GetCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest parseDelimitedFrom( + java.io.InputStream 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.GetCustomMetricRequest 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.GetCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.GetCustomMetricRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 GetCustomMetric RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetCustomMetricRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetCustomMetricRequest) + com.google.analytics.admin.v1alpha.GetCustomMetricRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.GetCustomMetricRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GetCustomMetricRequest.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_GetCustomMetricRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetCustomMetricRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetCustomMetricRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetCustomMetricRequest build() { + com.google.analytics.admin.v1alpha.GetCustomMetricRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetCustomMetricRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetCustomMetricRequest result = + new com.google.analytics.admin.v1alpha.GetCustomMetricRequest(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.GetCustomMetricRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.GetCustomMetricRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GetCustomMetricRequest other) { + if (other == com.google.analytics.admin.v1alpha.GetCustomMetricRequest.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.GetCustomMetricRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetCustomMetricRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the CustomMetric to get.
+     * Example format: properties/1234/customMetrics/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 CustomMetric to get.
+     * Example format: properties/1234/customMetrics/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 CustomMetric to get.
+     * Example format: properties/1234/customMetrics/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 CustomMetric to get.
+     * Example format: properties/1234/customMetrics/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 CustomMetric to get.
+     * Example format: properties/1234/customMetrics/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.GetCustomMetricRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetCustomMetricRequest) + private static final com.google.analytics.admin.v1alpha.GetCustomMetricRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetCustomMetricRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetCustomMetricRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetCustomMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetCustomMetricRequest(input, extensionRegistry); + } + }; + + public static com.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.GetCustomMetricRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequestOrBuilder.java new file mode 100644 index 00000000..b1979473 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetCustomMetricRequestOrBuilder.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 GetCustomMetricRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetCustomMetricRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the CustomMetric to get.
+   * Example format: properties/1234/customMetrics/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 CustomMetric to get.
+   * Example format: properties/1234/customMetrics/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/GetGoogleSignalsSettingsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequest.java new file mode 100644 index 00000000..e0993ed5 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequest.java @@ -0,0 +1,670 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 GetGoogleSignalsSettings RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} + */ +public final class GetGoogleSignalsSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) + GetGoogleSignalsSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetGoogleSignalsSettingsRequest.newBuilder() to construct. + private GetGoogleSignalsSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetGoogleSignalsSettingsRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetGoogleSignalsSettingsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetGoogleSignalsSettingsRequest( + 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_GetGoogleSignalsSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the google signals settings to retrieve.
+   * Format: properties/{property}/googleSignalsSettings
+   * 
+ * + * + * 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 google signals settings to retrieve.
+   * Format: properties/{property}/googleSignalsSettings
+   * 
+ * + * + * 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.GetGoogleSignalsSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest other = + (com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) 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.GetGoogleSignalsSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( + 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.GetGoogleSignalsSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( + com.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.GetGoogleSignalsSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest 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.GetGoogleSignalsSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest parseFrom( + java.io.InputStream 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.GetGoogleSignalsSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + parseDelimitedFrom( + java.io.InputStream 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.GetGoogleSignalsSettingsRequest 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.GetGoogleSignalsSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.GetGoogleSignalsSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 GetGoogleSignalsSettings RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetGoogleSignalsSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest.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_GetGoogleSignalsSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest build() { + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest result = + new com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest(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.GetGoogleSignalsSettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + .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.GetGoogleSignalsSettingsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the google signals settings to retrieve.
+     * Format: properties/{property}/googleSignalsSettings
+     * 
+ * + * + * 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 google signals settings to retrieve.
+     * Format: properties/{property}/googleSignalsSettings
+     * 
+ * + * + * 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 google signals settings to retrieve.
+     * Format: properties/{property}/googleSignalsSettings
+     * 
+ * + * + * 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 google signals settings to retrieve.
+     * Format: properties/{property}/googleSignalsSettings
+     * 
+ * + * + * 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 google signals settings to retrieve.
+     * Format: properties/{property}/googleSignalsSettings
+     * 
+ * + * + * 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.GetGoogleSignalsSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) + private static final com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetGoogleSignalsSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetGoogleSignalsSettingsRequest(input, extensionRegistry); + } + }; + + public static com.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.GetGoogleSignalsSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequestOrBuilder.java new file mode 100644 index 00000000..9b61ee92 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetGoogleSignalsSettingsRequestOrBuilder.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 GetGoogleSignalsSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetGoogleSignalsSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the google signals settings to retrieve.
+   * Format: properties/{property}/googleSignalsSettings
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the google signals settings to retrieve.
+   * Format: properties/{property}/googleSignalsSettings
+   * 
+ * + * + * 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/GetMeasurementProtocolSecretRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java new file mode 100644 index 00000000..474324a2 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequest.java @@ -0,0 +1,693 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 GetMeasurementProtocolSecret RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} + */ +public final class GetMeasurementProtocolSecretRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) + GetMeasurementProtocolSecretRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use GetMeasurementProtocolSecretRequest.newBuilder() to construct. + private GetMeasurementProtocolSecretRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GetMeasurementProtocolSecretRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GetMeasurementProtocolSecretRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GetMeasurementProtocolSecretRequest( + 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_GetMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The name of the measurement protocol secret to lookup.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * Note: Any type of stream (WebDataStream, IosAppDataStream,
+   * AndroidAppDataStream) may be a parent.
+   * 
+ * + * + * 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 measurement protocol secret to lookup.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * Note: Any type of stream (WebDataStream, IosAppDataStream,
+   * AndroidAppDataStream) may be a parent.
+   * 
+ * + * + * 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.GetMeasurementProtocolSecretRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest other = + (com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) 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.GetMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( + 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.GetMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( + com.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.GetMeasurementProtocolSecretRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest 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.GetMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream 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.GetMeasurementProtocolSecretRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + parseDelimitedFrom( + java.io.InputStream 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.GetMeasurementProtocolSecretRequest 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.GetMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.GetMeasurementProtocolSecretRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 GetMeasurementProtocolSecret RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest.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_GetMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest build() { + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest result = + new com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest(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.GetMeasurementProtocolSecretRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + .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.GetMeasurementProtocolSecretRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The name of the measurement protocol secret to lookup.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * Note: Any type of stream (WebDataStream, IosAppDataStream,
+     * AndroidAppDataStream) may be a parent.
+     * 
+ * + * + * 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 measurement protocol secret to lookup.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * Note: Any type of stream (WebDataStream, IosAppDataStream,
+     * AndroidAppDataStream) may be a parent.
+     * 
+ * + * + * 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 measurement protocol secret to lookup.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * Note: Any type of stream (WebDataStream, IosAppDataStream,
+     * AndroidAppDataStream) may be a parent.
+     * 
+ * + * + * 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 measurement protocol secret to lookup.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * Note: Any type of stream (WebDataStream, IosAppDataStream,
+     * AndroidAppDataStream) may be a parent.
+     * 
+ * + * + * 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 measurement protocol secret to lookup.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * Note: Any type of stream (WebDataStream, IosAppDataStream,
+     * AndroidAppDataStream) may be a parent.
+     * 
+ * + * + * 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.GetMeasurementProtocolSecretRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) + private static final com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetMeasurementProtocolSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GetMeasurementProtocolSecretRequest(input, extensionRegistry); + } + }; + + public static com.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.GetMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequestOrBuilder.java new file mode 100644 index 00000000..13d7baa5 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetMeasurementProtocolSecretRequestOrBuilder.java @@ -0,0 +1,62 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 GetMeasurementProtocolSecretRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetMeasurementProtocolSecretRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the measurement protocol secret to lookup.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * Note: Any type of stream (WebDataStream, IosAppDataStream,
+   * AndroidAppDataStream) may be a parent.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The name of the measurement protocol secret to lookup.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * Note: Any type of stream (WebDataStream, IosAppDataStream,
+   * AndroidAppDataStream) may be a parent.
+   * 
+ * + * + * 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 929b2097..f016bc4d 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 @@ -304,7 +304,7 @@ public boolean getCanManageClients() { * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -322,7 +322,7 @@ public boolean hasAdsPersonalizationEnabled() { * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -342,7 +342,7 @@ public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -1234,7 +1234,7 @@ public Builder clearCanManageClients() { * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -1251,7 +1251,7 @@ public boolean hasAdsPersonalizationEnabled() { * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -1274,7 +1274,7 @@ public com.google.protobuf.BoolValue getAdsPersonalizationEnabled() { * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -1299,7 +1299,7 @@ public Builder setAdsPersonalizationEnabled(com.google.protobuf.BoolValue value) * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -1322,7 +1322,7 @@ public Builder setAdsPersonalizationEnabled( * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -1351,7 +1351,7 @@ public Builder mergeAdsPersonalizationEnabled(com.google.protobuf.BoolValue valu * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -1374,7 +1374,7 @@ public Builder clearAdsPersonalizationEnabled() { * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -1391,7 +1391,7 @@ public com.google.protobuf.BoolValue.Builder getAdsPersonalizationEnabledBuilder * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -1412,7 +1412,7 @@ public com.google.protobuf.BoolValueOrBuilder getAdsPersonalizationEnabledOrBuil * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; 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 f1ff42ce..7e51a02f 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 @@ -95,7 +95,7 @@ public interface GoogleAdsLinkOrBuilder * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -110,7 +110,7 @@ public interface GoogleAdsLinkOrBuilder * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; @@ -125,7 +125,7 @@ public interface GoogleAdsLinkOrBuilder * Enable personalized advertising features with this integration. * Automatically publish my Google Analytics audience lists and Google * Analytics remarketing events/parameters to the linked Google Ads account. - * If this field is not set on create/update it will be defaulted to true. + * If this field is not set on create/update, it will be defaulted to true. * * * .google.protobuf.BoolValue ads_personalization_enabled = 5; diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsConsent.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsConsent.java new file mode 100644 index 00000000..dcc2006d --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsConsent.java @@ -0,0 +1,184 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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; + +/** + * + * + *
+ * Consent field of the Google Signals settings (i.e., whether the user has
+ * consented to the Google Signals terms of service.)
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.GoogleSignalsConsent} + */ +public enum GoogleSignalsConsent implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Google Signals consent value defaults to
+   * GOOGLE_SIGNALS_CONSENT_UNSPECIFIED.  This will be treated as
+   * GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED.
+   * 
+ * + * GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0; + */ + GOOGLE_SIGNALS_CONSENT_UNSPECIFIED(0), + /** + * + * + *
+   * Terms of service have been accepted
+   * 
+ * + * GOOGLE_SIGNALS_CONSENT_CONSENTED = 2; + */ + GOOGLE_SIGNALS_CONSENT_CONSENTED(2), + /** + * + * + *
+   * Terms of service have not been accepted
+   * 
+ * + * GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1; + */ + GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED(1), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Google Signals consent value defaults to
+   * GOOGLE_SIGNALS_CONSENT_UNSPECIFIED.  This will be treated as
+   * GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED.
+   * 
+ * + * GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0; + */ + public static final int GOOGLE_SIGNALS_CONSENT_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Terms of service have been accepted
+   * 
+ * + * GOOGLE_SIGNALS_CONSENT_CONSENTED = 2; + */ + public static final int GOOGLE_SIGNALS_CONSENT_CONSENTED_VALUE = 2; + /** + * + * + *
+   * Terms of service have not been accepted
+   * 
+ * + * GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1; + */ + public static final int GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED_VALUE = 1; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static GoogleSignalsConsent 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 GoogleSignalsConsent forNumber(int value) { + switch (value) { + case 0: + return GOOGLE_SIGNALS_CONSENT_UNSPECIFIED; + case 2: + return GOOGLE_SIGNALS_CONSENT_CONSENTED; + case 1: + return GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED; + 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 GoogleSignalsConsent findValueByNumber(int number) { + return GoogleSignalsConsent.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(6); + } + + private static final GoogleSignalsConsent[] VALUES = values(); + + public static GoogleSignalsConsent 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 GoogleSignalsConsent(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.GoogleSignalsConsent) +} 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 new file mode 100644 index 00000000..fa7ef77b --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettings.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/resources.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Settings values for Google Signals.  This is a singleton resource.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GoogleSignalsSettings} + */ +public final class GoogleSignalsSettings extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GoogleSignalsSettings) + GoogleSignalsSettingsOrBuilder { + private static final long serialVersionUID = 0L; + // Use GoogleSignalsSettings.newBuilder() to construct. + private GoogleSignalsSettings(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private GoogleSignalsSettings() { + name_ = ""; + state_ = 0; + consent_ = 0; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new GoogleSignalsSettings(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private GoogleSignalsSettings( + 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 24: + { + int rawValue = input.readEnum(); + + state_ = rawValue; + break; + } + case 32: + { + int rawValue = input.readEnum(); + + consent_ = 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_GoogleSignalsSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.class, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. Resource name of this setting.
+   * Format: properties/{property_id}/googleSignalsSettings
+   * Example: "properties/1000/googleSignalsSettings"
+   * 
+ * + * 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 of this setting.
+   * Format: properties/{property_id}/googleSignalsSettings
+   * Example: "properties/1000/googleSignalsSettings"
+   * 
+ * + * 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 STATE_FIELD_NUMBER = 3; + private int state_; + /** + * + * + *
+   * Status of this setting.
+   * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+   * Status of this setting.
+   * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @return The state. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsState getState() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.GoogleSignalsState result = + com.google.analytics.admin.v1alpha.GoogleSignalsState.valueOf(state_); + return result == null + ? com.google.analytics.admin.v1alpha.GoogleSignalsState.UNRECOGNIZED + : result; + } + + public static final int CONSENT_FIELD_NUMBER = 4; + private int consent_; + /** + * + * + *
+   * Output only. Terms of Service acceptance.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for consent. + */ + @java.lang.Override + public int getConsentValue() { + return consent_; + } + /** + * + * + *
+   * Output only. Terms of Service acceptance.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The consent. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsConsent getConsent() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.GoogleSignalsConsent result = + com.google.analytics.admin.v1alpha.GoogleSignalsConsent.valueOf(consent_); + return result == null + ? com.google.analytics.admin.v1alpha.GoogleSignalsConsent.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (state_ + != com.google.analytics.admin.v1alpha.GoogleSignalsState.GOOGLE_SIGNALS_STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(3, state_); + } + if (consent_ + != com.google.analytics.admin.v1alpha.GoogleSignalsConsent + .GOOGLE_SIGNALS_CONSENT_UNSPECIFIED + .getNumber()) { + output.writeEnum(4, consent_); + } + 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 (state_ + != com.google.analytics.admin.v1alpha.GoogleSignalsState.GOOGLE_SIGNALS_STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, state_); + } + if (consent_ + != com.google.analytics.admin.v1alpha.GoogleSignalsConsent + .GOOGLE_SIGNALS_CONSENT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, consent_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + 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.GoogleSignalsSettings)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GoogleSignalsSettings other = + (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) obj; + + if (!getName().equals(other.getName())) return false; + if (state_ != other.state_) return false; + if (consent_ != other.consent_) return false; + if (!unknownFields.equals(other.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) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + hash = (37 * hash) + CONSENT_FIELD_NUMBER; + hash = (53 * hash) + consent_; + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( + 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.GoogleSignalsSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( + com.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.GoogleSignalsSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings 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.GoogleSignalsSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseFrom( + java.io.InputStream 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.GoogleSignalsSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings parseDelimitedFrom( + java.io.InputStream 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.GoogleSignalsSettings 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.GoogleSignalsSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.GoogleSignalsSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 Google Signals.  This is a singleton resource.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GoogleSignalsSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GoogleSignalsSettings) + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.class, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.GoogleSignalsSettings.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_ = ""; + + state_ = 0; + + consent_ = 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_GoogleSignalsSettings_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings build() { + com.google.analytics.admin.v1alpha.GoogleSignalsSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings buildPartial() { + com.google.analytics.admin.v1alpha.GoogleSignalsSettings result = + new com.google.analytics.admin.v1alpha.GoogleSignalsSettings(this); + result.name_ = name_; + result.state_ = state_; + result.consent_ = consent_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.GoogleSignalsSettings) { + return mergeFrom((com.google.analytics.admin.v1alpha.GoogleSignalsSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.GoogleSignalsSettings other) { + if (other == com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (other.consent_ != 0) { + setConsentValue(other.getConsentValue()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + 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.GoogleSignalsSettings parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.GoogleSignalsSettings) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this setting.
+     * Format: properties/{property_id}/googleSignalsSettings
+     * Example: "properties/1000/googleSignalsSettings"
+     * 
+ * + * 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 of this setting.
+     * Format: properties/{property_id}/googleSignalsSettings
+     * Example: "properties/1000/googleSignalsSettings"
+     * 
+ * + * 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 of this setting.
+     * Format: properties/{property_id}/googleSignalsSettings
+     * Example: "properties/1000/googleSignalsSettings"
+     * 
+ * + * 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 of this setting.
+     * Format: properties/{property_id}/googleSignalsSettings
+     * Example: "properties/1000/googleSignalsSettings"
+     * 
+ * + * 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 of this setting.
+     * Format: properties/{property_id}/googleSignalsSettings
+     * Example: "properties/1000/googleSignalsSettings"
+     * 
+ * + * 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 state_ = 0; + /** + * + * + *
+     * Status of this setting.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + /** + * + * + *
+     * Status of this setting.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + + state_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Status of this setting.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @return The state. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsState getState() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.GoogleSignalsState result = + com.google.analytics.admin.v1alpha.GoogleSignalsState.valueOf(state_); + return result == null + ? com.google.analytics.admin.v1alpha.GoogleSignalsState.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Status of this setting.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.analytics.admin.v1alpha.GoogleSignalsState value) { + if (value == null) { + throw new NullPointerException(); + } + + state_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Status of this setting.
+     * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @return This builder for chaining. + */ + public Builder clearState() { + + state_ = 0; + onChanged(); + return this; + } + + private int consent_ = 0; + /** + * + * + *
+     * Output only. Terms of Service acceptance.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for consent. + */ + @java.lang.Override + public int getConsentValue() { + return consent_; + } + /** + * + * + *
+     * Output only. Terms of Service acceptance.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for consent to set. + * @return This builder for chaining. + */ + public Builder setConsentValue(int value) { + + consent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Terms of Service acceptance.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The consent. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsConsent getConsent() { + @SuppressWarnings("deprecation") + com.google.analytics.admin.v1alpha.GoogleSignalsConsent result = + com.google.analytics.admin.v1alpha.GoogleSignalsConsent.valueOf(consent_); + return result == null + ? com.google.analytics.admin.v1alpha.GoogleSignalsConsent.UNRECOGNIZED + : result; + } + /** + * + * + *
+     * Output only. Terms of Service acceptance.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The consent to set. + * @return This builder for chaining. + */ + public Builder setConsent(com.google.analytics.admin.v1alpha.GoogleSignalsConsent value) { + if (value == null) { + throw new NullPointerException(); + } + + consent_ = value.getNumber(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Terms of Service acceptance.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearConsent() { + + consent_ = 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.GoogleSignalsSettings) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GoogleSignalsSettings) + private static final com.google.analytics.admin.v1alpha.GoogleSignalsSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GoogleSignalsSettings(); + } + + public static com.google.analytics.admin.v1alpha.GoogleSignalsSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GoogleSignalsSettings parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new GoogleSignalsSettings(input, extensionRegistry); + } + }; + + public static com.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.GoogleSignalsSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsName.java new file mode 100644 index 00000000..5faf4820 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsName.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 GoogleSignalsSettingsName implements ResourceName { + private static final PathTemplate PROPERTY = + PathTemplate.createWithoutUrlEncoding("properties/{property}/googleSignalsSettings"); + private volatile Map fieldValuesMap; + private final String property; + + @Deprecated + protected GoogleSignalsSettingsName() { + property = null; + } + + private GoogleSignalsSettingsName(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 GoogleSignalsSettingsName of(String property) { + return newBuilder().setProperty(property).build(); + } + + public static String format(String property) { + return newBuilder().setProperty(property).build().toString(); + } + + public static GoogleSignalsSettingsName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY.validatedMatch( + formattedString, + "GoogleSignalsSettingsName.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 (GoogleSignalsSettingsName 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()) { + GoogleSignalsSettingsName that = ((GoogleSignalsSettingsName) 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}/googleSignalsSettings. */ + 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(GoogleSignalsSettingsName googleSignalsSettingsName) { + property = googleSignalsSettingsName.property; + } + + public GoogleSignalsSettingsName build() { + return new GoogleSignalsSettingsName(this); + } + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsOrBuilder.java new file mode 100644 index 00000000..2f84d575 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsSettingsOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/resources.proto + +package com.google.analytics.admin.v1alpha; + +public interface GoogleSignalsSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GoogleSignalsSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this setting.
+   * Format: properties/{property_id}/googleSignalsSettings
+   * Example: "properties/1000/googleSignalsSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of this setting.
+   * Format: properties/{property_id}/googleSignalsSettings
+   * Example: "properties/1000/googleSignalsSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Status of this setting.
+   * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + /** + * + * + *
+   * Status of this setting.
+   * 
+ * + * .google.analytics.admin.v1alpha.GoogleSignalsState state = 3; + * + * @return The state. + */ + com.google.analytics.admin.v1alpha.GoogleSignalsState getState(); + + /** + * + * + *
+   * Output only. Terms of Service acceptance.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for consent. + */ + int getConsentValue(); + /** + * + * + *
+   * Output only. Terms of Service acceptance.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsConsent consent = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The consent. + */ + com.google.analytics.admin.v1alpha.GoogleSignalsConsent getConsent(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsState.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsState.java new file mode 100644 index 00000000..ed535750 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleSignalsState.java @@ -0,0 +1,181 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 of the Google Signals settings (i.e., whether this feature has been
+ * enabled for the property).
+ * 
+ * + * Protobuf enum {@code google.analytics.admin.v1alpha.GoogleSignalsState} + */ +public enum GoogleSignalsState implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+   * Google Signals status defaults to GOOGLE_SIGNALS_STATE_UNSPECIFIED to
+   * represent that the user has not made an explicit choice.
+   * 
+ * + * GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0; + */ + GOOGLE_SIGNALS_STATE_UNSPECIFIED(0), + /** + * + * + *
+   * Google Signals is enabled.
+   * 
+ * + * GOOGLE_SIGNALS_ENABLED = 1; + */ + GOOGLE_SIGNALS_ENABLED(1), + /** + * + * + *
+   * Google Signals is disabled.
+   * 
+ * + * GOOGLE_SIGNALS_DISABLED = 2; + */ + GOOGLE_SIGNALS_DISABLED(2), + UNRECOGNIZED(-1), + ; + + /** + * + * + *
+   * Google Signals status defaults to GOOGLE_SIGNALS_STATE_UNSPECIFIED to
+   * represent that the user has not made an explicit choice.
+   * 
+ * + * GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0; + */ + public static final int GOOGLE_SIGNALS_STATE_UNSPECIFIED_VALUE = 0; + /** + * + * + *
+   * Google Signals is enabled.
+   * 
+ * + * GOOGLE_SIGNALS_ENABLED = 1; + */ + public static final int GOOGLE_SIGNALS_ENABLED_VALUE = 1; + /** + * + * + *
+   * Google Signals is disabled.
+   * 
+ * + * GOOGLE_SIGNALS_DISABLED = 2; + */ + public static final int GOOGLE_SIGNALS_DISABLED_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 GoogleSignalsState 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 GoogleSignalsState forNumber(int value) { + switch (value) { + case 0: + return GOOGLE_SIGNALS_STATE_UNSPECIFIED; + case 1: + return GOOGLE_SIGNALS_ENABLED; + case 2: + return GOOGLE_SIGNALS_DISABLED; + 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 GoogleSignalsState findValueByNumber(int number) { + return GoogleSignalsState.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(5); + } + + private static final GoogleSignalsState[] VALUES = values(); + + public static GoogleSignalsState 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 GoogleSignalsState(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.analytics.admin.v1alpha.GoogleSignalsState) +} 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 new file mode 100644 index 00000000..9c7f1fae --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java @@ -0,0 +1,962 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 ListConversionEvents RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListConversionEventsRequest} + */ +public final class ListConversionEventsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListConversionEventsRequest) + ListConversionEventsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListConversionEventsRequest.newBuilder() to construct. + private ListConversionEventsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListConversionEventsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListConversionEventsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListConversionEventsRequest( + 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_ListConversionEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest.class, + com.google.analytics.admin.v1alpha.ListConversionEventsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the parent property.
+   * Example: 'properties/123'
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the parent property.
+   * Example: 'properties/123'
+   * 
+ * + * + * 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 `ListConversionEvents` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListConversionEvents`
+   * 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 `ListConversionEvents` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListConversionEvents`
+   * 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.ListConversionEventsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListConversionEventsRequest other = + (com.google.analytics.admin.v1alpha.ListConversionEventsRequest) 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.ListConversionEventsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( + 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.ListConversionEventsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( + com.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.ListConversionEventsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest 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.ListConversionEventsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseFrom( + java.io.InputStream 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.ListConversionEventsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest parseDelimitedFrom( + java.io.InputStream 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.ListConversionEventsRequest 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.ListConversionEventsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ListConversionEventsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ListConversionEvents RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListConversionEventsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListConversionEventsRequest) + com.google.analytics.admin.v1alpha.ListConversionEventsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListConversionEventsRequest.class, + com.google.analytics.admin.v1alpha.ListConversionEventsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListConversionEventsRequest.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_ListConversionEventsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConversionEventsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListConversionEventsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConversionEventsRequest build() { + com.google.analytics.admin.v1alpha.ListConversionEventsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConversionEventsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListConversionEventsRequest result = + new com.google.analytics.admin.v1alpha.ListConversionEventsRequest(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.ListConversionEventsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListConversionEventsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListConversionEventsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListConversionEventsRequest.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.ListConversionEventsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListConversionEventsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the parent property.
+     * Example: 'properties/123'
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the parent property.
+     * Example: 'properties/123'
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the parent property.
+     * Example: 'properties/123'
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the parent property.
+     * Example: 'properties/123'
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the parent property.
+     * Example: 'properties/123'
+     * 
+ * + * + * 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 `ListConversionEvents` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConversionEvents`
+     * 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 `ListConversionEvents` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConversionEvents`
+     * 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 `ListConversionEvents` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConversionEvents`
+     * 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 `ListConversionEvents` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConversionEvents`
+     * 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 `ListConversionEvents` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListConversionEvents`
+     * 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.ListConversionEventsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListConversionEventsRequest) + private static final com.google.analytics.admin.v1alpha.ListConversionEventsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListConversionEventsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConversionEventsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConversionEventsRequest(input, extensionRegistry); + } + }; + + public static com.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.ListConversionEventsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java new file mode 100644 index 00000000..be1919e5 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.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 ListConversionEventsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListConversionEventsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the parent property.
+   * Example: 'properties/123'
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the parent property.
+   * Example: 'properties/123'
+   * 
+ * + * + * 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 `ListConversionEvents` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListConversionEvents`
+   * 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 `ListConversionEvents` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListConversionEvents`
+   * 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/ListConversionEventsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponse.java new file mode 100644 index 00000000..4d6e5978 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponse.java @@ -0,0 +1,1160 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 ListConversionEvents RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListConversionEventsResponse} + */ +public final class ListConversionEventsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListConversionEventsResponse) + ListConversionEventsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListConversionEventsResponse.newBuilder() to construct. + private ListConversionEventsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListConversionEventsResponse() { + conversionEvents_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListConversionEventsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListConversionEventsResponse( + 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)) { + conversionEvents_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + conversionEvents_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.ConversionEvent.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)) { + conversionEvents_ = java.util.Collections.unmodifiableList(conversionEvents_); + } + 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_ListConversionEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListConversionEventsResponse.class, + com.google.analytics.admin.v1alpha.ListConversionEventsResponse.Builder.class); + } + + public static final int CONVERSION_EVENTS_FIELD_NUMBER = 1; + private java.util.List conversionEvents_; + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + @java.lang.Override + public java.util.List + getConversionEventsList() { + return conversionEvents_; + } + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + @java.lang.Override + public java.util.List + getConversionEventsOrBuilderList() { + return conversionEvents_; + } + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + @java.lang.Override + public int getConversionEventsCount() { + return conversionEvents_.size(); + } + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvents(int index) { + return conversionEvents_.get(index); + } + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventsOrBuilder( + int index) { + return conversionEvents_.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 < conversionEvents_.size(); i++) { + output.writeMessage(1, conversionEvents_.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 < conversionEvents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, conversionEvents_.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.ListConversionEventsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListConversionEventsResponse other = + (com.google.analytics.admin.v1alpha.ListConversionEventsResponse) obj; + + if (!getConversionEventsList().equals(other.getConversionEventsList())) 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 (getConversionEventsCount() > 0) { + hash = (37 * hash) + CONVERSION_EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getConversionEventsList().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.ListConversionEventsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( + 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.ListConversionEventsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( + com.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.ListConversionEventsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse 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.ListConversionEventsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseFrom( + java.io.InputStream 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.ListConversionEventsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse parseDelimitedFrom( + java.io.InputStream 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.ListConversionEventsResponse 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.ListConversionEventsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ListConversionEventsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ListConversionEvents RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListConversionEventsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListConversionEventsResponse) + com.google.analytics.admin.v1alpha.ListConversionEventsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListConversionEventsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListConversionEventsResponse.class, + com.google.analytics.admin.v1alpha.ListConversionEventsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListConversionEventsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getConversionEventsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (conversionEventsBuilder_ == null) { + conversionEvents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + conversionEventsBuilder_.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_ListConversionEventsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConversionEventsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListConversionEventsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConversionEventsResponse build() { + com.google.analytics.admin.v1alpha.ListConversionEventsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListConversionEventsResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListConversionEventsResponse result = + new com.google.analytics.admin.v1alpha.ListConversionEventsResponse(this); + int from_bitField0_ = bitField0_; + if (conversionEventsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + conversionEvents_ = java.util.Collections.unmodifiableList(conversionEvents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.conversionEvents_ = conversionEvents_; + } else { + result.conversionEvents_ = conversionEventsBuilder_.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.ListConversionEventsResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListConversionEventsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListConversionEventsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListConversionEventsResponse.getDefaultInstance()) + return this; + if (conversionEventsBuilder_ == null) { + if (!other.conversionEvents_.isEmpty()) { + if (conversionEvents_.isEmpty()) { + conversionEvents_ = other.conversionEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureConversionEventsIsMutable(); + conversionEvents_.addAll(other.conversionEvents_); + } + onChanged(); + } + } else { + if (!other.conversionEvents_.isEmpty()) { + if (conversionEventsBuilder_.isEmpty()) { + conversionEventsBuilder_.dispose(); + conversionEventsBuilder_ = null; + conversionEvents_ = other.conversionEvents_; + bitField0_ = (bitField0_ & ~0x00000001); + conversionEventsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getConversionEventsFieldBuilder() + : null; + } else { + conversionEventsBuilder_.addAllMessages(other.conversionEvents_); + } + } + } + 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.ListConversionEventsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListConversionEventsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List conversionEvents_ = + java.util.Collections.emptyList(); + + private void ensureConversionEventsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + conversionEvents_ = + new java.util.ArrayList( + conversionEvents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> + conversionEventsBuilder_; + + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public java.util.List + getConversionEventsList() { + if (conversionEventsBuilder_ == null) { + return java.util.Collections.unmodifiableList(conversionEvents_); + } else { + return conversionEventsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public int getConversionEventsCount() { + if (conversionEventsBuilder_ == null) { + return conversionEvents_.size(); + } else { + return conversionEventsBuilder_.getCount(); + } + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvents(int index) { + if (conversionEventsBuilder_ == null) { + return conversionEvents_.get(index); + } else { + return conversionEventsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder setConversionEvents( + int index, com.google.analytics.admin.v1alpha.ConversionEvent value) { + if (conversionEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversionEventsIsMutable(); + conversionEvents_.set(index, value); + onChanged(); + } else { + conversionEventsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder setConversionEvents( + int index, com.google.analytics.admin.v1alpha.ConversionEvent.Builder builderForValue) { + if (conversionEventsBuilder_ == null) { + ensureConversionEventsIsMutable(); + conversionEvents_.set(index, builderForValue.build()); + onChanged(); + } else { + conversionEventsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder addConversionEvents(com.google.analytics.admin.v1alpha.ConversionEvent value) { + if (conversionEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversionEventsIsMutable(); + conversionEvents_.add(value); + onChanged(); + } else { + conversionEventsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder addConversionEvents( + int index, com.google.analytics.admin.v1alpha.ConversionEvent value) { + if (conversionEventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureConversionEventsIsMutable(); + conversionEvents_.add(index, value); + onChanged(); + } else { + conversionEventsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder addConversionEvents( + com.google.analytics.admin.v1alpha.ConversionEvent.Builder builderForValue) { + if (conversionEventsBuilder_ == null) { + ensureConversionEventsIsMutable(); + conversionEvents_.add(builderForValue.build()); + onChanged(); + } else { + conversionEventsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder addConversionEvents( + int index, com.google.analytics.admin.v1alpha.ConversionEvent.Builder builderForValue) { + if (conversionEventsBuilder_ == null) { + ensureConversionEventsIsMutable(); + conversionEvents_.add(index, builderForValue.build()); + onChanged(); + } else { + conversionEventsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder addAllConversionEvents( + java.lang.Iterable values) { + if (conversionEventsBuilder_ == null) { + ensureConversionEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, conversionEvents_); + onChanged(); + } else { + conversionEventsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder clearConversionEvents() { + if (conversionEventsBuilder_ == null) { + conversionEvents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + conversionEventsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public Builder removeConversionEvents(int index) { + if (conversionEventsBuilder_ == null) { + ensureConversionEventsIsMutable(); + conversionEvents_.remove(index); + onChanged(); + } else { + conversionEventsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public com.google.analytics.admin.v1alpha.ConversionEvent.Builder getConversionEventsBuilder( + int index) { + return getConversionEventsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventsOrBuilder( + int index) { + if (conversionEventsBuilder_ == null) { + return conversionEvents_.get(index); + } else { + return conversionEventsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public java.util.List + getConversionEventsOrBuilderList() { + if (conversionEventsBuilder_ != null) { + return conversionEventsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(conversionEvents_); + } + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public com.google.analytics.admin.v1alpha.ConversionEvent.Builder addConversionEventsBuilder() { + return getConversionEventsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance()); + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public com.google.analytics.admin.v1alpha.ConversionEvent.Builder addConversionEventsBuilder( + int index) { + return getConversionEventsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.ConversionEvent.getDefaultInstance()); + } + /** + * + * + *
+     * The requested conversion events
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + public java.util.List + getConversionEventsBuilderList() { + return getConversionEventsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder> + getConversionEventsFieldBuilder() { + if (conversionEventsBuilder_ == null) { + conversionEventsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.ConversionEvent, + com.google.analytics.admin.v1alpha.ConversionEvent.Builder, + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder>( + conversionEvents_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + conversionEvents_ = null; + } + return conversionEventsBuilder_; + } + + 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.ListConversionEventsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListConversionEventsResponse) + private static final com.google.analytics.admin.v1alpha.ListConversionEventsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListConversionEventsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListConversionEventsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListConversionEventsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListConversionEventsResponse(input, extensionRegistry); + } + }; + + public static com.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.ListConversionEventsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponseOrBuilder.java new file mode 100644 index 00000000..ac12d5f6 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsResponseOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 ListConversionEventsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListConversionEventsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + java.util.List getConversionEventsList(); + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + com.google.analytics.admin.v1alpha.ConversionEvent getConversionEvents(int index); + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + int getConversionEventsCount(); + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + java.util.List + getConversionEventsOrBuilderList(); + /** + * + * + *
+   * The requested conversion events
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.ConversionEvent conversion_events = 1; + */ + com.google.analytics.admin.v1alpha.ConversionEventOrBuilder getConversionEventsOrBuilder( + 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/ListCustomDimensionsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java new file mode 100644 index 00000000..4403e926 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java @@ -0,0 +1,955 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 ListCustomDimensions RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomDimensionsRequest} + */ +public final class ListCustomDimensionsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListCustomDimensionsRequest) + ListCustomDimensionsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCustomDimensionsRequest.newBuilder() to construct. + private ListCustomDimensionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCustomDimensionsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCustomDimensionsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListCustomDimensionsRequest( + 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_ListCustomDimensionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.class, + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.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 `ListCustomDimensions` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListCustomDimensions`
+   * 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 `ListCustomDimensions` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListCustomDimensions`
+   * 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.ListCustomDimensionsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest other = + (com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) 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.ListCustomDimensionsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( + 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.ListCustomDimensionsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( + com.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.ListCustomDimensionsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest 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.ListCustomDimensionsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseFrom( + java.io.InputStream 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.ListCustomDimensionsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest parseDelimitedFrom( + java.io.InputStream 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.ListCustomDimensionsRequest 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.ListCustomDimensionsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ListCustomDimensionsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ListCustomDimensions RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomDimensionsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListCustomDimensionsRequest) + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.class, + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.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_ListCustomDimensionsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest build() { + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest result = + new com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest(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.ListCustomDimensionsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest.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.ListCustomDimensionsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest) + 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 `ListCustomDimensions` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListCustomDimensions`
+     * 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 `ListCustomDimensions` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListCustomDimensions`
+     * 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 `ListCustomDimensions` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListCustomDimensions`
+     * 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 `ListCustomDimensions` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListCustomDimensions`
+     * 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 `ListCustomDimensions` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListCustomDimensions`
+     * 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.ListCustomDimensionsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListCustomDimensionsRequest) + private static final com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomDimensionsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCustomDimensionsRequest(input, extensionRegistry); + } + }; + + public static com.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.ListCustomDimensionsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java new file mode 100644 index 00000000..1ba10b17 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListCustomDimensionsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListCustomDimensionsRequest) + 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 `ListCustomDimensions` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListCustomDimensions`
+   * 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 `ListCustomDimensions` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListCustomDimensions`
+   * 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/ListCustomDimensionsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponse.java new file mode 100644 index 00000000..e2c154f1 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponse.java @@ -0,0 +1,1160 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 ListCustomDimensions RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomDimensionsResponse} + */ +public final class ListCustomDimensionsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListCustomDimensionsResponse) + ListCustomDimensionsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCustomDimensionsResponse.newBuilder() to construct. + private ListCustomDimensionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCustomDimensionsResponse() { + customDimensions_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCustomDimensionsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListCustomDimensionsResponse( + 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)) { + customDimensions_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + customDimensions_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.CustomDimension.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)) { + customDimensions_ = java.util.Collections.unmodifiableList(customDimensions_); + } + 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_ListCustomDimensionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.class, + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.Builder.class); + } + + public static final int CUSTOM_DIMENSIONS_FIELD_NUMBER = 1; + private java.util.List customDimensions_; + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + @java.lang.Override + public java.util.List + getCustomDimensionsList() { + return customDimensions_; + } + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + @java.lang.Override + public java.util.List + getCustomDimensionsOrBuilderList() { + return customDimensions_; + } + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + @java.lang.Override + public int getCustomDimensionsCount() { + return customDimensions_.size(); + } + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimensions(int index) { + return customDimensions_.get(index); + } + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionsOrBuilder( + int index) { + return customDimensions_.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 < customDimensions_.size(); i++) { + output.writeMessage(1, customDimensions_.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 < customDimensions_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, customDimensions_.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.ListCustomDimensionsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse other = + (com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse) obj; + + if (!getCustomDimensionsList().equals(other.getCustomDimensionsList())) 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 (getCustomDimensionsCount() > 0) { + hash = (37 * hash) + CUSTOM_DIMENSIONS_FIELD_NUMBER; + hash = (53 * hash) + getCustomDimensionsList().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.ListCustomDimensionsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( + 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.ListCustomDimensionsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( + com.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.ListCustomDimensionsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse 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.ListCustomDimensionsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseFrom( + java.io.InputStream 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.ListCustomDimensionsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse parseDelimitedFrom( + java.io.InputStream 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.ListCustomDimensionsResponse 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.ListCustomDimensionsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ListCustomDimensionsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ListCustomDimensions RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomDimensionsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListCustomDimensionsResponse) + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomDimensionsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.class, + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCustomDimensionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (customDimensionsBuilder_ == null) { + customDimensions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + customDimensionsBuilder_.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_ListCustomDimensionsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse build() { + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse result = + new com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse(this); + int from_bitField0_ = bitField0_; + if (customDimensionsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + customDimensions_ = java.util.Collections.unmodifiableList(customDimensions_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.customDimensions_ = customDimensions_; + } else { + result.customDimensions_ = customDimensionsBuilder_.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.ListCustomDimensionsResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse.getDefaultInstance()) + return this; + if (customDimensionsBuilder_ == null) { + if (!other.customDimensions_.isEmpty()) { + if (customDimensions_.isEmpty()) { + customDimensions_ = other.customDimensions_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCustomDimensionsIsMutable(); + customDimensions_.addAll(other.customDimensions_); + } + onChanged(); + } + } else { + if (!other.customDimensions_.isEmpty()) { + if (customDimensionsBuilder_.isEmpty()) { + customDimensionsBuilder_.dispose(); + customDimensionsBuilder_ = null; + customDimensions_ = other.customDimensions_; + bitField0_ = (bitField0_ & ~0x00000001); + customDimensionsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomDimensionsFieldBuilder() + : null; + } else { + customDimensionsBuilder_.addAllMessages(other.customDimensions_); + } + } + } + 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.ListCustomDimensionsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List customDimensions_ = + java.util.Collections.emptyList(); + + private void ensureCustomDimensionsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + customDimensions_ = + new java.util.ArrayList( + customDimensions_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + customDimensionsBuilder_; + + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public java.util.List + getCustomDimensionsList() { + if (customDimensionsBuilder_ == null) { + return java.util.Collections.unmodifiableList(customDimensions_); + } else { + return customDimensionsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public int getCustomDimensionsCount() { + if (customDimensionsBuilder_ == null) { + return customDimensions_.size(); + } else { + return customDimensionsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimensions(int index) { + if (customDimensionsBuilder_ == null) { + return customDimensions_.get(index); + } else { + return customDimensionsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder setCustomDimensions( + int index, com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomDimensionsIsMutable(); + customDimensions_.set(index, value); + onChanged(); + } else { + customDimensionsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder setCustomDimensions( + int index, com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { + if (customDimensionsBuilder_ == null) { + ensureCustomDimensionsIsMutable(); + customDimensions_.set(index, builderForValue.build()); + onChanged(); + } else { + customDimensionsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder addCustomDimensions(com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomDimensionsIsMutable(); + customDimensions_.add(value); + onChanged(); + } else { + customDimensionsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder addCustomDimensions( + int index, com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomDimensionsIsMutable(); + customDimensions_.add(index, value); + onChanged(); + } else { + customDimensionsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder addCustomDimensions( + com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { + if (customDimensionsBuilder_ == null) { + ensureCustomDimensionsIsMutable(); + customDimensions_.add(builderForValue.build()); + onChanged(); + } else { + customDimensionsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder addCustomDimensions( + int index, com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { + if (customDimensionsBuilder_ == null) { + ensureCustomDimensionsIsMutable(); + customDimensions_.add(index, builderForValue.build()); + onChanged(); + } else { + customDimensionsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder addAllCustomDimensions( + java.lang.Iterable values) { + if (customDimensionsBuilder_ == null) { + ensureCustomDimensionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customDimensions_); + onChanged(); + } else { + customDimensionsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder clearCustomDimensions() { + if (customDimensionsBuilder_ == null) { + customDimensions_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + customDimensionsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public Builder removeCustomDimensions(int index) { + if (customDimensionsBuilder_ == null) { + ensureCustomDimensionsIsMutable(); + customDimensions_.remove(index); + onChanged(); + } else { + customDimensionsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public com.google.analytics.admin.v1alpha.CustomDimension.Builder getCustomDimensionsBuilder( + int index) { + return getCustomDimensionsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionsOrBuilder( + int index) { + if (customDimensionsBuilder_ == null) { + return customDimensions_.get(index); + } else { + return customDimensionsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public java.util.List + getCustomDimensionsOrBuilderList() { + if (customDimensionsBuilder_ != null) { + return customDimensionsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customDimensions_); + } + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public com.google.analytics.admin.v1alpha.CustomDimension.Builder addCustomDimensionsBuilder() { + return getCustomDimensionsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance()); + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public com.google.analytics.admin.v1alpha.CustomDimension.Builder addCustomDimensionsBuilder( + int index) { + return getCustomDimensionsFieldBuilder() + .addBuilder( + index, com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance()); + } + /** + * + * + *
+     * List of CustomDimensions.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + public java.util.List + getCustomDimensionsBuilderList() { + return getCustomDimensionsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + getCustomDimensionsFieldBuilder() { + if (customDimensionsBuilder_ == null) { + customDimensionsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder>( + customDimensions_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + customDimensions_ = null; + } + return customDimensionsBuilder_; + } + + 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.ListCustomDimensionsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListCustomDimensionsResponse) + private static final com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListCustomDimensionsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomDimensionsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCustomDimensionsResponse(input, extensionRegistry); + } + }; + + public static com.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.ListCustomDimensionsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponseOrBuilder.java new file mode 100644 index 00000000..efb6ff0e --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsResponseOrBuilder.java @@ -0,0 +1,105 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 ListCustomDimensionsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListCustomDimensionsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + java.util.List getCustomDimensionsList(); + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + com.google.analytics.admin.v1alpha.CustomDimension getCustomDimensions(int index); + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + int getCustomDimensionsCount(); + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + java.util.List + getCustomDimensionsOrBuilderList(); + /** + * + * + *
+   * List of CustomDimensions.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomDimension custom_dimensions = 1; + */ + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionsOrBuilder( + 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/ListCustomMetricsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequest.java new file mode 100644 index 00000000..5bf9f9dc --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequest.java @@ -0,0 +1,949 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for ListCustomMetrics RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomMetricsRequest} + */ +public final class ListCustomMetricsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListCustomMetricsRequest) + ListCustomMetricsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCustomMetricsRequest.newBuilder() to construct. + private ListCustomMetricsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCustomMetricsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCustomMetricsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListCustomMetricsRequest( + 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_ListCustomMetricsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.class, + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.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 `ListCustomMetrics` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListCustomMetrics` 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 `ListCustomMetrics` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListCustomMetrics` 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.ListCustomMetricsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest other = + (com.google.analytics.admin.v1alpha.ListCustomMetricsRequest) 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.ListCustomMetricsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( + 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.ListCustomMetricsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( + com.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.ListCustomMetricsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest 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.ListCustomMetricsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseFrom( + java.io.InputStream 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.ListCustomMetricsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest parseDelimitedFrom( + java.io.InputStream 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.ListCustomMetricsRequest 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.ListCustomMetricsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ListCustomMetricsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ListCustomMetrics RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomMetricsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListCustomMetricsRequest) + com.google.analytics.admin.v1alpha.ListCustomMetricsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.class, + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.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_ListCustomMetricsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomMetricsRequest getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomMetricsRequest build() { + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomMetricsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListCustomMetricsRequest result = + new com.google.analytics.admin.v1alpha.ListCustomMetricsRequest(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.ListCustomMetricsRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListCustomMetricsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListCustomMetricsRequest other) { + if (other == com.google.analytics.admin.v1alpha.ListCustomMetricsRequest.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.ListCustomMetricsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListCustomMetricsRequest) 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 `ListCustomMetrics` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListCustomMetrics` 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 `ListCustomMetrics` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListCustomMetrics` 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 `ListCustomMetrics` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListCustomMetrics` 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 `ListCustomMetrics` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListCustomMetrics` 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 `ListCustomMetrics` call.
+     * Provide this to retrieve the subsequent page.
+     * When paginating, all other parameters provided to `ListCustomMetrics` 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.ListCustomMetricsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListCustomMetricsRequest) + private static final com.google.analytics.admin.v1alpha.ListCustomMetricsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListCustomMetricsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomMetricsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCustomMetricsRequest(input, extensionRegistry); + } + }; + + public static com.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.ListCustomMetricsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequestOrBuilder.java new file mode 100644 index 00000000..6fc7b232 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsRequestOrBuilder.java @@ -0,0 +1,100 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListCustomMetricsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListCustomMetricsRequest) + 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 `ListCustomMetrics` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListCustomMetrics` 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 `ListCustomMetrics` call.
+   * Provide this to retrieve the subsequent page.
+   * When paginating, all other parameters provided to `ListCustomMetrics` 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/ListCustomMetricsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponse.java new file mode 100644 index 00000000..896e4677 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponse.java @@ -0,0 +1,1152 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 ListCustomMetrics RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomMetricsResponse} + */ +public final class ListCustomMetricsResponse extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListCustomMetricsResponse) + ListCustomMetricsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListCustomMetricsResponse.newBuilder() to construct. + private ListCustomMetricsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListCustomMetricsResponse() { + customMetrics_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListCustomMetricsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListCustomMetricsResponse( + 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)) { + customMetrics_ = + new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + customMetrics_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.CustomMetric.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)) { + customMetrics_ = java.util.Collections.unmodifiableList(customMetrics_); + } + 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_ListCustomMetricsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.class, + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.Builder.class); + } + + public static final int CUSTOM_METRICS_FIELD_NUMBER = 1; + private java.util.List customMetrics_; + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + @java.lang.Override + public java.util.List getCustomMetricsList() { + return customMetrics_; + } + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + @java.lang.Override + public java.util.List + getCustomMetricsOrBuilderList() { + return customMetrics_; + } + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + @java.lang.Override + public int getCustomMetricsCount() { + return customMetrics_.size(); + } + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetrics(int index) { + return customMetrics_.get(index); + } + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricsOrBuilder( + int index) { + return customMetrics_.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 < customMetrics_.size(); i++) { + output.writeMessage(1, customMetrics_.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 < customMetrics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, customMetrics_.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.ListCustomMetricsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse other = + (com.google.analytics.admin.v1alpha.ListCustomMetricsResponse) obj; + + if (!getCustomMetricsList().equals(other.getCustomMetricsList())) 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 (getCustomMetricsCount() > 0) { + hash = (37 * hash) + CUSTOM_METRICS_FIELD_NUMBER; + hash = (53 * hash) + getCustomMetricsList().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.ListCustomMetricsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( + 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.ListCustomMetricsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( + com.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.ListCustomMetricsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse 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.ListCustomMetricsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseFrom( + java.io.InputStream 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.ListCustomMetricsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse parseDelimitedFrom( + java.io.InputStream 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.ListCustomMetricsResponse 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.ListCustomMetricsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ListCustomMetricsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ListCustomMetrics RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListCustomMetricsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListCustomMetricsResponse) + com.google.analytics.admin.v1alpha.ListCustomMetricsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListCustomMetricsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.class, + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getCustomMetricsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (customMetricsBuilder_ == null) { + customMetrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + customMetricsBuilder_.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_ListCustomMetricsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomMetricsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomMetricsResponse build() { + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListCustomMetricsResponse buildPartial() { + com.google.analytics.admin.v1alpha.ListCustomMetricsResponse result = + new com.google.analytics.admin.v1alpha.ListCustomMetricsResponse(this); + int from_bitField0_ = bitField0_; + if (customMetricsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + customMetrics_ = java.util.Collections.unmodifiableList(customMetrics_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.customMetrics_ = customMetrics_; + } else { + result.customMetrics_ = customMetricsBuilder_.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.ListCustomMetricsResponse) { + return mergeFrom((com.google.analytics.admin.v1alpha.ListCustomMetricsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.ListCustomMetricsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListCustomMetricsResponse.getDefaultInstance()) + return this; + if (customMetricsBuilder_ == null) { + if (!other.customMetrics_.isEmpty()) { + if (customMetrics_.isEmpty()) { + customMetrics_ = other.customMetrics_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureCustomMetricsIsMutable(); + customMetrics_.addAll(other.customMetrics_); + } + onChanged(); + } + } else { + if (!other.customMetrics_.isEmpty()) { + if (customMetricsBuilder_.isEmpty()) { + customMetricsBuilder_.dispose(); + customMetricsBuilder_ = null; + customMetrics_ = other.customMetrics_; + bitField0_ = (bitField0_ & ~0x00000001); + customMetricsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getCustomMetricsFieldBuilder() + : null; + } else { + customMetricsBuilder_.addAllMessages(other.customMetrics_); + } + } + } + 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.ListCustomMetricsResponse parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListCustomMetricsResponse) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List customMetrics_ = + java.util.Collections.emptyList(); + + private void ensureCustomMetricsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + customMetrics_ = + new java.util.ArrayList( + customMetrics_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + customMetricsBuilder_; + + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public java.util.List getCustomMetricsList() { + if (customMetricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(customMetrics_); + } else { + return customMetricsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public int getCustomMetricsCount() { + if (customMetricsBuilder_ == null) { + return customMetrics_.size(); + } else { + return customMetricsBuilder_.getCount(); + } + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetrics(int index) { + if (customMetricsBuilder_ == null) { + return customMetrics_.get(index); + } else { + return customMetricsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder setCustomMetrics( + int index, com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomMetricsIsMutable(); + customMetrics_.set(index, value); + onChanged(); + } else { + customMetricsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder setCustomMetrics( + int index, com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { + if (customMetricsBuilder_ == null) { + ensureCustomMetricsIsMutable(); + customMetrics_.set(index, builderForValue.build()); + onChanged(); + } else { + customMetricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder addCustomMetrics(com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomMetricsIsMutable(); + customMetrics_.add(value); + onChanged(); + } else { + customMetricsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder addCustomMetrics( + int index, com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureCustomMetricsIsMutable(); + customMetrics_.add(index, value); + onChanged(); + } else { + customMetricsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder addCustomMetrics( + com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { + if (customMetricsBuilder_ == null) { + ensureCustomMetricsIsMutable(); + customMetrics_.add(builderForValue.build()); + onChanged(); + } else { + customMetricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder addCustomMetrics( + int index, com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { + if (customMetricsBuilder_ == null) { + ensureCustomMetricsIsMutable(); + customMetrics_.add(index, builderForValue.build()); + onChanged(); + } else { + customMetricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder addAllCustomMetrics( + java.lang.Iterable values) { + if (customMetricsBuilder_ == null) { + ensureCustomMetricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, customMetrics_); + onChanged(); + } else { + customMetricsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder clearCustomMetrics() { + if (customMetricsBuilder_ == null) { + customMetrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + customMetricsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public Builder removeCustomMetrics(int index) { + if (customMetricsBuilder_ == null) { + ensureCustomMetricsIsMutable(); + customMetrics_.remove(index); + onChanged(); + } else { + customMetricsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public com.google.analytics.admin.v1alpha.CustomMetric.Builder getCustomMetricsBuilder( + int index) { + return getCustomMetricsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricsOrBuilder( + int index) { + if (customMetricsBuilder_ == null) { + return customMetrics_.get(index); + } else { + return customMetricsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public java.util.List + getCustomMetricsOrBuilderList() { + if (customMetricsBuilder_ != null) { + return customMetricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(customMetrics_); + } + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public com.google.analytics.admin.v1alpha.CustomMetric.Builder addCustomMetricsBuilder() { + return getCustomMetricsFieldBuilder() + .addBuilder(com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()); + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public com.google.analytics.admin.v1alpha.CustomMetric.Builder addCustomMetricsBuilder( + int index) { + return getCustomMetricsFieldBuilder() + .addBuilder(index, com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance()); + } + /** + * + * + *
+     * List of CustomMetrics.
+     * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + public java.util.List + getCustomMetricsBuilderList() { + return getCustomMetricsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + getCustomMetricsFieldBuilder() { + if (customMetricsBuilder_ == null) { + customMetricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder>( + customMetrics_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + customMetrics_ = null; + } + return customMetricsBuilder_; + } + + 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.ListCustomMetricsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListCustomMetricsResponse) + private static final com.google.analytics.admin.v1alpha.ListCustomMetricsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.ListCustomMetricsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListCustomMetricsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListCustomMetricsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListCustomMetricsResponse(input, extensionRegistry); + } + }; + + public static com.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.ListCustomMetricsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponseOrBuilder.java new file mode 100644 index 00000000..e50c688f --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomMetricsResponseOrBuilder.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 ListCustomMetricsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListCustomMetricsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + java.util.List getCustomMetricsList(); + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + com.google.analytics.admin.v1alpha.CustomMetric getCustomMetrics(int index); + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + int getCustomMetricsCount(); + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + java.util.List + getCustomMetricsOrBuilderList(); + /** + * + * + *
+   * List of CustomMetrics.
+   * 
+ * + * repeated .google.analytics.admin.v1alpha.CustomMetric custom_metrics = 1; + */ + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricsOrBuilder(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/ListMeasurementProtocolSecretsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java new file mode 100644 index 00000000..d650ee2c --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java @@ -0,0 +1,995 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 ListMeasurementProtocolSecret RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} + */ +public final class ListMeasurementProtocolSecretsRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) + ListMeasurementProtocolSecretsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMeasurementProtocolSecretsRequest.newBuilder() to construct. + private ListMeasurementProtocolSecretsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMeasurementProtocolSecretsRequest() { + parent_ = ""; + pageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMeasurementProtocolSecretsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListMeasurementProtocolSecretsRequest( + 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_ListMeasurementProtocolSecretsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.class, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + private volatile java.lang.Object parent_; + /** + * + * + *
+   * Required. The resource name of the parent stream.
+   * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
+   * may be a parent.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The resource name of the parent stream.
+   * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
+   * may be a parent.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets
+   * 
+ * + * + * 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 10 resources will be returned.
+   * The maximum value is 10. 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 `ListMeasurementProtocolSecrets`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListMeasurementProtocolSecrets` 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 `ListMeasurementProtocolSecrets`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListMeasurementProtocolSecrets` 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.ListMeasurementProtocolSecretsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest other = + (com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) 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.ListMeasurementProtocolSecretsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( + 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.ListMeasurementProtocolSecretsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( + com.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.ListMeasurementProtocolSecretsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest 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.ListMeasurementProtocolSecretsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest parseFrom( + java.io.InputStream 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.ListMeasurementProtocolSecretsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + parseDelimitedFrom( + java.io.InputStream 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.ListMeasurementProtocolSecretsRequest 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.ListMeasurementProtocolSecretsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ListMeasurementProtocolSecretsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ListMeasurementProtocolSecret RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.class, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest.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_ListMeasurementProtocolSecretsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest build() { + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest buildPartial() { + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest result = + new com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest(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.ListMeasurementProtocolSecretsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + .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.ListMeasurementProtocolSecretsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The resource name of the parent stream.
+     * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
+     * may be a parent.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the parent stream.
+     * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
+     * may be a parent.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The resource name of the parent stream.
+     * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
+     * may be a parent.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + parent_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the parent stream.
+     * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
+     * may be a parent.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + + parent_ = getDefaultInstance().getParent(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The resource name of the parent stream.
+     * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
+     * may be a parent.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets
+     * 
+ * + * + * 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 10 resources will be returned.
+     * The maximum value is 10. 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 10 resources will be returned.
+     * The maximum value is 10. 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 10 resources will be returned.
+     * The maximum value is 10. 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 `ListMeasurementProtocolSecrets`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListMeasurementProtocolSecrets` 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 `ListMeasurementProtocolSecrets`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListMeasurementProtocolSecrets` 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 `ListMeasurementProtocolSecrets`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListMeasurementProtocolSecrets` 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 `ListMeasurementProtocolSecrets`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListMeasurementProtocolSecrets` 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 `ListMeasurementProtocolSecrets`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListMeasurementProtocolSecrets` 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.ListMeasurementProtocolSecretsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) + private static final com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest(); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMeasurementProtocolSecretsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMeasurementProtocolSecretsRequest(input, extensionRegistry); + } + }; + + public static com.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.ListMeasurementProtocolSecretsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java new file mode 100644 index 00000000..0e40a364 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java @@ -0,0 +1,108 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListMeasurementProtocolSecretsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the parent stream.
+   * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
+   * may be a parent.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The resource name of the parent stream.
+   * Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream)
+   * may be a parent.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets
+   * 
+ * + * + * 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 10 resources will be returned.
+   * The maximum value is 10. Higher values will be coerced to the maximum.
+   * 
+ * + * int32 page_size = 2; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
+   * A page token, received from a previous `ListMeasurementProtocolSecrets`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListMeasurementProtocolSecrets` 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 `ListMeasurementProtocolSecrets`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListMeasurementProtocolSecrets` 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/ListMeasurementProtocolSecretsResponse.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponse.java new file mode 100644 index 00000000..6409ec06 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponse.java @@ -0,0 +1,1238 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 ListMeasurementProtocolSecret RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} + */ +public final class ListMeasurementProtocolSecretsResponse + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) + ListMeasurementProtocolSecretsResponseOrBuilder { + private static final long serialVersionUID = 0L; + // Use ListMeasurementProtocolSecretsResponse.newBuilder() to construct. + private ListMeasurementProtocolSecretsResponse( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private ListMeasurementProtocolSecretsResponse() { + measurementProtocolSecrets_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new ListMeasurementProtocolSecretsResponse(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private ListMeasurementProtocolSecretsResponse( + 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)) { + measurementProtocolSecrets_ = + new java.util.ArrayList< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret>(); + mutable_bitField0_ |= 0x00000001; + } + measurementProtocolSecrets_.add( + input.readMessage( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.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)) { + measurementProtocolSecrets_ = + java.util.Collections.unmodifiableList(measurementProtocolSecrets_); + } + 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_ListMeasurementProtocolSecretsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.class, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.Builder + .class); + } + + public static final int MEASUREMENT_PROTOCOL_SECRETS_FIELD_NUMBER = 1; + private java.util.List + measurementProtocolSecrets_; + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + @java.lang.Override + public java.util.List + getMeasurementProtocolSecretsList() { + return measurementProtocolSecrets_; + } + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretsOrBuilderList() { + return measurementProtocolSecrets_; + } + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + @java.lang.Override + public int getMeasurementProtocolSecretsCount() { + return measurementProtocolSecrets_.size(); + } + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecrets( + int index) { + return measurementProtocolSecrets_.get(index); + } + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretsOrBuilder(int index) { + return measurementProtocolSecrets_.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 < measurementProtocolSecrets_.size(); i++) { + output.writeMessage(1, measurementProtocolSecrets_.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 < measurementProtocolSecrets_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, measurementProtocolSecrets_.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.ListMeasurementProtocolSecretsResponse)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse other = + (com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) obj; + + if (!getMeasurementProtocolSecretsList().equals(other.getMeasurementProtocolSecretsList())) + 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 (getMeasurementProtocolSecretsCount() > 0) { + hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRETS_FIELD_NUMBER; + hash = (53 * hash) + getMeasurementProtocolSecretsList().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.ListMeasurementProtocolSecretsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( + 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.ListMeasurementProtocolSecretsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( + com.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.ListMeasurementProtocolSecretsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse 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.ListMeasurementProtocolSecretsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse parseFrom( + java.io.InputStream 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.ListMeasurementProtocolSecretsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + parseDelimitedFrom( + java.io.InputStream 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.ListMeasurementProtocolSecretsResponse 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.ListMeasurementProtocolSecretsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.ListMeasurementProtocolSecretsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 ListMeasurementProtocolSecret RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_ListMeasurementProtocolSecretsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.class, + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) { + getMeasurementProtocolSecretsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + if (measurementProtocolSecretsBuilder_ == null) { + measurementProtocolSecrets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + measurementProtocolSecretsBuilder_.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_ListMeasurementProtocolSecretsResponse_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse build() { + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + buildPartial() { + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse result = + new com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse(this); + int from_bitField0_ = bitField0_; + if (measurementProtocolSecretsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + measurementProtocolSecrets_ = + java.util.Collections.unmodifiableList(measurementProtocolSecrets_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.measurementProtocolSecrets_ = measurementProtocolSecrets_; + } else { + result.measurementProtocolSecrets_ = measurementProtocolSecretsBuilder_.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.ListMeasurementProtocolSecretsResponse) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse other) { + if (other + == com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + .getDefaultInstance()) return this; + if (measurementProtocolSecretsBuilder_ == null) { + if (!other.measurementProtocolSecrets_.isEmpty()) { + if (measurementProtocolSecrets_.isEmpty()) { + measurementProtocolSecrets_ = other.measurementProtocolSecrets_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.addAll(other.measurementProtocolSecrets_); + } + onChanged(); + } + } else { + if (!other.measurementProtocolSecrets_.isEmpty()) { + if (measurementProtocolSecretsBuilder_.isEmpty()) { + measurementProtocolSecretsBuilder_.dispose(); + measurementProtocolSecretsBuilder_ = null; + measurementProtocolSecrets_ = other.measurementProtocolSecrets_; + bitField0_ = (bitField0_ & ~0x00000001); + measurementProtocolSecretsBuilder_ = + com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders + ? getMeasurementProtocolSecretsFieldBuilder() + : null; + } else { + measurementProtocolSecretsBuilder_.addAllMessages(other.measurementProtocolSecrets_); + } + } + } + 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.ListMeasurementProtocolSecretsResponse parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private int bitField0_; + + private java.util.List + measurementProtocolSecrets_ = java.util.Collections.emptyList(); + + private void ensureMeasurementProtocolSecretsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + measurementProtocolSecrets_ = + new java.util.ArrayList( + measurementProtocolSecrets_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + measurementProtocolSecretsBuilder_; + + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public java.util.List + getMeasurementProtocolSecretsList() { + if (measurementProtocolSecretsBuilder_ == null) { + return java.util.Collections.unmodifiableList(measurementProtocolSecrets_); + } else { + return measurementProtocolSecretsBuilder_.getMessageList(); + } + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public int getMeasurementProtocolSecretsCount() { + if (measurementProtocolSecretsBuilder_ == null) { + return measurementProtocolSecrets_.size(); + } else { + return measurementProtocolSecretsBuilder_.getCount(); + } + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecrets(int index) { + if (measurementProtocolSecretsBuilder_ == null) { + return measurementProtocolSecrets_.get(index); + } else { + return measurementProtocolSecretsBuilder_.getMessage(index); + } + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder setMeasurementProtocolSecrets( + int index, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.set(index, value); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.setMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder setMeasurementProtocolSecrets( + int index, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretsBuilder_ == null) { + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.set(index, builderForValue.build()); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder addMeasurementProtocolSecrets( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.add(value); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.addMessage(value); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder addMeasurementProtocolSecrets( + int index, com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.add(index, value); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.addMessage(index, value); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder addMeasurementProtocolSecrets( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretsBuilder_ == null) { + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.add(builderForValue.build()); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder addMeasurementProtocolSecrets( + int index, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretsBuilder_ == null) { + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.add(index, builderForValue.build()); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder addAllMeasurementProtocolSecrets( + java.lang.Iterable + values) { + if (measurementProtocolSecretsBuilder_ == null) { + ensureMeasurementProtocolSecretsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, measurementProtocolSecrets_); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.addAllMessages(values); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder clearMeasurementProtocolSecrets() { + if (measurementProtocolSecretsBuilder_ == null) { + measurementProtocolSecrets_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.clear(); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public Builder removeMeasurementProtocolSecrets(int index) { + if (measurementProtocolSecretsBuilder_ == null) { + ensureMeasurementProtocolSecretsIsMutable(); + measurementProtocolSecrets_.remove(index); + onChanged(); + } else { + measurementProtocolSecretsBuilder_.remove(index); + } + return this; + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder + getMeasurementProtocolSecretsBuilder(int index) { + return getMeasurementProtocolSecretsFieldBuilder().getBuilder(index); + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretsOrBuilder(int index) { + if (measurementProtocolSecretsBuilder_ == null) { + return measurementProtocolSecrets_.get(index); + } else { + return measurementProtocolSecretsBuilder_.getMessageOrBuilder(index); + } + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public java.util.List< + ? extends com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretsOrBuilderList() { + if (measurementProtocolSecretsBuilder_ != null) { + return measurementProtocolSecretsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(measurementProtocolSecrets_); + } + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder + addMeasurementProtocolSecretsBuilder() { + return getMeasurementProtocolSecretsFieldBuilder() + .addBuilder( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance()); + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder + addMeasurementProtocolSecretsBuilder(int index) { + return getMeasurementProtocolSecretsFieldBuilder() + .addBuilder( + index, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance()); + } + /** + * + * + *
+     * A list of secrets for the parent stream specified in the request.
+     * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + public java.util.List + getMeasurementProtocolSecretsBuilderList() { + return getMeasurementProtocolSecretsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretsFieldBuilder() { + if (measurementProtocolSecretsBuilder_ == null) { + measurementProtocolSecretsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder>( + measurementProtocolSecrets_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + measurementProtocolSecrets_ = null; + } + return measurementProtocolSecretsBuilder_; + } + + 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.ListMeasurementProtocolSecretsResponse) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) + private static final com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse(); + } + + public static com.google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListMeasurementProtocolSecretsResponse parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new ListMeasurementProtocolSecretsResponse(input, extensionRegistry); + } + }; + + public static com.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.ListMeasurementProtocolSecretsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponseOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponseOrBuilder.java new file mode 100644 index 00000000..32a7b109 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsResponseOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/analytics/admin/v1alpha/analytics_admin.proto + +package com.google.analytics.admin.v1alpha; + +public interface ListMeasurementProtocolSecretsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.ListMeasurementProtocolSecretsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + java.util.List + getMeasurementProtocolSecretsList(); + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecrets( + int index); + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + int getMeasurementProtocolSecretsCount(); + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + java.util.List + getMeasurementProtocolSecretsOrBuilderList(); + /** + * + * + *
+   * A list of secrets for the parent stream specified in the request.
+   * 
+ * + * + * repeated .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secrets = 1; + * + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretsOrBuilder(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/MeasurementProtocolSecret.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java new file mode 100644 index 00000000..1be30d69 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java @@ -0,0 +1,1033 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 secret value used for sending hits to Measurement Protocol.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.MeasurementProtocolSecret} + */ +public final class MeasurementProtocolSecret extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.MeasurementProtocolSecret) + MeasurementProtocolSecretOrBuilder { + private static final long serialVersionUID = 0L; + // Use MeasurementProtocolSecret.newBuilder() to construct. + private MeasurementProtocolSecret(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private MeasurementProtocolSecret() { + name_ = ""; + displayName_ = ""; + secretValue_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new MeasurementProtocolSecret(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private MeasurementProtocolSecret( + 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(); + + displayName_ = s; + break; + } + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + + secretValue_ = 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.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.class, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Output only. Resource name of this secret. This secret may be a child of any type of
+   * stream.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * 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 of this secret. This secret may be a child of any type of
+   * stream.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * 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 DISPLAY_NAME_FIELD_NUMBER = 2; + private volatile java.lang.Object displayName_; + /** + * + * + *
+   * Required. Human-readable display name for this secret.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } + } + /** + * + * + *
+   * Required. Human-readable display name for this secret.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SECRET_VALUE_FIELD_NUMBER = 3; + private volatile java.lang.Object secretValue_; + /** + * + * + *
+   * Output only. The measurement protocol secret value. Pass this value to the api_secret
+   * field of the Measurement Protocol API when sending hits to this
+   * secret's parent property.
+   * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The secretValue. + */ + @java.lang.Override + public java.lang.String getSecretValue() { + java.lang.Object ref = secretValue_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secretValue_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. The measurement protocol secret value. Pass this value to the api_secret
+   * field of the Measurement Protocol API when sending hits to this
+   * secret's parent property.
+   * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for secretValue. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSecretValueBytes() { + java.lang.Object ref = secretValue_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!getNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (!getDisplayNameBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, displayName_); + } + if (!getSecretValueBytes().isEmpty()) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, secretValue_); + } + 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 (!getDisplayNameBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, displayName_); + } + if (!getSecretValueBytes().isEmpty()) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, secretValue_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + 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.MeasurementProtocolSecret)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret other = + (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getSecretValue().equals(other.getSecretValue())) return false; + if (!unknownFields.equals(other.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) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + SECRET_VALUE_FIELD_NUMBER; + hash = (53 * hash) + getSecretValue().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( + 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.MeasurementProtocolSecret parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( + com.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.MeasurementProtocolSecret parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret 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.MeasurementProtocolSecret parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseFrom( + java.io.InputStream 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.MeasurementProtocolSecret parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret parseDelimitedFrom( + java.io.InputStream 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.MeasurementProtocolSecret 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.MeasurementProtocolSecret parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.MeasurementProtocolSecret prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 secret value used for sending hits to Measurement Protocol.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.MeasurementProtocolSecret} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.MeasurementProtocolSecret) + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.class, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.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_ = ""; + + displayName_ = ""; + + secretValue_ = ""; + + 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_MeasurementProtocolSecret_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret build() { + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret buildPartial() { + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret result = + new com.google.analytics.admin.v1alpha.MeasurementProtocolSecret(this); + result.name_ = name_; + result.displayName_ = displayName_; + result.secretValue_ = secretValue_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.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.MeasurementProtocolSecret) { + return mergeFrom((com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.MeasurementProtocolSecret other) { + if (other + == com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + onChanged(); + } + if (!other.getSecretValue().isEmpty()) { + secretValue_ = other.secretValue_; + 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.MeasurementProtocolSecret parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.MeasurementProtocolSecret) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Output only. Resource name of this secret. This secret may be a child of any type of
+     * stream.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * 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 of this secret. This secret may be a child of any type of
+     * stream.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * 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 of this secret. This secret may be a child of any type of
+     * stream.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * 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 of this secret. This secret may be a child of any type of
+     * stream.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * 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 of this secret. This secret may be a child of any type of
+     * stream.
+     * Format:
+     * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+     * 
+ * + * 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 displayName_ = ""; + /** + * + * + *
+     * Required. Human-readable display name for this secret.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. Human-readable display name for this secret.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. Human-readable display name for this secret.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + displayName_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Human-readable display name for this secret.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + + displayName_ = getDefaultInstance().getDisplayName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Human-readable display name for this secret.
+     * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + displayName_ = value; + onChanged(); + return this; + } + + private java.lang.Object secretValue_ = ""; + /** + * + * + *
+     * Output only. The measurement protocol secret value. Pass this value to the api_secret
+     * field of the Measurement Protocol API when sending hits to this
+     * secret's parent property.
+     * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The secretValue. + */ + public java.lang.String getSecretValue() { + java.lang.Object ref = secretValue_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + secretValue_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. The measurement protocol secret value. Pass this value to the api_secret
+     * field of the Measurement Protocol API when sending hits to this
+     * secret's parent property.
+     * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for secretValue. + */ + public com.google.protobuf.ByteString getSecretValueBytes() { + java.lang.Object ref = secretValue_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + secretValue_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. The measurement protocol secret value. Pass this value to the api_secret
+     * field of the Measurement Protocol API when sending hits to this
+     * secret's parent property.
+     * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The secretValue to set. + * @return This builder for chaining. + */ + public Builder setSecretValue(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + secretValue_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The measurement protocol secret value. Pass this value to the api_secret
+     * field of the Measurement Protocol API when sending hits to this
+     * secret's parent property.
+     * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSecretValue() { + + secretValue_ = getDefaultInstance().getSecretValue(); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. The measurement protocol secret value. Pass this value to the api_secret
+     * field of the Measurement Protocol API when sending hits to this
+     * secret's parent property.
+     * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for secretValue to set. + * @return This builder for chaining. + */ + public Builder setSecretValueBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + secretValue_ = 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.MeasurementProtocolSecret) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.MeasurementProtocolSecret) + private static final com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.MeasurementProtocolSecret(); + } + + public static com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MeasurementProtocolSecret parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new MeasurementProtocolSecret(input, extensionRegistry); + } + }; + + public static com.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.MeasurementProtocolSecret getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName.java new file mode 100644 index 00000000..3a8bd481 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretName.java @@ -0,0 +1,241 @@ +/* + * 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 MeasurementProtocolSecretName implements ResourceName { + private static final PathTemplate PROPERTY_WEB_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET = + PathTemplate.createWithoutUrlEncoding( + "properties/{property}/webDataStreams/{web_data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}"); + private volatile Map fieldValuesMap; + private final String property; + private final String webDataStream; + private final String measurementProtocolSecret; + + @Deprecated + protected MeasurementProtocolSecretName() { + property = null; + webDataStream = null; + measurementProtocolSecret = null; + } + + private MeasurementProtocolSecretName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + webDataStream = Preconditions.checkNotNull(builder.getWebDataStream()); + measurementProtocolSecret = Preconditions.checkNotNull(builder.getMeasurementProtocolSecret()); + } + + public String getProperty() { + return property; + } + + public String getWebDataStream() { + return webDataStream; + } + + public String getMeasurementProtocolSecret() { + return measurementProtocolSecret; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static MeasurementProtocolSecretName of( + String property, String webDataStream, String measurementProtocolSecret) { + return newBuilder() + .setProperty(property) + .setWebDataStream(webDataStream) + .setMeasurementProtocolSecret(measurementProtocolSecret) + .build(); + } + + public static String format( + String property, String webDataStream, String measurementProtocolSecret) { + return newBuilder() + .setProperty(property) + .setWebDataStream(webDataStream) + .setMeasurementProtocolSecret(measurementProtocolSecret) + .build() + .toString(); + } + + public static MeasurementProtocolSecretName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY_WEB_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET.validatedMatch( + formattedString, + "MeasurementProtocolSecretName.parse: formattedString not in valid format"); + return of( + matchMap.get("property"), + matchMap.get("web_data_stream"), + matchMap.get("measurement_protocol_secret")); + } + + 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 (MeasurementProtocolSecretName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROPERTY_WEB_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET.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 (webDataStream != null) { + fieldMapBuilder.put("web_data_stream", webDataStream); + } + if (measurementProtocolSecret != null) { + fieldMapBuilder.put("measurement_protocol_secret", measurementProtocolSecret); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROPERTY_WEB_DATA_STREAM_MEASUREMENT_PROTOCOL_SECRET.instantiate( + "property", + property, + "web_data_stream", + webDataStream, + "measurement_protocol_secret", + measurementProtocolSecret); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null || getClass() == o.getClass()) { + MeasurementProtocolSecretName that = ((MeasurementProtocolSecretName) o); + return Objects.equals(this.property, that.property) + && Objects.equals(this.webDataStream, that.webDataStream) + && Objects.equals(this.measurementProtocolSecret, that.measurementProtocolSecret); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(property); + h *= 1000003; + h ^= Objects.hashCode(webDataStream); + h *= 1000003; + h ^= Objects.hashCode(measurementProtocolSecret); + return h; + } + + /** + * Builder for + * properties/{property}/webDataStreams/{web_data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}. + */ + public static class Builder { + private String property; + private String webDataStream; + private String measurementProtocolSecret; + + protected Builder() {} + + public String getProperty() { + return property; + } + + public String getWebDataStream() { + return webDataStream; + } + + public String getMeasurementProtocolSecret() { + return measurementProtocolSecret; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + public Builder setWebDataStream(String webDataStream) { + this.webDataStream = webDataStream; + return this; + } + + public Builder setMeasurementProtocolSecret(String measurementProtocolSecret) { + this.measurementProtocolSecret = measurementProtocolSecret; + return this; + } + + private Builder(MeasurementProtocolSecretName measurementProtocolSecretName) { + property = measurementProtocolSecretName.property; + webDataStream = measurementProtocolSecretName.webDataStream; + measurementProtocolSecret = measurementProtocolSecretName.measurementProtocolSecret; + } + + public MeasurementProtocolSecretName build() { + return new MeasurementProtocolSecretName(this); + } + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java new file mode 100644 index 00000000..7070bc62 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java @@ -0,0 +1,110 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 MeasurementProtocolSecretOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.MeasurementProtocolSecret) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Output only. Resource name of this secret. This secret may be a child of any type of
+   * stream.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Output only. Resource name of this secret. This secret may be a child of any type of
+   * stream.
+   * Format:
+   * properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Required. Human-readable display name for this secret.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + /** + * + * + *
+   * Required. Human-readable display name for this secret.
+   * 
+ * + * string display_name = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
+   * Output only. The measurement protocol secret value. Pass this value to the api_secret
+   * field of the Measurement Protocol API when sending hits to this
+   * secret's parent property.
+   * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The secretValue. + */ + java.lang.String getSecretValue(); + /** + * + * + *
+   * Output only. The measurement protocol secret value. Pass this value to the api_secret
+   * field of the Measurement Protocol API when sending hits to this
+   * secret's parent property.
+   * 
+ * + * string secret_value = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for secretValue. + */ + com.google.protobuf.ByteString getSecretValueBytes(); +} 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 04c8393f..1072f634 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 @@ -83,6 +83,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_PropertySummary_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_PropertySummary_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -95,6 +99,22 @@ 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_ConversionEvent_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_ConversionEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CustomDimension_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_CustomMetric_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -154,127 +174,194 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "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}\"\312\001\n\010User" - + "Link\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:\202\001\352A\177\n&analytics" - + "admin.googleapis.com/UserLink\022(accounts/" - + "{account}/userLinks/{user_link}\022+propert" - + "ies/{property}/userLinks/{user_link}\"c\n\r" - + "AuditUserLink\022\014\n\004name\030\001 \001(\t\022\025\n\remail_add" - + "ress\030\002 \001(\t\022\024\n\014direct_roles\030\003 \003(\t\022\027\n\017effe" - + "ctive_roles\030\004 \003(\t\"\231\004\n\033EnhancedMeasuremen" - + "tSettings\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\026\n\016stream_e" - + "nabled\030\002 \001(\010\022\037\n\022page_views_enabled\030\003 \001(\010" - + "B\003\340A\003\022\027\n\017scrolls_enabled\030\004 \001(\010\022\037\n\027outbou" - + "nd_clicks_enabled\030\005 \001(\010\022\033\n\023site_search_e" - + "nabled\030\007 \001(\010\022 \n\030video_engagement_enabled" - + "\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\024page_" - + "changes_enabled\030\r \001(\010\022#\n\026search_query_pa" - + "rameter\030\020 \001(\tB\003\340A\002\022\033\n\023uri_query_paramete" - + "r\030\021 \001(\t:\223\001\352A\217\001\n9analyticsadmin.googleapi" - + "s.com/EnhancedMeasurementSettings\022Rprope" - + "rties/{property}/webDataStreams/{web_dat" - + "a_stream}/enhancedMeasurementSettings\"\243\002" - + "\n\014FirebaseLink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\024\n\007pro" - + "ject\030\002 \001(\tB\003\340A\005\0224\n\013create_time\030\003 \001(\0132\032.g" - + "oogle.protobuf.TimestampB\003\340A\003\022N\n\023maximum" - + "_user_access\030\004 \001(\01621.google.analytics.ad" - + "min.v1alpha.MaximumUserAccess:d\352Aa\n*anal" - + "yticsadmin.googleapis.com/FirebaseLink\0223" - + "properties/{property}/firebaseLinks/{fir" - + "ebase_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+ana" - + "lyticsadmin.googleapis.com/GlobalSiteTag" - + "\022#properties/{property}/globalSiteTag\"\220\003" - + "\n\rGoogleAdsLink\022\021\n\004name\030\001 \001(\tB\003\340A\003\022\030\n\013cu" - + "stomer_id\030\003 \001(\tB\003\340A\005\022\037\n\022can_manage_clien" - + "ts\030\004 \001(\010B\003\340A\003\022?\n\033ads_personalization_ena" - + "bled\030\005 \001(\0132\032.google.protobuf.BoolValue\022\032" - + "\n\remail_address\030\006 \001(\tB\003\340A\003\0224\n\013create_tim" - + "e\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003" - + "\0224\n\013update_time\030\010 \001(\0132\032.google.protobuf." - + "TimestampB\003\340A\003:h\352Ae\n+analyticsadmin.goog" - + "leapis.com/GoogleAdsLink\0226properties/{pr" - + "operty}/googleAdsLinks/{google_ads_link}" - + "\"\353\002\n\023DataSharingSettings\022\021\n\004name\030\001 \001(\tB\003" - + "\340A\003\022+\n#sharing_with_google_support_enabl" - + "ed\030\002 \001(\010\0222\n*sharing_with_google_assigned" - + "_sales_enabled\030\003 \001(\010\022-\n%sharing_with_goo" - + "gle_any_sales_enabled\030\004 \001(\010\022,\n$sharing_w" - + "ith_google_products_enabled\030\005 \001(\010\022#\n\033sha" - + "ring_with_others_enabled\030\006 \001(\010:^\352A[\n1ana" - + "lyticsadmin.googleapis.com/DataSharingSe" - + "ttings\022&accounts/{account}/dataSharingSe" - + "ttings\"\225\002\n\016AccountSummary\022\014\n\004name\030\001 \001(\t\022" - + ";\n\007account\030\002 \001(\tB*\372A\'\n%analyticsadmin.go" - + "ogleapis.com/Account\022\024\n\014display_name\030\003 \001" - + "(\t\022K\n\022property_summaries\030\004 \003(\0132/.google." - + "analytics.admin.v1alpha.PropertySummary:" - + "U\352AR\n,analyticsadmin.googleapis.com/Acco" - + "untSummary\022\"accountSummaries/{account_su" - + "mmary}\"f\n\017PropertySummary\022=\n\010property\030\001 " - + "\001(\tB+\372A(\n&analyticsadmin.googleapis.com/" - + "Property\022\024\n\014display_name\030\002 \001(\t\"\212\002\n\022Chang" - + "eHistoryEvent\022\n\n\002id\030\001 \001(\t\022/\n\013change_time" - + "\030\002 \001(\0132\032.google.protobuf.Timestamp\022=\n\nac" - + "tor_type\030\003 \001(\0162).google.analytics.admin." - + "v1alpha.ActorType\022\030\n\020user_actor_email\030\004 " - + "\001(\t\022\030\n\020changes_filtered\030\005 \001(\010\022D\n\007changes" - + "\030\006 \003(\01323.google.analytics.admin.v1alpha." - + "ChangeHistoryChange\"\335\006\n\023ChangeHistoryCha" - + "nge\022\020\n\010resource\030\001 \001(\t\022:\n\006action\030\002 \001(\0162*." - + "google.analytics.admin.v1alpha.ActionTyp" - + "e\022i\n\026resource_before_change\030\003 \001(\0132I.goog" - + "le.analytics.admin.v1alpha.ChangeHistory" - + "Change.ChangeHistoryResource\022h\n\025resource" - + "_after_change\030\004 \001(\0132I.google.analytics.a" - + "dmin.v1alpha.ChangeHistoryChange.ChangeH" - + "istoryResource\032\242\004\n\025ChangeHistoryResource" - + "\022:\n\007account\030\001 \001(\0132\'.google.analytics.adm" - + "in.v1alpha.AccountH\000\022<\n\010property\030\002 \001(\0132(" - + ".google.analytics.admin.v1alpha.Property" - + "H\000\022H\n\017web_data_stream\030\003 \001(\0132-.google.ana" - + "lytics.admin.v1alpha.WebDataStreamH\000\022W\n\027" - + "android_app_data_stream\030\004 \001(\01324.google.a" - + "nalytics.admin.v1alpha.AndroidAppDataStr" - + "eamH\000\022O\n\023ios_app_data_stream\030\005 \001(\01320.goo" - + "gle.analytics.admin.v1alpha.IosAppDataSt" - + "reamH\000\022E\n\rfirebase_link\030\006 \001(\0132,.google.a" - + "nalytics.admin.v1alpha.FirebaseLinkH\000\022H\n" - + "\017google_ads_link\030\007 \001(\0132-.google.analytic" - + "s.admin.v1alpha.GoogleAdsLinkH\000B\n\n\010resou" - + "rce*\247\001\n\021MaximumUserAccess\022#\n\037MAXIMUM_USE" - + "R_ACCESS_UNSPECIFIED\020\000\022\r\n\tNO_ACCESS\020\001\022\024\n" - + "\020READ_AND_ANALYZE\020\002\022\"\n\036EDITOR_WITHOUT_LI" - + "NK_MANAGEMENT\020\003\022$\n EDITOR_INCLUDING_LINK" - + "_MANAGEMENT\020\004*\252\004\n\020IndustryCategory\022!\n\035IN" - + "DUSTRY_CATEGORY_UNSPECIFIED\020\000\022\016\n\nAUTOMOT" - + "IVE\020\001\022#\n\037BUSINESS_AND_INDUSTRIAL_MARKETS" - + "\020\002\022\013\n\007FINANCE\020\003\022\016\n\nHEALTHCARE\020\004\022\016\n\nTECHN" - + "OLOGY\020\005\022\n\n\006TRAVEL\020\006\022\t\n\005OTHER\020\007\022\032\n\026ARTS_A" - + "ND_ENTERTAINMENT\020\010\022\026\n\022BEAUTY_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\023HOBBIES_AND_LEISU" - + "RE\020\r\022\023\n\017HOME_AND_GARDEN\020\016\022\030\n\024INTERNET_AN" - + "D_TELECOM\020\017\022\026\n\022LAW_AND_GOVERNMENT\020\020\022\010\n\004N" - + "EWS\020\021\022\026\n\022ONLINE_COMMUNITIES\020\022\022\026\n\022PEOPLE_" - + "AND_SOCIETY\020\023\022\024\n\020PETS_AND_ANIMALS\020\024\022\017\n\013R" - + "EAL_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\010" - + "SHOPPING\020\032*J\n\tActorType\022\032\n\026ACTOR_TYPE_UN" - + "SPECIFIED\020\000\022\010\n\004USER\020\001\022\n\n\006SYSTEM\020\002\022\013\n\007SUP" - + "PORT\020\003*P\n\nActionType\022\033\n\027ACTION_TYPE_UNSP" - + "ECIFIED\020\000\022\013\n\007CREATED\020\001\022\013\n\007UPDATED\020\002\022\013\n\007D" - + "ELETED\020\003*\327\001\n\031ChangeHistoryResourceType\022," - + "\n(CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFI" - + "ED\020\000\022\013\n\007ACCOUNT\020\001\022\014\n\010PROPERTY\020\002\022\023\n\017WEB_D" - + "ATA_STREAM\020\003\022\033\n\027ANDROID_APP_DATA_STREAM\020" - + "\004\022\027\n\023IOS_APP_DATA_STREAM\020\005\022\021\n\rFIREBASE_L" - + "INK\020\006\022\023\n\017GOOGLE_ADS_LINK\020\007B{\n\"com.google" - + ".analytics.admin.v1alphaB\016ResourcesProto" - + "P\001ZCgoogle.golang.org/genproto/googleapi" - + "s/analytics/admin/v1alpha;adminb\006proto3" + + "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" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -434,8 +521,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Property", "DisplayName", }); - internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor = + internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor = getDescriptor().getMessageTypes().get(14); + internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_MeasurementProtocolSecret_descriptor, + new java.lang.String[] { + "Name", "DisplayName", "SecretValue", + }); + internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor = + getDescriptor().getMessageTypes().get(15); internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ChangeHistoryEvent_descriptor, @@ -443,7 +538,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "ChangeTime", "ActorType", "UserActorEmail", "ChangesFiltered", "Changes", }); internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(16); internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_analytics_admin_v1alpha_ChangeHistoryChange_descriptor, @@ -465,8 +560,50 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IosAppDataStream", "FirebaseLink", "GoogleAdsLink", + "GoogleSignalsSettings", + "ConversionEvent", + "MeasurementProtocolSecret", + "CustomDimension", + "CustomMetric", "Resource", }); + internal_static_google_analytics_admin_v1alpha_ConversionEvent_descriptor = + getDescriptor().getMessageTypes().get(17); + 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", + }); + internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GoogleSignalsSettings_descriptor, + new java.lang.String[] { + "Name", "State", "Consent", + }); + internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_analytics_admin_v1alpha_CustomDimension_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_CustomDimension_descriptor, + new java.lang.String[] { + "Name", + "ParameterName", + "DisplayName", + "Description", + "Scope", + "DisallowAdsPersonalization", + }); + internal_static_google_analytics_admin_v1alpha_CustomMetric_descriptor = + getDescriptor().getMessageTypes().get(20); + 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", + }); 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/UpdateCustomDimensionRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequest.java new file mode 100644 index 00000000..fbb48577 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequest.java @@ -0,0 +1,1052 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 UpdateCustomDimension RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} + */ +public final class UpdateCustomDimensionRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) + UpdateCustomDimensionRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateCustomDimensionRequest.newBuilder() to construct. + private UpdateCustomDimensionRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateCustomDimensionRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateCustomDimensionRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateCustomDimensionRequest( + 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.CustomDimension.Builder subBuilder = null; + if (customDimension_ != null) { + subBuilder = customDimension_.toBuilder(); + } + customDimension_ = + input.readMessage( + com.google.analytics.admin.v1alpha.CustomDimension.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customDimension_); + customDimension_ = 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_UpdateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.Builder.class); + } + + public static final int CUSTOM_DIMENSION_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.CustomDimension customDimension_; + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + * + * @return Whether the customDimension field is set. + */ + @java.lang.Override + public boolean hasCustomDimension() { + return customDimension_ != null; + } + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + * + * @return The customDimension. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { + return customDimension_ == null + ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() + : customDimension_; + } + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder() { + return getCustomDimension(); + } + + 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 (customDimension_ != null) { + output.writeMessage(1, getCustomDimension()); + } + 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 (customDimension_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCustomDimension()); + } + 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.UpdateCustomDimensionRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest other = + (com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) obj; + + if (hasCustomDimension() != other.hasCustomDimension()) return false; + if (hasCustomDimension()) { + if (!getCustomDimension().equals(other.getCustomDimension())) 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 (hasCustomDimension()) { + hash = (37 * hash) + CUSTOM_DIMENSION_FIELD_NUMBER; + hash = (53 * hash) + getCustomDimension().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.UpdateCustomDimensionRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( + 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.UpdateCustomDimensionRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( + com.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.UpdateCustomDimensionRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest 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.UpdateCustomDimensionRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseFrom( + java.io.InputStream 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.UpdateCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest parseDelimitedFrom( + java.io.InputStream 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.UpdateCustomDimensionRequest 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.UpdateCustomDimensionRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.UpdateCustomDimensionRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 UpdateCustomDimension RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateCustomDimensionRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomDimensionRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.class, + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.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 (customDimensionBuilder_ == null) { + customDimension_ = null; + } else { + customDimension_ = null; + customDimensionBuilder_ = 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_UpdateCustomDimensionRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest build() { + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest result = + new com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest(this); + if (customDimensionBuilder_ == null) { + result.customDimension_ = customDimension_; + } else { + result.customDimension_ = customDimensionBuilder_.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.UpdateCustomDimensionRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest.getDefaultInstance()) + return this; + if (other.hasCustomDimension()) { + mergeCustomDimension(other.getCustomDimension()); + } + 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.UpdateCustomDimensionRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.CustomDimension customDimension_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + customDimensionBuilder_; + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + * + * @return Whether the customDimension field is set. + */ + public boolean hasCustomDimension() { + return customDimensionBuilder_ != null || customDimension_ != null; + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + * + * @return The customDimension. + */ + public com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension() { + if (customDimensionBuilder_ == null) { + return customDimension_ == null + ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() + : customDimension_; + } else { + return customDimensionBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + public Builder setCustomDimension(com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customDimension_ = value; + onChanged(); + } else { + customDimensionBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + public Builder setCustomDimension( + com.google.analytics.admin.v1alpha.CustomDimension.Builder builderForValue) { + if (customDimensionBuilder_ == null) { + customDimension_ = builderForValue.build(); + onChanged(); + } else { + customDimensionBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + public Builder mergeCustomDimension(com.google.analytics.admin.v1alpha.CustomDimension value) { + if (customDimensionBuilder_ == null) { + if (customDimension_ != null) { + customDimension_ = + com.google.analytics.admin.v1alpha.CustomDimension.newBuilder(customDimension_) + .mergeFrom(value) + .buildPartial(); + } else { + customDimension_ = value; + } + onChanged(); + } else { + customDimensionBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + public Builder clearCustomDimension() { + if (customDimensionBuilder_ == null) { + customDimension_ = null; + onChanged(); + } else { + customDimension_ = null; + customDimensionBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + public com.google.analytics.admin.v1alpha.CustomDimension.Builder getCustomDimensionBuilder() { + + onChanged(); + return getCustomDimensionFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + public com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder + getCustomDimensionOrBuilder() { + if (customDimensionBuilder_ != null) { + return customDimensionBuilder_.getMessageOrBuilder(); + } else { + return customDimension_ == null + ? com.google.analytics.admin.v1alpha.CustomDimension.getDefaultInstance() + : customDimension_; + } + } + /** + * + * + *
+     * The CustomDimension to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder> + getCustomDimensionFieldBuilder() { + if (customDimensionBuilder_ == null) { + customDimensionBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomDimension, + com.google.analytics.admin.v1alpha.CustomDimension.Builder, + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder>( + getCustomDimension(), getParentForChildren(), isClean()); + customDimension_ = null; + } + return customDimensionBuilder_; + } + + 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.UpdateCustomDimensionRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) + private static final com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomDimensionRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCustomDimensionRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCustomDimensionRequest(input, extensionRegistry); + } + }; + + public static com.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.UpdateCustomDimensionRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequestOrBuilder.java new file mode 100644 index 00000000..a379c03d --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomDimensionRequestOrBuilder.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 UpdateCustomDimensionRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateCustomDimensionRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + * + * @return Whether the customDimension field is set. + */ + boolean hasCustomDimension(); + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + * + * @return The customDimension. + */ + com.google.analytics.admin.v1alpha.CustomDimension getCustomDimension(); + /** + * + * + *
+   * The CustomDimension to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomDimension custom_dimension = 1; + */ + com.google.analytics.admin.v1alpha.CustomDimensionOrBuilder getCustomDimensionOrBuilder(); + + /** + * + * + *
+   * 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/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequest.java new file mode 100644 index 00000000..61e5315a --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequest.java @@ -0,0 +1,1046 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 UpdateCustomMetric RPC.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateCustomMetricRequest} + */ +public final class UpdateCustomMetricRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateCustomMetricRequest) + UpdateCustomMetricRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateCustomMetricRequest.newBuilder() to construct. + private UpdateCustomMetricRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateCustomMetricRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateCustomMetricRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateCustomMetricRequest( + 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.CustomMetric.Builder subBuilder = null; + if (customMetric_ != null) { + subBuilder = customMetric_.toBuilder(); + } + customMetric_ = + input.readMessage( + com.google.analytics.admin.v1alpha.CustomMetric.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(customMetric_); + customMetric_ = 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_UpdateCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.Builder.class); + } + + public static final int CUSTOM_METRIC_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.CustomMetric customMetric_; + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + * + * @return Whether the customMetric field is set. + */ + @java.lang.Override + public boolean hasCustomMetric() { + return customMetric_ != null; + } + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + * + * @return The customMetric. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { + return customMetric_ == null + ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() + : customMetric_; + } + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { + return getCustomMetric(); + } + + 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 (customMetric_ != null) { + output.writeMessage(1, getCustomMetric()); + } + 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 (customMetric_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getCustomMetric()); + } + 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.UpdateCustomMetricRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest other = + (com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) obj; + + if (hasCustomMetric() != other.hasCustomMetric()) return false; + if (hasCustomMetric()) { + if (!getCustomMetric().equals(other.getCustomMetric())) 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 (hasCustomMetric()) { + hash = (37 * hash) + CUSTOM_METRIC_FIELD_NUMBER; + hash = (53 * hash) + getCustomMetric().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.UpdateCustomMetricRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( + 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.UpdateCustomMetricRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( + com.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.UpdateCustomMetricRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest 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.UpdateCustomMetricRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseFrom( + java.io.InputStream 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.UpdateCustomMetricRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest parseDelimitedFrom( + java.io.InputStream 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.UpdateCustomMetricRequest 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.UpdateCustomMetricRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.UpdateCustomMetricRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 UpdateCustomMetric RPC.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateCustomMetricRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateCustomMetricRequest) + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateCustomMetricRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.class, + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.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 (customMetricBuilder_ == null) { + customMetric_ = null; + } else { + customMetric_ = null; + customMetricBuilder_ = 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_UpdateCustomMetricRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest build() { + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest result = + new com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest(this); + if (customMetricBuilder_ == null) { + result.customMetric_ = customMetric_; + } else { + result.customMetric_ = customMetricBuilder_.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.UpdateCustomMetricRequest) { + return mergeFrom((com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest.getDefaultInstance()) + return this; + if (other.hasCustomMetric()) { + mergeCustomMetric(other.getCustomMetric()); + } + 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.UpdateCustomMetricRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.CustomMetric customMetric_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + customMetricBuilder_; + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + * + * @return Whether the customMetric field is set. + */ + public boolean hasCustomMetric() { + return customMetricBuilder_ != null || customMetric_ != null; + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + * + * @return The customMetric. + */ + public com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric() { + if (customMetricBuilder_ == null) { + return customMetric_ == null + ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() + : customMetric_; + } else { + return customMetricBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + public Builder setCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + customMetric_ = value; + onChanged(); + } else { + customMetricBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + public Builder setCustomMetric( + com.google.analytics.admin.v1alpha.CustomMetric.Builder builderForValue) { + if (customMetricBuilder_ == null) { + customMetric_ = builderForValue.build(); + onChanged(); + } else { + customMetricBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + public Builder mergeCustomMetric(com.google.analytics.admin.v1alpha.CustomMetric value) { + if (customMetricBuilder_ == null) { + if (customMetric_ != null) { + customMetric_ = + com.google.analytics.admin.v1alpha.CustomMetric.newBuilder(customMetric_) + .mergeFrom(value) + .buildPartial(); + } else { + customMetric_ = value; + } + onChanged(); + } else { + customMetricBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + public Builder clearCustomMetric() { + if (customMetricBuilder_ == null) { + customMetric_ = null; + onChanged(); + } else { + customMetric_ = null; + customMetricBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + public com.google.analytics.admin.v1alpha.CustomMetric.Builder getCustomMetricBuilder() { + + onChanged(); + return getCustomMetricFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + public com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder() { + if (customMetricBuilder_ != null) { + return customMetricBuilder_.getMessageOrBuilder(); + } else { + return customMetric_ == null + ? com.google.analytics.admin.v1alpha.CustomMetric.getDefaultInstance() + : customMetric_; + } + } + /** + * + * + *
+     * The CustomMetric to update
+     * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder> + getCustomMetricFieldBuilder() { + if (customMetricBuilder_ == null) { + customMetricBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.CustomMetric, + com.google.analytics.admin.v1alpha.CustomMetric.Builder, + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder>( + getCustomMetric(), getParentForChildren(), isClean()); + customMetric_ = null; + } + return customMetricBuilder_; + } + + 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.UpdateCustomMetricRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateCustomMetricRequest) + private static final com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateCustomMetricRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateCustomMetricRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateCustomMetricRequest(input, extensionRegistry); + } + }; + + public static com.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.UpdateCustomMetricRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequestOrBuilder.java new file mode 100644 index 00000000..76737db8 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateCustomMetricRequestOrBuilder.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 UpdateCustomMetricRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateCustomMetricRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + * + * @return Whether the customMetric field is set. + */ + boolean hasCustomMetric(); + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + * + * @return The customMetric. + */ + com.google.analytics.admin.v1alpha.CustomMetric getCustomMetric(); + /** + * + * + *
+   * The CustomMetric to update
+   * 
+ * + * .google.analytics.admin.v1alpha.CustomMetric custom_metric = 1; + */ + com.google.analytics.admin.v1alpha.CustomMetricOrBuilder getCustomMetricOrBuilder(); + + /** + * + * + *
+   * 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/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequest.java new file mode 100644 index 00000000..0e1d8961 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequest.java @@ -0,0 +1,1099 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 UpdateGoogleSignalsSettings RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} + */ +public final class UpdateGoogleSignalsSettingsRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) + UpdateGoogleSignalsSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateGoogleSignalsSettingsRequest.newBuilder() to construct. + private UpdateGoogleSignalsSettingsRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateGoogleSignalsSettingsRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateGoogleSignalsSettingsRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateGoogleSignalsSettingsRequest( + 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.GoogleSignalsSettings.Builder subBuilder = null; + if (googleSignalsSettings_ != null) { + subBuilder = googleSignalsSettings_.toBuilder(); + } + googleSignalsSettings_ = + input.readMessage( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(googleSignalsSettings_); + googleSignalsSettings_ = 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_UpdateGoogleSignalsSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.Builder.class); + } + + public static final int GOOGLE_SIGNALS_SETTINGS_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.GoogleSignalsSettings googleSignalsSettings_; + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the googleSignalsSettings field is set. + */ + @java.lang.Override + public boolean hasGoogleSignalsSettings() { + return googleSignalsSettings_ != null; + } + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The googleSignalsSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings() { + return googleSignalsSettings_ == null + ? com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance() + : googleSignalsSettings_; + } + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder + getGoogleSignalsSettingsOrBuilder() { + return getGoogleSignalsSettings(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask 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.
+   * 
+ * + * .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. 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]; + * + * + * @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. 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]; + * + */ + @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 (googleSignalsSettings_ != null) { + output.writeMessage(1, getGoogleSignalsSettings()); + } + 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 (googleSignalsSettings_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGoogleSignalsSettings()); + } + 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.UpdateGoogleSignalsSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest other = + (com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) obj; + + if (hasGoogleSignalsSettings() != other.hasGoogleSignalsSettings()) return false; + if (hasGoogleSignalsSettings()) { + if (!getGoogleSignalsSettings().equals(other.getGoogleSignalsSettings())) 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 (hasGoogleSignalsSettings()) { + hash = (37 * hash) + GOOGLE_SIGNALS_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getGoogleSignalsSettings().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.UpdateGoogleSignalsSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( + 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.UpdateGoogleSignalsSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( + com.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.UpdateGoogleSignalsSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest 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.UpdateGoogleSignalsSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest parseFrom( + java.io.InputStream 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.UpdateGoogleSignalsSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + parseDelimitedFrom( + java.io.InputStream 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.UpdateGoogleSignalsSettingsRequest 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.UpdateGoogleSignalsSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.UpdateGoogleSignalsSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 UpdateGoogleSignalsSettings RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateGoogleSignalsSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.class, + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest.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 (googleSignalsSettingsBuilder_ == null) { + googleSignalsSettings_ = null; + } else { + googleSignalsSettings_ = null; + googleSignalsSettingsBuilder_ = 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_UpdateGoogleSignalsSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest build() { + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest result = + new com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest(this); + if (googleSignalsSettingsBuilder_ == null) { + result.googleSignalsSettings_ = googleSignalsSettings_; + } else { + result.googleSignalsSettings_ = googleSignalsSettingsBuilder_.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.UpdateGoogleSignalsSettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + .getDefaultInstance()) return this; + if (other.hasGoogleSignalsSettings()) { + mergeGoogleSignalsSettings(other.getGoogleSignalsSettings()); + } + 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.UpdateGoogleSignalsSettingsRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.GoogleSignalsSettings googleSignalsSettings_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder> + googleSignalsSettingsBuilder_; + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the googleSignalsSettings field is set. + */ + public boolean hasGoogleSignalsSettings() { + return googleSignalsSettingsBuilder_ != null || googleSignalsSettings_ != null; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The googleSignalsSettings. + */ + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings() { + if (googleSignalsSettingsBuilder_ == null) { + return googleSignalsSettings_ == null + ? com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance() + : googleSignalsSettings_; + } else { + return googleSignalsSettingsBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings value) { + if (googleSignalsSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + googleSignalsSettings_ = value; + onChanged(); + } else { + googleSignalsSettingsBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder builderForValue) { + if (googleSignalsSettingsBuilder_ == null) { + googleSignalsSettings_ = builderForValue.build(); + onChanged(); + } else { + googleSignalsSettingsBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeGoogleSignalsSettings( + com.google.analytics.admin.v1alpha.GoogleSignalsSettings value) { + if (googleSignalsSettingsBuilder_ == null) { + if (googleSignalsSettings_ != null) { + googleSignalsSettings_ = + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.newBuilder( + googleSignalsSettings_) + .mergeFrom(value) + .buildPartial(); + } else { + googleSignalsSettings_ = value; + } + onChanged(); + } else { + googleSignalsSettingsBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearGoogleSignalsSettings() { + if (googleSignalsSettingsBuilder_ == null) { + googleSignalsSettings_ = null; + onChanged(); + } else { + googleSignalsSettings_ = null; + googleSignalsSettingsBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder + getGoogleSignalsSettingsBuilder() { + + onChanged(); + return getGoogleSignalsSettingsFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder + getGoogleSignalsSettingsOrBuilder() { + if (googleSignalsSettingsBuilder_ != null) { + return googleSignalsSettingsBuilder_.getMessageOrBuilder(); + } else { + return googleSignalsSettings_ == null + ? com.google.analytics.admin.v1alpha.GoogleSignalsSettings.getDefaultInstance() + : googleSignalsSettings_; + } + } + /** + * + * + *
+     * Required. The settings to update.
+     * The `name` field is used to identify the settings to be updated.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder> + getGoogleSignalsSettingsFieldBuilder() { + if (googleSignalsSettingsBuilder_ == null) { + googleSignalsSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.GoogleSignalsSettings, + com.google.analytics.admin.v1alpha.GoogleSignalsSettings.Builder, + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder>( + getGoogleSignalsSettings(), getParentForChildren(), isClean()); + googleSignalsSettings_ = null; + } + return googleSignalsSettingsBuilder_; + } + + 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. 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]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * 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]; + * + * + * @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. 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]; + * + */ + 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. 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]; + * + */ + 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. 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]; + * + */ + 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. 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]; + * + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * 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]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * 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]; + * + */ + 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. 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]; + * + */ + 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.UpdateGoogleSignalsSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) + private static final com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateGoogleSignalsSettingsRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateGoogleSignalsSettingsRequest(input, extensionRegistry); + } + }; + + public static com.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.UpdateGoogleSignalsSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequestOrBuilder.java new file mode 100644 index 00000000..6d1a6437 --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateGoogleSignalsSettingsRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 UpdateGoogleSignalsSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateGoogleSignalsSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the googleSignalsSettings field is set. + */ + boolean hasGoogleSignalsSettings(); + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The googleSignalsSettings. + */ + com.google.analytics.admin.v1alpha.GoogleSignalsSettings getGoogleSignalsSettings(); + /** + * + * + *
+   * Required. The settings to update.
+   * The `name` field is used to identify the settings to be updated.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.GoogleSignalsSettings google_signals_settings = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.GoogleSignalsSettingsOrBuilder + getGoogleSignalsSettingsOrBuilder(); + + /** + * + * + *
+   * 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]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * 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]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * 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]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequest.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequest.java new file mode 100644 index 00000000..588545ec --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequest.java @@ -0,0 +1,1065 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the 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 UpdateMeasurementProtocolSecret RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} + */ +public final class UpdateMeasurementProtocolSecretRequest + extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) + UpdateMeasurementProtocolSecretRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UpdateMeasurementProtocolSecretRequest.newBuilder() to construct. + private UpdateMeasurementProtocolSecretRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UpdateMeasurementProtocolSecretRequest() {} + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UpdateMeasurementProtocolSecretRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UpdateMeasurementProtocolSecretRequest( + 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.MeasurementProtocolSecret.Builder subBuilder = + null; + if (measurementProtocolSecret_ != null) { + subBuilder = measurementProtocolSecret_.toBuilder(); + } + measurementProtocolSecret_ = + input.readMessage( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.parser(), + extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(measurementProtocolSecret_); + measurementProtocolSecret_ = 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_UpdateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.Builder + .class); + } + + public static final int MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER = 1; + private com.google.analytics.admin.v1alpha.MeasurementProtocolSecret measurementProtocolSecret_; + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + @java.lang.Override + public boolean hasMeasurementProtocolSecret() { + return measurementProtocolSecret_ != null; + } + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + return getMeasurementProtocolSecret(); + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + /** + * + * + *
+   * The list of fields to be updated. Omitted fields will not be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return updateMask_ != null; + } + /** + * + * + *
+   * The list of fields to be updated. Omitted fields will not be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + /** + * + * + *
+   * The list of fields to be updated. Omitted fields will not be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + @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 (measurementProtocolSecret_ != null) { + output.writeMessage(1, getMeasurementProtocolSecret()); + } + 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 (measurementProtocolSecret_ != null) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, getMeasurementProtocolSecret()); + } + 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.UpdateMeasurementProtocolSecretRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest other = + (com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) obj; + + if (hasMeasurementProtocolSecret() != other.hasMeasurementProtocolSecret()) return false; + if (hasMeasurementProtocolSecret()) { + if (!getMeasurementProtocolSecret().equals(other.getMeasurementProtocolSecret())) + 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 (hasMeasurementProtocolSecret()) { + hash = (37 * hash) + MEASUREMENT_PROTOCOL_SECRET_FIELD_NUMBER; + hash = (53 * hash) + getMeasurementProtocolSecret().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.UpdateMeasurementProtocolSecretRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( + 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.UpdateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( + com.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.UpdateMeasurementProtocolSecretRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest 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.UpdateMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest parseFrom( + java.io.InputStream 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.UpdateMeasurementProtocolSecretRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + parseDelimitedFrom( + java.io.InputStream 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.UpdateMeasurementProtocolSecretRequest 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.UpdateMeasurementProtocolSecretRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, 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.UpdateMeasurementProtocolSecretRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new 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 UpdateMeasurementProtocolSecret RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_UpdateMeasurementProtocolSecretRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.class, + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.Builder + .class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest.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 (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecret_ = null; + } else { + measurementProtocolSecret_ = null; + measurementProtocolSecretBuilder_ = 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_UpdateMeasurementProtocolSecretRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest build() { + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + buildPartial() { + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest result = + new com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest(this); + if (measurementProtocolSecretBuilder_ == null) { + result.measurementProtocolSecret_ = measurementProtocolSecret_; + } else { + result.measurementProtocolSecret_ = measurementProtocolSecretBuilder_.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.UpdateMeasurementProtocolSecretRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest other) { + if (other + == com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + .getDefaultInstance()) return this; + if (other.hasMeasurementProtocolSecret()) { + mergeMeasurementProtocolSecret(other.getMeasurementProtocolSecret()); + } + 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.UpdateMeasurementProtocolSecretRequest parsedMessage = + null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) + e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private com.google.analytics.admin.v1alpha.MeasurementProtocolSecret measurementProtocolSecret_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + measurementProtocolSecretBuilder_; + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + public boolean hasMeasurementProtocolSecret() { + return measurementProtocolSecretBuilder_ != null || measurementProtocolSecret_ != null; + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret + getMeasurementProtocolSecret() { + if (measurementProtocolSecretBuilder_ == null) { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } else { + return measurementProtocolSecretBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + measurementProtocolSecret_ = value; + onChanged(); + } else { + measurementProtocolSecretBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder builderForValue) { + if (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecret_ = builderForValue.build(); + onChanged(); + } else { + measurementProtocolSecretBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeMeasurementProtocolSecret( + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret value) { + if (measurementProtocolSecretBuilder_ == null) { + if (measurementProtocolSecret_ != null) { + measurementProtocolSecret_ = + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.newBuilder( + measurementProtocolSecret_) + .mergeFrom(value) + .buildPartial(); + } else { + measurementProtocolSecret_ = value; + } + onChanged(); + } else { + measurementProtocolSecretBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMeasurementProtocolSecret() { + if (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecret_ = null; + onChanged(); + } else { + measurementProtocolSecret_ = null; + measurementProtocolSecretBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder + getMeasurementProtocolSecretBuilder() { + + onChanged(); + return getMeasurementProtocolSecretFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder() { + if (measurementProtocolSecretBuilder_ != null) { + return measurementProtocolSecretBuilder_.getMessageOrBuilder(); + } else { + return measurementProtocolSecret_ == null + ? com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.getDefaultInstance() + : measurementProtocolSecret_; + } + } + /** + * + * + *
+     * Required. The measurement protocol secret to update.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder> + getMeasurementProtocolSecretFieldBuilder() { + if (measurementProtocolSecretBuilder_ == null) { + measurementProtocolSecretBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret.Builder, + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder>( + getMeasurementProtocolSecret(), getParentForChildren(), isClean()); + measurementProtocolSecret_ = null; + } + return measurementProtocolSecretBuilder_; + } + + 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_; + /** + * + * + *
+     * The list of fields to be updated. Omitted fields will not be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return updateMaskBuilder_ != null || updateMask_ != null; + } + /** + * + * + *
+     * The list of fields to be updated. Omitted fields will not be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @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(); + } + } + /** + * + * + *
+     * The list of fields to be updated. Omitted fields will not be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + 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; + } + /** + * + * + *
+     * The list of fields to be updated. Omitted fields will not be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + onChanged(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The list of fields to be updated. Omitted fields will not be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + 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; + } + /** + * + * + *
+     * The list of fields to be updated. Omitted fields will not be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public Builder clearUpdateMask() { + if (updateMaskBuilder_ == null) { + updateMask_ = null; + onChanged(); + } else { + updateMask_ = null; + updateMaskBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The list of fields to be updated. Omitted fields will not be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + + onChanged(); + return getUpdateMaskFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The list of fields to be updated. Omitted fields will not be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + /** + * + * + *
+     * The list of fields to be updated. Omitted fields will not be updated.
+     * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + 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.UpdateMeasurementProtocolSecretRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) + private static final com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest(); + } + + public static com.google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateMeasurementProtocolSecretRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UpdateMeasurementProtocolSecretRequest(input, extensionRegistry); + } + }; + + public static com.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.UpdateMeasurementProtocolSecretRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequestOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequestOrBuilder.java new file mode 100644 index 00000000..6ead312f --- /dev/null +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UpdateMeasurementProtocolSecretRequestOrBuilder.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 UpdateMeasurementProtocolSecretRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UpdateMeasurementProtocolSecretRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the measurementProtocolSecret field is set. + */ + boolean hasMeasurementProtocolSecret(); + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The measurementProtocolSecret. + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecret getMeasurementProtocolSecret(); + /** + * + * + *
+   * Required. The measurement protocol secret to update.
+   * 
+ * + * + * .google.analytics.admin.v1alpha.MeasurementProtocolSecret measurement_protocol_secret = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.analytics.admin.v1alpha.MeasurementProtocolSecretOrBuilder + getMeasurementProtocolSecretOrBuilder(); + + /** + * + * + *
+   * The list of fields to be updated. Omitted fields will not be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + /** + * + * + *
+   * The list of fields to be updated. Omitted fields will not be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + /** + * + * + *
+   * The list of fields to be updated. Omitted fields will not be updated.
+   * 
+ * + * .google.protobuf.FieldMask update_mask = 2; + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} 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 3fada25c..211479cb 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 @@ -141,10 +141,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Example format: properties/1234/userLinks/5678
+   * Output only. Example format: properties/1234/userLinks/5678
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -164,10 +164,10 @@ public java.lang.String getName() { * * *
-   * Example format: properties/1234/userLinks/5678
+   * Output only. Example format: properties/1234/userLinks/5678
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -190,10 +190,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Email address of the user to link
+   * Immutable. Email address of the user to link
    * 
* - * string email_address = 2; + * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The emailAddress. */ @@ -213,10 +213,10 @@ public java.lang.String getEmailAddress() { * * *
-   * Email address of the user to link
+   * Immutable. Email address of the user to link
    * 
* - * string email_address = 2; + * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for emailAddress. */ @@ -704,10 +704,10 @@ public Builder mergeFrom( * * *
-     * Example format: properties/1234/userLinks/5678
+     * Output only. Example format: properties/1234/userLinks/5678
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -726,10 +726,10 @@ public java.lang.String getName() { * * *
-     * Example format: properties/1234/userLinks/5678
+     * Output only. Example format: properties/1234/userLinks/5678
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -748,10 +748,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Example format: properties/1234/userLinks/5678
+     * Output only. Example format: properties/1234/userLinks/5678
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The name to set. * @return This builder for chaining. @@ -769,10 +769,10 @@ public Builder setName(java.lang.String value) { * * *
-     * Example format: properties/1234/userLinks/5678
+     * Output only. Example format: properties/1234/userLinks/5678
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -786,10 +786,10 @@ public Builder clearName() { * * *
-     * Example format: properties/1234/userLinks/5678
+     * Output only. Example format: properties/1234/userLinks/5678
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -810,10 +810,10 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Email address of the user to link
+     * Immutable. Email address of the user to link
      * 
* - * string email_address = 2; + * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The emailAddress. */ @@ -832,10 +832,10 @@ public java.lang.String getEmailAddress() { * * *
-     * Email address of the user to link
+     * Immutable. Email address of the user to link
      * 
* - * string email_address = 2; + * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for emailAddress. */ @@ -854,10 +854,10 @@ public com.google.protobuf.ByteString getEmailAddressBytes() { * * *
-     * Email address of the user to link
+     * Immutable. Email address of the user to link
      * 
* - * string email_address = 2; + * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; * * @param value The emailAddress to set. * @return This builder for chaining. @@ -875,10 +875,10 @@ public Builder setEmailAddress(java.lang.String value) { * * *
-     * Email address of the user to link
+     * Immutable. Email address of the user to link
      * 
* - * string email_address = 2; + * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; * * @return This builder for chaining. */ @@ -892,10 +892,10 @@ public Builder clearEmailAddress() { * * *
-     * Email address of the user to link
+     * Immutable. Email address of the user to link
      * 
* - * string email_address = 2; + * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; * * @param value The bytes for emailAddress to set. * @return This builder for chaining. diff --git a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkOrBuilder.java b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkOrBuilder.java index f096ae2b..986cc9d5 100644 --- a/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkOrBuilder.java +++ b/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserLinkOrBuilder.java @@ -27,10 +27,10 @@ public interface UserLinkOrBuilder * * *
-   * Example format: properties/1234/userLinks/5678
+   * Output only. Example format: properties/1234/userLinks/5678
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The name. */ @@ -39,10 +39,10 @@ public interface UserLinkOrBuilder * * *
-   * Example format: properties/1234/userLinks/5678
+   * Output only. Example format: properties/1234/userLinks/5678
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The bytes for name. */ @@ -52,10 +52,10 @@ public interface UserLinkOrBuilder * * *
-   * Email address of the user to link
+   * Immutable. Email address of the user to link
    * 
* - * string email_address = 2; + * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The emailAddress. */ @@ -64,10 +64,10 @@ public interface UserLinkOrBuilder * * *
-   * Email address of the user to link
+   * Immutable. Email address of the user to link
    * 
* - * string email_address = 2; + * string email_address = 2 [(.google.api.field_behavior) = IMMUTABLE]; * * @return The bytes for emailAddress. */ 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 872d6abb..14ba713d 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 @@ -515,6 +515,83 @@ service AnalyticsAdminService { option (google.api.method_signature) = "name"; } + // Lookup for a single "GA4" MeasurementProtocolSecret. + rpc GetMeasurementProtocolSecret(GetMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}" + additional_bindings { + get: "/v1alpha/{name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}" + } + additional_bindings { + get: "/v1alpha/{name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Returns child MeasurementProtocolSecrets under the specified parent + // Property. + rpc ListMeasurementProtocolSecrets(ListMeasurementProtocolSecretsRequest) returns (ListMeasurementProtocolSecretsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*/webDataStreams/*}/measurementProtocolSecrets" + additional_bindings { + get: "/v1alpha/{parent=properties/*/iosAppDataStreams/*}/measurementProtocolSecrets" + } + additional_bindings { + get: "/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecrets" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a measurement protocol secret. + rpc CreateMeasurementProtocolSecret(CreateMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*/webDataStreams/*}/measurementProtocolSecrets" + body: "measurement_protocol_secret" + additional_bindings { + post: "/v1alpha/{parent=properties/*/iosAppDataStreams/*}/measurementProtocolSecrets" + body: "measurement_protocol_secret" + } + additional_bindings { + post: "/v1alpha/{parent=properties/*/androidAppDataStreams/*}/measurementProtocolSecrets" + body: "measurement_protocol_secret" + } + }; + option (google.api.method_signature) = "parent,measurement_protocol_secret"; + } + + // Deletes target MeasurementProtocolSecret. + rpc DeleteMeasurementProtocolSecret(DeleteMeasurementProtocolSecretRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}" + additional_bindings { + delete: "/v1alpha/{name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}" + } + additional_bindings { + delete: "/v1alpha/{name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Updates a measurement protocol secret. + rpc UpdateMeasurementProtocolSecret(UpdateMeasurementProtocolSecretRequest) returns (MeasurementProtocolSecret) { + option (google.api.http) = { + patch: "/v1alpha/{measurement_protocol_secret.name=properties/*/webDataStreams/*/measurementProtocolSecrets/*}" + body: "measurement_protocol_secret" + additional_bindings { + patch: "/v1alpha/{measurement_protocol_secret.name=properties/*/iosAppDataStreams/*/measurementProtocolSecrets/*}" + body: "measurement_protocol_secret" + } + additional_bindings { + patch: "/v1alpha/{measurement_protocol_secret.name=properties/*/androidAppDataStreams/*/measurementProtocolSecrets/*}" + body: "measurement_protocol_secret" + } + }; + option (google.api.method_signature) = "measurement_protocol_secret,update_mask"; + } + // Searches through all changes to an account or its children given the // specified set of filters. rpc SearchChangeHistoryEvents(SearchChangeHistoryEventsRequest) returns (SearchChangeHistoryEventsResponse) { @@ -523,6 +600,144 @@ service AnalyticsAdminService { body: "*" }; } + + // Lookup for Google Signals settings for a property. + rpc GetGoogleSignalsSettings(GetGoogleSignalsSettingsRequest) returns (GoogleSignalsSettings) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/googleSignalsSettings}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates Google Signals settings for a property. + rpc UpdateGoogleSignalsSettings(UpdateGoogleSignalsSettingsRequest) returns (GoogleSignalsSettings) { + option (google.api.http) = { + patch: "/v1alpha/{google_signals_settings.name=properties/*/googleSignalsSettings}" + body: "google_signals_settings" + }; + option (google.api.method_signature) = "google_signals_settings,update_mask"; + } + + // Creates a conversion event with the specified attributes. + rpc CreateConversionEvent(CreateConversionEventRequest) returns (ConversionEvent) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/conversionEvents" + body: "conversion_event" + }; + option (google.api.method_signature) = "parent,conversion_event"; + } + + // Retrieve a single conversion event. + rpc GetConversionEvent(GetConversionEventRequest) returns (ConversionEvent) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/conversionEvents/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Deletes a conversion event in a property. + rpc DeleteConversionEvent(DeleteConversionEventRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + delete: "/v1alpha/{name=properties/*/conversionEvents/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Returns a list of conversion events in the specified parent property. + // + // Returns an empty list if no conversion events are found. + rpc ListConversionEvents(ListConversionEventsRequest) returns (ListConversionEventsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/conversionEvents" + }; + option (google.api.method_signature) = "parent"; + } + + // Creates a CustomDimension. + rpc CreateCustomDimension(CreateCustomDimensionRequest) returns (CustomDimension) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/customDimensions" + body: "custom_dimension" + }; + option (google.api.method_signature) = "parent,custom_dimension"; + } + + // Updates a CustomDimension on a property. + rpc UpdateCustomDimension(UpdateCustomDimensionRequest) returns (CustomDimension) { + option (google.api.http) = { + patch: "/v1alpha/{custom_dimension.name=properties/*/customDimensions/*}" + body: "custom_dimension" + }; + option (google.api.method_signature) = "custom_dimension,update_mask"; + } + + // Lists CustomDimensions on a property. + rpc ListCustomDimensions(ListCustomDimensionsRequest) returns (ListCustomDimensionsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/customDimensions" + }; + option (google.api.method_signature) = "parent"; + } + + // Archives a CustomDimension on a property. + rpc ArchiveCustomDimension(ArchiveCustomDimensionRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1alpha/{name=properties/*/customDimensions/*}:archive" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Lookup for a single CustomDimension. + rpc GetCustomDimension(GetCustomDimensionRequest) returns (CustomDimension) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/customDimensions/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Creates a CustomMetric. + rpc CreateCustomMetric(CreateCustomMetricRequest) returns (CustomMetric) { + option (google.api.http) = { + post: "/v1alpha/{parent=properties/*}/customMetrics" + body: "custom_metric" + }; + option (google.api.method_signature) = "parent,custom_metric"; + } + + // Updates a CustomMetric on a property. + rpc UpdateCustomMetric(UpdateCustomMetricRequest) returns (CustomMetric) { + option (google.api.http) = { + patch: "/v1alpha/{custom_metric.name=properties/*/customMetrics/*}" + body: "custom_metric" + }; + option (google.api.method_signature) = "custom_metric,update_mask"; + } + + // Lists CustomMetrics on a property. + rpc ListCustomMetrics(ListCustomMetricsRequest) returns (ListCustomMetricsResponse) { + option (google.api.http) = { + get: "/v1alpha/{parent=properties/*}/customMetrics" + }; + option (google.api.method_signature) = "parent"; + } + + // Archives a CustomMetric on a property. + rpc ArchiveCustomMetric(ArchiveCustomMetricRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1alpha/{name=properties/*/customMetrics/*}:archive" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Lookup for a single CustomMetric. + rpc GetCustomMetric(GetCustomMetricRequest) returns (CustomMetric) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/customMetrics/*}" + }; + option (google.api.method_signature) = "name"; + } } // Request message for GetAccount RPC. @@ -1433,3 +1648,357 @@ message SearchChangeHistoryEventsResponse { // If this field is omitted, there are no subsequent pages. string next_page_token = 2; } + +// Request message for GetMeasurementProtocolSecret RPC. +message GetMeasurementProtocolSecretRequest { + // Required. The name of the measurement protocol secret to lookup. + // Format: + // properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + // Note: Any type of stream (WebDataStream, IosAppDataStream, + // AndroidAppDataStream) may be a parent. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + } + ]; +} + +// Request message for CreateMeasurementProtocolSecret RPC +message CreateMeasurementProtocolSecretRequest { + // Required. The parent resource where this secret will be created. + // Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) + // may be a parent. + // Format: properties/{property}/webDataStreams/{webDataStream} + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + } + ]; + + // Required. The measurement protocol secret to create. + MeasurementProtocolSecret measurement_protocol_secret = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for DeleteMeasurementProtocolSecret RPC +message DeleteMeasurementProtocolSecretRequest { + // Required. The name of the MeasurementProtocolSecret to delete. + // Format: + // properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + // Note: Any type of stream (WebDataStream, IosAppDataStream, + // AndroidAppDataStream) may be a parent. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + } + ]; +} + +// Request message for UpdateMeasurementProtocolSecret RPC +message UpdateMeasurementProtocolSecretRequest { + // Required. The measurement protocol secret to update. + MeasurementProtocolSecret measurement_protocol_secret = 1 [(google.api.field_behavior) = REQUIRED]; + + // The list of fields to be updated. Omitted fields will not be updated. + google.protobuf.FieldMask update_mask = 2; +} + +// Request message for ListMeasurementProtocolSecret RPC +message ListMeasurementProtocolSecretsRequest { + // Required. The resource name of the parent stream. + // Any type of stream (WebDataStream, IosAppDataStream, AndroidAppDataStream) + // may be a parent. + // Format: + // properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + } + ]; + + // The maximum number of resources to return. + // If unspecified, at most 10 resources will be returned. + // The maximum value is 10. Higher values will be coerced to the maximum. + int32 page_size = 2; + + // A page token, received from a previous `ListMeasurementProtocolSecrets` + // call. Provide this to retrieve the subsequent page. When paginating, all + // other parameters provided to `ListMeasurementProtocolSecrets` must match + // the call that provided the page token. + string page_token = 3; +} + +// Response message for ListMeasurementProtocolSecret RPC +message ListMeasurementProtocolSecretsResponse { + // A list of secrets for the parent stream specified in the request. + repeated MeasurementProtocolSecret measurement_protocol_secrets = 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 GetGoogleSignalsSettings RPC +message GetGoogleSignalsSettingsRequest { + // Required. The name of the google signals settings to retrieve. + // Format: properties/{property}/googleSignalsSettings + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/GoogleSignalsSettings" + } + ]; +} + +// Request message for UpdateGoogleSignalsSettings RPC +message UpdateGoogleSignalsSettingsRequest { + // Required. The settings to update. + // The `name` field is used to identify the settings to be updated. + GoogleSignalsSettings google_signals_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]; +} + +// Request message for CreateConversionEvent RPC +message CreateConversionEventRequest { + // Required. The conversion event to create. + ConversionEvent conversion_event = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The resource name of the parent property where this conversion event will + // be created. Format: properties/123 + string parent = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/ConversionEvent" + } + ]; +} + +// Request message for GetConversionEvent RPC +message GetConversionEventRequest { + // Required. The resource name of the conversion event to retrieve. + // Format: properties/{property}/conversionEvents/{conversion_event} + // Example: "properties/123/conversionEvents/456" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/ConversionEvent" + } + ]; +} + +// Request message for DeleteConversionEvent RPC +message DeleteConversionEventRequest { + // Required. The resource name of the conversion event to delete. + // Format: properties/{property}/conversionEvents/{conversion_event} + // Example: "properties/123/conversionEvents/456" + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/ConversionEvent" + } + ]; +} + +// Request message for ListConversionEvents RPC +message ListConversionEventsRequest { + // Required. The resource name of the parent property. + // Example: 'properties/123' + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/ConversionEvent" + } + ]; + + // 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 `ListConversionEvents` call. + // Provide this to retrieve the subsequent page. + // When paginating, all other parameters provided to `ListConversionEvents` + // must match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListConversionEvents RPC. +message ListConversionEventsResponse { + // The requested conversion events + repeated ConversionEvent conversion_events = 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 CreateCustomDimension RPC. +message CreateCustomDimensionRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/CustomDimension" + } + ]; + + // Required. The CustomDimension to create. + CustomDimension custom_dimension = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for UpdateCustomDimension RPC. +message UpdateCustomDimensionRequest { + // The CustomDimension to update + CustomDimension custom_dimension = 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 ListCustomDimensions RPC. +message ListCustomDimensionsRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/CustomDimension" + } + ]; + + // 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 `ListCustomDimensions` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListCustomDimensions` + // must match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListCustomDimensions RPC. +message ListCustomDimensionsResponse { + // List of CustomDimensions. + repeated CustomDimension custom_dimensions = 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 ArchiveCustomDimension RPC. +message ArchiveCustomDimensionRequest { + // Required. The name of the CustomDimension to archive. + // Example format: properties/1234/customDimensions/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/CustomDimension" + } + ]; +} + +// Request message for GetCustomDimension RPC. +message GetCustomDimensionRequest { + // Required. The name of the CustomDimension to get. + // Example format: properties/1234/customDimensions/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/CustomDimension" + } + ]; +} + +// Request message for CreateCustomMetric RPC. +message CreateCustomMetricRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/CustomMetric" + } + ]; + + // Required. The CustomMetric to create. + CustomMetric custom_metric = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Request message for UpdateCustomMetric RPC. +message UpdateCustomMetricRequest { + // The CustomMetric to update + CustomMetric custom_metric = 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 ListCustomMetrics RPC. +message ListCustomMetricsRequest { + // Required. Example format: properties/1234 + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "analyticsadmin.googleapis.com/CustomMetric" + } + ]; + + // 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 `ListCustomMetrics` call. + // Provide this to retrieve the subsequent page. + // + // When paginating, all other parameters provided to `ListCustomMetrics` must + // match the call that provided the page token. + string page_token = 3; +} + +// Response message for ListCustomMetrics RPC. +message ListCustomMetricsResponse { + // List of CustomMetrics. + repeated CustomMetric custom_metrics = 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 ArchiveCustomMetric RPC. +message ArchiveCustomMetricRequest { + // Required. The name of the CustomMetric to archive. + // Example format: properties/1234/customMetrics/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/CustomMetric" + } + ]; +} + +// Request message for GetCustomMetric RPC. +message GetCustomMetricRequest { + // Required. The name of the CustomMetric to get. + // Example format: properties/1234/customMetrics/5678 + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/CustomMetric" + } + ]; +} 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 568d7471..7b6af230 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 @@ -187,6 +187,50 @@ enum ChangeHistoryResourceType { // GoogleAdsLink resource GOOGLE_ADS_LINK = 7; + + // GoogleSignalsSettings resource + GOOGLE_SIGNALS_SETTINGS = 8; + + // ConversionEvent resource + CONVERSION_EVENT = 9; + + // MeasurementProtocolSecret resource + MEASUREMENT_PROTOCOL_SECRET = 10; + + // CustomDimension resource + CUSTOM_DIMENSION = 11; + + // CustomMetric resource + CUSTOM_METRIC = 12; +} + +// Status of the Google Signals settings (i.e., whether this feature has been +// enabled for the property). +enum GoogleSignalsState { + // Google Signals status defaults to GOOGLE_SIGNALS_STATE_UNSPECIFIED to + // represent that the user has not made an explicit choice. + GOOGLE_SIGNALS_STATE_UNSPECIFIED = 0; + + // Google Signals is enabled. + GOOGLE_SIGNALS_ENABLED = 1; + + // Google Signals is disabled. + GOOGLE_SIGNALS_DISABLED = 2; +} + +// Consent field of the Google Signals settings (i.e., whether the user has +// consented to the Google Signals terms of service.) +enum GoogleSignalsConsent { + // Google Signals consent value defaults to + // GOOGLE_SIGNALS_CONSENT_UNSPECIFIED. This will be treated as + // GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED. + GOOGLE_SIGNALS_CONSENT_UNSPECIFIED = 0; + + // Terms of service have been accepted + GOOGLE_SIGNALS_CONSENT_CONSENTED = 2; + + // Terms of service have not been accepted + GOOGLE_SIGNALS_CONSENT_NOT_CONSENTED = 1; } // A resource message representing a Google Analytics account. @@ -392,11 +436,11 @@ message UserLink { pattern: "properties/{property}/userLinks/{user_link}" }; - // Example format: properties/1234/userLinks/5678 - string name = 1; + // Output only. Example format: properties/1234/userLinks/5678 + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Email address of the user to link - string email_address = 2; + // Immutable. Email address of the user to link + string email_address = 2 [(google.api.field_behavior) = IMMUTABLE]; // Roles directly assigned to this user for this account or property. // @@ -563,7 +607,7 @@ message GoogleAdsLink { // Enable personalized advertising features with this integration. // Automatically publish my Google Analytics audience lists and Google // Analytics remarketing events/parameters to the linked Google Ads account. - // If this field is not set on create/update it will be defaulted to true. + // 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. @@ -650,6 +694,28 @@ message PropertySummary { string display_name = 2; } +// A secret value used for sending hits to Measurement Protocol. +message MeasurementProtocolSecret { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" + pattern: "properties/{property}/webDataStreams/{web_data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}" + }; + + // Output only. Resource name of this secret. This secret may be a child of any type of + // stream. + // Format: + // properties/{property}/webDataStreams/{webDataStream}/measurementProtocolSecrets/{measurementProtocolSecret} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Human-readable display name for this secret. + string display_name = 2 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The measurement protocol secret value. Pass this value to the api_secret + // field of the Measurement Protocol API when sending hits to this + // secret's parent property. + string secret_value = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // A set of changes within a Google Analytics account or its child properties // that resulted from the same cause. Common causes would be updates made in the // Google Analytics UI, changes from customer support, or automatic Google @@ -704,6 +770,21 @@ message ChangeHistoryChange { // A snapshot of a GoogleAdsLink resource in change history. GoogleAdsLink google_ads_link = 7; + + // A snapshot of a GoogleSignalsSettings resource in change history. + GoogleSignalsSettings google_signals_settings = 8; + + // A snapshot of a ConversionEvent resource in change history. + ConversionEvent conversion_event = 11; + + // A snapshot of a MeasurementProtocolSecret resource in change history. + MeasurementProtocolSecret measurement_protocol_secret = 12; + + // A snapshot of a CustomDimension resource in change history. + CustomDimension custom_dimension = 13; + + // A snapshot of a CustomMetric resource in change history. + CustomMetric custom_metric = 14; } } @@ -721,3 +802,199 @@ message ChangeHistoryChange { // deleted in this change, this field will be missing. ChangeHistoryResource resource_after_change = 4; } + +// A conversion event in a Google Analytics property. +message ConversionEvent { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/ConversionEvent" + pattern: "properties/{property}/conversionEvents/{conversion_event}" + }; + + // Output only. Resource name of this conversion event. + // Format: properties/{property}/conversionEvents/{conversion_event} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Immutable. The event name for this conversion event. + // Examples: 'click', 'purchase' + string event_name = 2 [(google.api.field_behavior) = IMMUTABLE]; + + // Output only. Time when this conversion event was created in the property. + 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]; +} + +// Settings values for Google Signals. This is a singleton resource. +message GoogleSignalsSettings { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/GoogleSignalsSettings" + pattern: "properties/{property}/googleSignalsSettings" + }; + + // Output only. Resource name of this setting. + // Format: properties/{property_id}/googleSignalsSettings + // Example: "properties/1000/googleSignalsSettings" + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Status of this setting. + GoogleSignalsState state = 3; + + // Output only. Terms of Service acceptance. + GoogleSignalsConsent consent = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// A definition for a CustomDimension. +message CustomDimension { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/CustomDimension" + pattern: "properties/{property}/customDimensions" + }; + + // Valid values for the scope of this dimension. + enum DimensionScope { + // Scope unknown or not specified. + DIMENSION_SCOPE_UNSPECIFIED = 0; + + // Dimension scoped to an event. + EVENT = 1; + + // Dimension scoped to a user. + USER = 2; + } + + // Output only. Resource name for this CustomDimension resource. + // Format: properties/{property}/customDimensions/{customDimension} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Immutable. Tagging parameter name for this custom dimension. + // + // If this is a user-scoped dimension, then this is the user property name. + // If this is an event-scoped dimension, then this is the event parameter + // name. + // + // May only contain alphanumeric and underscore characters, starting with a + // letter. Max length of 24 characters for user-scoped dimensions, 40 + // characters for event-scoped dimensions. + string parameter_name = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. Display name for this custom dimension as shown in the Analytics UI. + // Max length of 82 characters, alphanumeric plus space and underscore + // starting with a letter. Legacy system-generated display names may contain + // square brackets, but updates to this field will never permit square + // brackets. + string display_name = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Description for this custom dimension. Max length of 150 characters. + string description = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Required. Immutable. The scope of this dimension. + DimensionScope scope = 5 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Optional. If set to true, sets this dimension as NPA and excludes it from ads + // personalization. + // + // This is currently only supported by user-scoped custom dimensions. + bool disallow_ads_personalization = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// A definition for a custom metric. +message CustomMetric { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/CustomMetric" + pattern: "properties/{property}/customMetrics" + }; + + // Possible types of representing the custom metric's value. + // + // Currency representation may change in the future, requiring a breaking API + // change. + enum MeasurementUnit { + // MeasurementUnit unspecified or missing. + MEASUREMENT_UNIT_UNSPECIFIED = 0; + + // This metric uses default units. + STANDARD = 1; + + // This metric measures a currency. + CURRENCY = 2; + + // This metric measures feet. + FEET = 3; + + // This metric measures meters. + METERS = 4; + + // This metric measures kilometers. + KILOMETERS = 5; + + // This metric measures miles. + MILES = 6; + + // This metric measures milliseconds. + MILLISECONDS = 7; + + // This metric measures seconds. + SECONDS = 8; + + // This metric measures minutes. + MINUTES = 9; + + // This metric measures hours. + HOURS = 10; + } + + // The scope of this metric. + enum MetricScope { + // Scope unknown or not specified. + METRIC_SCOPE_UNSPECIFIED = 0; + + // Metric scoped to an event. + EVENT = 1; + } + + // Output only. Resource name for this CustomMetric resource. + // Format: properties/{property}/customMetrics/{customMetric} + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Required. Immutable. Tagging name for this custom metric. + // + // If this is an event-scoped metric, then this is the event parameter + // name. + // + // May only contain alphanumeric and underscore charactes, starting with a + // letter. Max length of 40 characters for event-scoped metrics. + string parameter_name = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. Display name for this custom metric as shown in the Analytics UI. + // Max length of 82 characters, alphanumeric plus space and underscore + // starting with a letter. Legacy system-generated display names may contain + // square brackets, but updates to this field will never permit square + // brackets. + string display_name = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Description for this custom dimension. + // 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. Immutable. The scope of this custom metric. + MetricScope scope = 6 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; +} From 8bc7f9eb4178a0f4a33b2180123d24b635f3f466 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 4 Jun 2021 17:12:29 +0200 Subject: [PATCH 39/42] deps: update dependency com.google.cloud:google-cloud-shared-dependencies to v1.3.0 (#222) 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) | `1.2.0` -> `1.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.3.0/compatibility-slim/1.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:google-cloud-shared-dependencies/1.3.0/confidence-slim/1.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
googleapis/java-shared-dependencies ### [`v1.3.0`](https://togithub.com/googleapis/java-shared-dependencies/blob/master/CHANGELOG.md#​130-httpswwwgithubcomgoogleapisjava-shared-dependenciescompare120v130-2021-06-03) [Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v1.2.0...v1.3.0) ##### Features - add `gcf-owl-bot[bot]` to `ignoreAuthors` ([#​365](https://www.github.com/googleapis/java-shared-dependencies/issues/365)) ([7e8309b](https://www.github.com/googleapis/java-shared-dependencies/commit/7e8309bf67ade0fe2b09f792848136cd88b4d2e4)) ##### Dependencies - update dependency com.google.auth:google-auth-library-bom to v0.26.0 ([#​368](https://www.github.com/googleapis/java-shared-dependencies/issues/368)) ([38256a8](https://www.github.com/googleapis/java-shared-dependencies/commit/38256a82cb6896c3f5e5ea6ca5d8d671c412bf84)) - update dependency com.google.cloud:google-cloud-core-bom to v1.95.0 ([#​377](https://www.github.com/googleapis/java-shared-dependencies/issues/377)) ([297ea62](https://www.github.com/googleapis/java-shared-dependencies/commit/297ea621e02f8c0679c8b07ed399d11eaacecc14)) - update dependency com.google.code.gson:gson to v2.8.7 ([#​370](https://www.github.com/googleapis/java-shared-dependencies/issues/370)) ([cdc1b8e](https://www.github.com/googleapis/java-shared-dependencies/commit/cdc1b8ea1c93f97b712081ca8dc8ea57f342b69e)) - update dependency com.google.protobuf:protobuf-bom to v3.17.1 ([#​369](https://www.github.com/googleapis/java-shared-dependencies/issues/369)) ([5a19574](https://www.github.com/googleapis/java-shared-dependencies/commit/5a19574bc626bb3c6b573ed1d177e8907188dec1)) - update dependency com.google.protobuf:protobuf-bom to v3.17.2 ([#​374](https://www.github.com/googleapis/java-shared-dependencies/issues/374)) ([83516e6](https://www.github.com/googleapis/java-shared-dependencies/commit/83516e691b99e5e5d22d27e561781a5ade5fb514)) - update dependency io.grpc:grpc-bom to v1.38.0 ([#​364](https://www.github.com/googleapis/java-shared-dependencies/issues/364)) ([00db570](https://www.github.com/googleapis/java-shared-dependencies/commit/00db5701c3b0aa609f3778c06911a9a0248ca342)) - update gax.version to v1.65.0 ([#​376](https://www.github.com/googleapis/java-shared-dependencies/issues/376)) ([b793a0d](https://www.github.com/googleapis/java-shared-dependencies/commit/b793a0d7744ff1b0f8ae5d3d13ec4776ae8d3089)) - update google.common-protos.version to v2.3.1 ([#​366](https://www.github.com/googleapis/java-shared-dependencies/issues/366)) ([7d6a7fa](https://www.github.com/googleapis/java-shared-dependencies/commit/7d6a7fa7a2cad2b3f2ecf45e42d2ed5db0b60a43)) - update google.common-protos.version to v2.3.2 ([#​375](https://www.github.com/googleapis/java-shared-dependencies/issues/375)) ([68a47ad](https://www.github.com/googleapis/java-shared-dependencies/commit/68a47ad3243f3e980db74c9c8505a1b3063c131b))
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-admin). --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 8a17e6ac..3277a9ea 100644 --- a/pom.xml +++ b/pom.xml @@ -86,7 +86,7 @@ com.google.cloud google-cloud-shared-dependencies - 1.2.0 + 1.3.0 pom import From ffe7946096f6d58d03d884b6b79d43fbab252eee Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Jun 2021 00:34:10 +0200 Subject: [PATCH 40/42] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.23 (#223) 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 | `1.0.22` -> `1.0.23` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/compatibility-slim/1.0.22)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/confidence-slim/1.0.22)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-analytics-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 553b8d9e..0c972b83 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.22 + 1.0.23 diff --git a/samples/pom.xml b/samples/pom.xml index 9fb43474..ffb65232 100644 --- a/samples/pom.xml +++ b/samples/pom.xml @@ -18,7 +18,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 3f151963..52f38681 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index f7946974..fb3e44ce 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 From 6e924c595643ca09c14cf38d257a09882b7c48f4 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 15 Jun 2021 19:36:22 +0000 Subject: [PATCH 41/42] chore: new owl bot post processor docker image (#226) Post-Processor: gcr.io/repo-automation-bots/owlbot-java:latest@sha256:3796fe5c26bbf814f0a82a2eab2749b5710f87e7197dc011e5fa3c694e532462 --- .github/.OwlBot.lock.yaml | 2 +- .kokoro/dependencies.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index eeb480bd..be22516e 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -1,3 +1,3 @@ docker: - digest: sha256:e09db16aef633f4cae68b6eb2771b40ea01464f8db08badcd1c5197b9c623457 image: gcr.io/repo-automation-bots/owlbot-java:latest + digest: sha256:3796fe5c26bbf814f0a82a2eab2749b5710f87e7197dc011e5fa3c694e532462 diff --git a/.kokoro/dependencies.sh b/.kokoro/dependencies.sh index 59d2aafc..a7e999d3 100755 --- a/.kokoro/dependencies.sh +++ b/.kokoro/dependencies.sh @@ -46,7 +46,7 @@ function completenessCheck() { # This is stripped from the output as it is not present in the flattened pom. # Only dependencies with 'compile' or 'runtime' scope are included from original dependency list. msg "Generating dependency list using original pom..." - mvn dependency:list -f pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e s/\\s--\\smodule.*// >.org-list.txt + mvn dependency:list -f pom.xml -DincludeScope=runtime -Dsort=true | grep '\[INFO] .*:.*:.*:.*:.*' | sed -e 's/ --.*//' >.org-list.txt # Output dep list generated using the flattened pom (only 'compile' and 'runtime' scopes) msg "Generating dependency list using flattened pom..." @@ -70,7 +70,7 @@ function completenessCheck() { set +e error_count=0 -for path in $(find -name ".flattened-pom.xml") +for path in **/.flattened-pom.xml do # Check flattened pom in each dir that contains it for completeness dir=$(dirname "$path") From aefc8686cdfec4f33a4c1a3aebb290dea08d221e Mon Sep 17 00:00:00 2001 From: "release-please[bot]" <55107282+release-please[bot]@users.noreply.github.com> Date: Thu, 17 Jun 2021 19:10:02 +0000 Subject: [PATCH 42/42] chore: release 0.4.0 (#180) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit :robot: I have created a release \*beep\* \*boop\* --- ## [0.4.0](https://www.github.com/googleapis/java-analytics-admin/compare/v0.3.2...v0.4.0) (2021-06-15) ### ⚠ BREAKING CHANGES * remove `CreateIosAppDataStream`, `CreateAndroidAppDataStream` methods from the API (#203) ### Features * add CreateCustomDimension, GetCustomDimension, UpdateCustomDimension, ListCustomDimensions, ArchiveCustomDimension methods to the API ([#221](https://www.github.com/googleapis/java-analytics-admin/issues/221)) ([16ff4a6](https://www.github.com/googleapis/java-analytics-admin/commit/16ff4a6f4291e1668b710807722cbd3901d51f02)) ### Bug Fixes * add `https://www.googleapis.com/auth/analytics.edit` OAuth2 scope to the list of acceptable scopes for all read only methods ([#179](https://www.github.com/googleapis/java-analytics-admin/issues/179)) ([e8d6269](https://www.github.com/googleapis/java-analytics-admin/commit/e8d626908a020d4c1ea6ff0ff34afd5d65ae967a)) * release scripts from issuing overlapping phases ([#197](https://www.github.com/googleapis/java-analytics-admin/issues/197)) ([30b1195](https://www.github.com/googleapis/java-analytics-admin/commit/30b1195db5389a7fb940b4decf13baf68fcd1005)) * remove `CreateIosAppDataStream`, `CreateAndroidAppDataStream` methods from the API ([#203](https://www.github.com/googleapis/java-analytics-admin/issues/203)) ([ca467ec](https://www.github.com/googleapis/java-analytics-admin/commit/ca467ec5bbcaf3dccf4c791426ec612c903392e2)) * typo ([#196](https://www.github.com/googleapis/java-analytics-admin/issues/196)) ([3001dfc](https://www.github.com/googleapis/java-analytics-admin/commit/3001dfc339cfa7f23497481f95e0314bdf8d7189)) ### Documentation * update the documentation of the `update_mask` field used by Update() methods ([e8d6269](https://www.github.com/googleapis/java-analytics-admin/commit/e8d626908a020d4c1ea6ff0ff34afd5d65ae967a)) ### Dependencies * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.1 ([#186](https://www.github.com/googleapis/java-analytics-admin/issues/186)) ([1a2d614](https://www.github.com/googleapis/java-analytics-admin/commit/1a2d614c80c0c5849f7aa71f3cae20165c3ed4aa)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 ([#194](https://www.github.com/googleapis/java-analytics-admin/issues/194)) ([b429a0b](https://www.github.com/googleapis/java-analytics-admin/commit/b429a0ba4fea5f974e24f3d8e06a03addcbedc0e)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 ([#198](https://www.github.com/googleapis/java-analytics-admin/issues/198)) ([640a1c2](https://www.github.com/googleapis/java-analytics-admin/commit/640a1c2398dd49d8acaa3826ff857baf715ffd43)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v1 ([#201](https://www.github.com/googleapis/java-analytics-admin/issues/201)) ([c148921](https://www.github.com/googleapis/java-analytics-admin/commit/c1489212a633e8ec6e9fa8838c3f3549ab14b4a4)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 ([#210](https://www.github.com/googleapis/java-analytics-admin/issues/210)) ([4801dd7](https://www.github.com/googleapis/java-analytics-admin/commit/4801dd7212132eb184f2d851549ab99e671150dd)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 ([#214](https://www.github.com/googleapis/java-analytics-admin/issues/214)) ([c8b4d76](https://www.github.com/googleapis/java-analytics-admin/commit/c8b4d76f3d3eff834637a135c7ccff7863073b33)) * update dependency com.google.cloud:google-cloud-shared-dependencies to v1.3.0 ([#222](https://www.github.com/googleapis/java-analytics-admin/issues/222)) ([8bc7f9e](https://www.github.com/googleapis/java-analytics-admin/commit/8bc7f9eb4178a0f4a33b2180123d24b635f3f466)) --- 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 | 35 ++++++++++++++++++++ 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, 54 insertions(+), 19 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ed507798..3a6dd16a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,40 @@ # Changelog +## [0.4.0](https://www.github.com/googleapis/java-analytics-admin/compare/v0.3.2...v0.4.0) (2021-06-15) + + +### ⚠ BREAKING CHANGES + +* remove `CreateIosAppDataStream`, `CreateAndroidAppDataStream` methods from the API (#203) + +### Features + +* add CreateCustomDimension, GetCustomDimension, UpdateCustomDimension, ListCustomDimensions, ArchiveCustomDimension methods to the API ([#221](https://www.github.com/googleapis/java-analytics-admin/issues/221)) ([16ff4a6](https://www.github.com/googleapis/java-analytics-admin/commit/16ff4a6f4291e1668b710807722cbd3901d51f02)) + + +### Bug Fixes + +* add `https://www.googleapis.com/auth/analytics.edit` OAuth2 scope to the list of acceptable scopes for all read only methods ([#179](https://www.github.com/googleapis/java-analytics-admin/issues/179)) ([e8d6269](https://www.github.com/googleapis/java-analytics-admin/commit/e8d626908a020d4c1ea6ff0ff34afd5d65ae967a)) +* release scripts from issuing overlapping phases ([#197](https://www.github.com/googleapis/java-analytics-admin/issues/197)) ([30b1195](https://www.github.com/googleapis/java-analytics-admin/commit/30b1195db5389a7fb940b4decf13baf68fcd1005)) +* remove `CreateIosAppDataStream`, `CreateAndroidAppDataStream` methods from the API ([#203](https://www.github.com/googleapis/java-analytics-admin/issues/203)) ([ca467ec](https://www.github.com/googleapis/java-analytics-admin/commit/ca467ec5bbcaf3dccf4c791426ec612c903392e2)) +* typo ([#196](https://www.github.com/googleapis/java-analytics-admin/issues/196)) ([3001dfc](https://www.github.com/googleapis/java-analytics-admin/commit/3001dfc339cfa7f23497481f95e0314bdf8d7189)) + + +### Documentation + +* update the documentation of the `update_mask` field used by Update() methods ([e8d6269](https://www.github.com/googleapis/java-analytics-admin/commit/e8d626908a020d4c1ea6ff0ff34afd5d65ae967a)) + + +### Dependencies + +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.20.1 ([#186](https://www.github.com/googleapis/java-analytics-admin/issues/186)) ([1a2d614](https://www.github.com/googleapis/java-analytics-admin/commit/1a2d614c80c0c5849f7aa71f3cae20165c3ed4aa)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.0 ([#194](https://www.github.com/googleapis/java-analytics-admin/issues/194)) ([b429a0b](https://www.github.com/googleapis/java-analytics-admin/commit/b429a0ba4fea5f974e24f3d8e06a03addcbedc0e)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v0.21.1 ([#198](https://www.github.com/googleapis/java-analytics-admin/issues/198)) ([640a1c2](https://www.github.com/googleapis/java-analytics-admin/commit/640a1c2398dd49d8acaa3826ff857baf715ffd43)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1 ([#201](https://www.github.com/googleapis/java-analytics-admin/issues/201)) ([c148921](https://www.github.com/googleapis/java-analytics-admin/commit/c1489212a633e8ec6e9fa8838c3f3549ab14b4a4)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.1.0 ([#210](https://www.github.com/googleapis/java-analytics-admin/issues/210)) ([4801dd7](https://www.github.com/googleapis/java-analytics-admin/commit/4801dd7212132eb184f2d851549ab99e671150dd)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.2.0 ([#214](https://www.github.com/googleapis/java-analytics-admin/issues/214)) ([c8b4d76](https://www.github.com/googleapis/java-analytics-admin/commit/c8b4d76f3d3eff834637a135c7ccff7863073b33)) +* update dependency com.google.cloud:google-cloud-shared-dependencies to v1.3.0 ([#222](https://www.github.com/googleapis/java-analytics-admin/issues/222)) ([8bc7f9e](https://www.github.com/googleapis/java-analytics-admin/commit/8bc7f9eb4178a0f4a33b2180123d24b635f3f466)) + ### [0.3.2](https://www.github.com/googleapis/java-analytics-admin/compare/v0.3.1...v0.3.2) (2021-02-25) diff --git a/google-analytics-admin-bom/pom.xml b/google-analytics-admin-bom/pom.xml index e4ebaefe..ece8d5f3 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.3.3-SNAPSHOT + 0.4.0 pom com.google.cloud @@ -67,17 +67,17 @@ com.google.analytics google-analytics-admin - 0.3.3-SNAPSHOT + 0.4.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.3.3-SNAPSHOT + 0.4.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.3.3-SNAPSHOT + 0.4.0
diff --git a/google-analytics-admin/pom.xml b/google-analytics-admin/pom.xml index 0ceedfb0..bb945f04 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.3.3-SNAPSHOT + 0.4.0 jar Google Analytics Admin https://github.com/googleapis/java-analytics-admin @@ -11,7 +11,7 @@ com.google.analytics google-analytics-admin-parent - 0.3.3-SNAPSHOT + 0.4.0 google-analytics-admin diff --git a/grpc-google-analytics-admin-v1alpha/pom.xml b/grpc-google-analytics-admin-v1alpha/pom.xml index 1719b925..28d97907 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.3.3-SNAPSHOT + 0.4.0 grpc-google-analytics-admin-v1alpha GRPC library for grpc-google-analytics-admin-v1alpha com.google.analytics google-analytics-admin-parent - 0.3.3-SNAPSHOT + 0.4.0 diff --git a/pom.xml b/pom.xml index 3277a9ea..4bcbaf2e 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ com.google.analytics google-analytics-admin-parent pom - 0.3.3-SNAPSHOT + 0.4.0 Google Analytics Admin Parent https://github.com/googleapis/java-analytics-admin @@ -70,17 +70,17 @@ com.google.analytics google-analytics-admin - 0.3.3-SNAPSHOT + 0.4.0 com.google.api.grpc proto-google-analytics-admin-v1alpha - 0.3.3-SNAPSHOT + 0.4.0 com.google.api.grpc grpc-google-analytics-admin-v1alpha - 0.3.3-SNAPSHOT + 0.4.0 diff --git a/proto-google-analytics-admin-v1alpha/pom.xml b/proto-google-analytics-admin-v1alpha/pom.xml index bf2a6a1b..3daab5c5 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.3.3-SNAPSHOT + 0.4.0 proto-google-analytics-admin-v1alpha PROTO library for proto-google-analytics-admin-v1alpha com.google.analytics google-analytics-admin-parent - 0.3.3-SNAPSHOT + 0.4.0 diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml index 52f38681..0cbcbc99 100644 --- a/samples/snapshot/pom.xml +++ b/samples/snapshot/pom.xml @@ -28,7 +28,7 @@ com.google.analytics google-analytics-admin - 0.3.3-SNAPSHOT + 0.4.0 diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml index fb3e44ce..82e95579 100644 --- a/samples/snippets/pom.xml +++ b/samples/snippets/pom.xml @@ -27,7 +27,7 @@ com.google.analytics google-analytics-admin - 0.3.3-SNAPSHOT + 0.4.0 diff --git a/versions.txt b/versions.txt index 3e3d3344..26a37fc3 100644 --- a/versions.txt +++ b/versions.txt @@ -1,6 +1,6 @@ # Format: # module:released-version:current-version -google-analytics-admin:0.3.2:0.3.3-SNAPSHOT -grpc-google-analytics-admin-v1alpha:0.3.2:0.3.3-SNAPSHOT -proto-google-analytics-admin-v1alpha:0.3.2:0.3.3-SNAPSHOT +google-analytics-admin:0.4.0:0.4.0 +grpc-google-analytics-admin-v1alpha:0.4.0:0.4.0 +proto-google-analytics-admin-v1alpha:0.4.0:0.4.0